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.
60 lines
2.5 KiB
60 lines
2.5 KiB
{% extends 'base.html' %}
|
|
{% load static %}
|
|
{# Displays article form #}
|
|
|
|
{% block scripts %}
|
|
|
|
<script src="{% static 'ckeditor/ckeditor/ckeditor.js' %}"></script>
|
|
{# selects #}
|
|
<link href="{% static 'js/select/select2.css' %}" rel="stylesheet"/>
|
|
<script src="{% static 'js/select/select2.js' %}"></script>
|
|
<script src="{% static 'custom_js/make_select.js' %}"></script>
|
|
{# ajax #}
|
|
<script src="{% static 'custom_js/file_post_ajax.js' %}"></script>
|
|
<script src="{% static 'custom_js/select_tag.js' %}"></script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<form method="post" class="form-horizontal" name="form2" id="form2"enctype="multipart/form-data"> {% csrf_token %}
|
|
<fieldset>
|
|
<legend><i class="icon-edit"></i>{% if article %} Изменить {% else %} Добавить {% endif %}настройку{% if article %}(<a href="{{ article.get_permanent_url }}" target="_blank">на сайте</a>){% endif %}</legend>
|
|
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-pencil"></i> </h2>
|
|
</div>
|
|
<div class="box-content">
|
|
{# name #}
|
|
<div class="control-group {% if form.name.errors %}error{% endif %}">
|
|
<label class="control-label"><b>{{ form.name.label }}:</b></label>
|
|
<div class="controls">
|
|
{{ form.name }}
|
|
<span class="help-inline">{{ form.name.errors }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{# title #}
|
|
{% include 'admin/forms/multilang.html' with field='title' form=form languages=languages %}
|
|
|
|
|
|
{# description #}
|
|
{% include 'admin/forms/multilang.html' with field='description' form=form languages=languages %}
|
|
{# keywords #}
|
|
{% include 'admin/forms/multilang.html' with field='keywords' form=form languages=languages %}
|
|
{# title #}
|
|
{% include 'admin/forms/multilang.html' with field='h1' form=form languages=languages %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="controls">
|
|
|
|
<input class="btn btn-large btn-primary" type="submit" value="{% if article %}Изменить{% else %}Добавить{% endif %}">
|
|
<input class="btn btn-large" type="reset" value="Отмена">
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
|
|
{% endblock %} |