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 'c_admin/base.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block body %}
|
|
|
|
<form method="post" class="form-horizontal" name="form2" id="form2" enctype="multipart/form-data"> {% csrf_token %}
|
|
<fieldset>
|
|
|
|
<div class="box span10">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-pencil"></i>{% if object %}{% trans "Изменение" %}{% else %}{% trans "Создание" %}{% endif %} {% trans "списка рассылок" %}</h2>
|
|
</div>
|
|
{% if filter_params %}
|
|
{% if not filter_form.errors %}
|
|
<div class="alert alert-success" role="alert">
|
|
{% blocktrans with count=contact_count %}
|
|
<i class="icon-info-sign"></i>Отфильтровано {{ count }} контактов
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% else %}
|
|
<div class="alert alert-warning" role="alert">
|
|
<i class="icon-info-sign"></i>{% trans "Ошибка фильтрации контактов." %}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if form.instance.pk %}
|
|
<div class="alert alert-info" role="alert">
|
|
{% blocktrans with count=form.instance.subscribers_count %}
|
|
<i class="icon-info-sign"></i>Контактов на текущий момент - {{ count }}
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
<div class="box-content">
|
|
{% for field in form %}
|
|
<div class="control-group {% if field.errors %}error{% endif %}">
|
|
<label class="control-label">{% if field.field.required %}<b>{{ field.label }}:</b>{% else %}{{ field.label }}{% endif %}</label>
|
|
<div class="controls">{{ field }}
|
|
<span class="help-inline">{{ field.errors }}</span>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<div class="controls">
|
|
<input class="btn btn-large btn-primary" type="submit" value="Готово">
|
|
<input class="btn btn-large" type="reset" value="Отмена">
|
|
</div>
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{# selects #}
|
|
<link href="{% static 'js/select/select2.css' %}" rel="stylesheet"/>
|
|
<script src="{% static 'js/select/select2.js' %}"></script>
|
|
|
|
{% endblock %}
|
|
|