Parent: [3a5a14] (diff)

Child: [0f822d] (diff)

Download this file

forge_form.html    26 lines (25 with data), 614 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
<form method="{{method}}"
enctype="{{enctype or ''}}"
action="{{action}}">
<ol>
{% for field in widget.fields %}
{% set ctx=widget.context_for(field) %}
{% if field.field_type != 'hidden' %}
<li>
{% if field.show_label %}
<label for="{{field.name}}">{{field.label}}:</label>
{% endif %}
{{field.display(**ctx)}}
</li>
{% else %}
{{field.display(**ctx)}}
{% endif %}
{% endfor %}
<li>
<label>&nbsp;</label>
{% for b in buttons %}
{{b.display()}}
{% endfor %}
</li>
</ol>
</form>