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.
46 lines
1.7 KiB
46 lines
1.7 KiB
{% load my_tags %}
|
|
|
|
{% if form %}
|
|
{% if form.non_field_errors %}
|
|
<p class="error">{{ form.non_field_errors }}</p>
|
|
{% endif %}
|
|
|
|
<form id="edit-bank-account" action="" method="post">
|
|
{% csrf_token %}
|
|
|
|
{% if referer %}<input type="hidden" value="{{ referer }}" name="referer">{% endif %}
|
|
|
|
{% for hidden in form.hidden_fields %}
|
|
{{ hidden }}
|
|
{% endfor %}
|
|
{% for field in form.visible_fields %}
|
|
<div id="{{ field.name }}">
|
|
{{ field.errors }}
|
|
|
|
{% if field|widget_type == "CheckboxInput" %}
|
|
{{ field }}
|
|
{% if field.label %}{{ field.label_tag }}{% endif %}
|
|
{% else %}
|
|
{% if field.label %}{{ field.label_tag }}:{% endif %}
|
|
{% if field|widget_type == "Textarea" %}
|
|
{% if field.help_text %}<span class="help_text">{{ field.help_text }}</span>{% endif %}
|
|
{% endif %}
|
|
{{ field }}
|
|
{% endif %}
|
|
|
|
{% if field|widget_type != "Textarea" %}
|
|
{% if field.help_text %}<br /><span class="help_text">{{ field.help_text }}</span>{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if field.name != "id_is_main" %}
|
|
<br />
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<div id="buttons">
|
|
<button type="submit" role="button" name="submit">Сохранить</button>
|
|
{% if not request.is_ajax %}<input class="cancel" type="submit" name="_cancel" value="Отмена" />{% endif %}
|
|
</div>
|
|
</form>
|
|
{% endif %}
|
|
|