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.
21 lines
861 B
21 lines
861 B
{% comment %}
|
|
field - поле
|
|
required - отметить, что поле обязательное?
|
|
label - заголовок поля (по умолчанию, `Контрагент`)
|
|
is_ajax - ajax-форма?
|
|
no_clear_after - не добавлять очистку float после блока
|
|
{% endcomment %}
|
|
|
|
<div id={{ id|default:"client" }} class="field">
|
|
{{ label|default:"Контрагент" }}:{% if required %} <span class="required">*</span>{% endif %}
|
|
<p>
|
|
{{ field }}
|
|
<a class="client add-link" href="{% url 'customer_clients_add' %}" title="Добавить контрагента">
|
|
Добавить контрагента
|
|
</a>
|
|
</p>
|
|
|
|
{{ form.client.errors }}
|
|
{% if not is_ajax %}{{ form.client.errors }}{% endif %}
|
|
</div>
|
|
{% if not no_clear_after %}<div class="clear"></div>{% endif %}
|
|
|