Parent: [3c3cc5] (diff)

Child: [ddf08c] (diff)

Download this file

admin_form.html    28 lines (27 with data), 871 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<form method="{{method}}"
{% if enctype %}enctype="{{enctype}}"{% endif %}
action="{{action}}">
{% for field in widget.fields %}
{% set ctx=widget.context_for(field) %}
{% if field.field_type != 'hidden' %}
{% if ctx.errors and field.show_errors -%}
<span {{widget.j2_attrs({'class':error_class})}}>{{ctx.errors}}<br>
{%- endif %}
{% if field.show_label and field.label %}
<label for="{{ctx.id}}" class="grid-13">{{field.label}}:</label>
{% endif %}
<div class="grid-13">{{field.display(**ctx)}}</div>
{% else %}
{{field.display(**ctx)}}
{% endif %}
{% endfor %}
<div class="grid-13">&nbsp;</div>
<hr>
<div class="grid-13">&nbsp;</div>
<div class="grid-13">
{% for b in buttons %}
{{b.display()}}
{% endfor %}
<a href="#" class="close">Cancel</a>
</div>
</form>