You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
45 lines
1.4 KiB
{% extends 'base.html' %}
|
|
{% load static %}
|
|
|
|
|
|
{% block body %}
|
|
<form method="post" class="form-horizontal" enctype="multipart/form-data"> {% csrf_token %}
|
|
|
|
{# excel_file #}
|
|
<div class="control-group {% if form.excel_file.errors %}error{% endif %}">
|
|
<label class="control-label">{{ form.excel_file.label }}:</label>
|
|
<div class="controls">
|
|
{{ form.excel_file }}
|
|
<span class="help-inline">{{ form.excel_file.errors }}</span>
|
|
</div>
|
|
</div>
|
|
{# language #}
|
|
<div class="control-group {% if form.language.errors %}error{% endif %}">
|
|
<label class="control-label">{{ form.language.label }}:</label>
|
|
<div class="controls">
|
|
{{ form.language }}
|
|
<span class="help-inline">{{ form.language.errors }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="controls">
|
|
<input class="btn btn-large btn-primary" type="submit" value="Импорт">
|
|
<input class="btn btn-large" type="reset" value="Отмена">
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% if message %}
|
|
<div class="alert alert-success" id="1">
|
|
{{ message }}
|
|
</div>
|
|
{% endif %}
|
|
<script>
|
|
$(document).ready(function(){
|
|
setTimeout(function(){
|
|
$('.alert-success').hide();
|
|
}, 2500);
|
|
|
|
});
|
|
</script>
|
|
{% endblock %} |