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.
58 lines
2.4 KiB
58 lines
2.4 KiB
{% extends 'c_admin/base.html' %}
|
|
{% load static %}
|
|
|
|
{% block scripts %}
|
|
<script src="{% static 'ckeditor/ckeditor/ckeditor.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<form action="." method="post" enctype="multipart/form-data" class="form-horizontal">
|
|
{% csrf_token %}
|
|
<fieldset>
|
|
<legend><i class="icon-edit"></i>{% if object %} Изменить {% else %} Добавить {% endif %} файл</legend>
|
|
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-pencil"></i> Основная информация</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
{# {{ form.as_p }}#}
|
|
|
|
{% with field='file_name' form=form languages=languages %}
|
|
{% include 'c_admin/forms/multilang.html' %}
|
|
{% endwith %}
|
|
|
|
<div class="control-group {% if form.file_path.errors %}error{% endif %}">
|
|
<label class="control-label">
|
|
<b>{{ form.file_path.label }}:</b>
|
|
</label>
|
|
<div class="controls">{{ form.file_path }}
|
|
<span class="help-inline">{{ form.file_path.errors }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group {% if form.purpose.errors %}error{% endif %}">
|
|
<label class="control-label">
|
|
<b>{{ form.purpose.label }}:</b>
|
|
</label>
|
|
<div class="controls">{{ form.purpose }}
|
|
<span class="help-inline">{{ form.purpose.errors }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% with field='description' form=form languages=languages %}
|
|
{% include 'c_admin/forms/multilang.html' %}
|
|
{% endwith %}
|
|
</div>
|
|
|
|
|
|
<div class="modal-footer">
|
|
<div class="controls">
|
|
<input class="btn btn-primary" type="submit" value="{% if object %}Изменить{% else %}Добавить{% endif %}">
|
|
<input type="reset" class="btn" value="Отменить" data-dismiss="modal">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
{% endblock %}
|
|
|