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.
49 lines
1.9 KiB
49 lines
1.9 KiB
<div class="modal hide fade" id="myModal" >
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="close">×</button>
|
|
<h3>Добавить файл</h3>
|
|
</div>
|
|
|
|
<div id="form_body">
|
|
<form method="post" class="form-horizontal" enctype="multipart/form-data" name="file_form" id="file_form" > {% csrf_token %}
|
|
<div class="modal-body">
|
|
|
|
|
|
{{ file_form.model }}
|
|
<input type="hidden" id="obj_id" value="{{ object.id }}">
|
|
|
|
{# file_path #}
|
|
<div class="control-group{% if file_form.file_path.errors %}error{% endif %}">
|
|
<label class="control-label">{{ file_form.file_path.label }}:</label>
|
|
<div class="controls">{{ file_form.file_path }}
|
|
<span class="help-inline">{{ file_form.file_path.errors }}</span>
|
|
</div>
|
|
</div>
|
|
{# file purpose #}
|
|
<div class="control-group{% if file_form.purpose.errors %}error{% endif %}">
|
|
<label class="control-label">{{ file_form.purpose.label }}:</label>
|
|
<div class="controls">{{ file_form.purpose }}
|
|
<span class="help-inline">{{ file_form.purpose.errors }}</span>
|
|
</div>
|
|
</div>
|
|
{# file_name #}
|
|
{% with field='file_name' form=file_form languages=languages %}
|
|
{% include 'admin/forms/multilang.html' %}
|
|
{% endwith %}
|
|
{# file_description #}
|
|
{% with field='description' form=file_form languages=languages %}
|
|
{% include 'admin/forms/multilang.html' %}
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<div class="controls">
|
|
<input class="btn btn-primary" type="submit" value="Добавить">
|
|
<input type="reset" class="btn" value="Отменить" data-dismiss="modal">
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div> |