Parent: [0f822d] (diff)

Child: [349351] (diff)

Download this file

forge_form.html    22 lines (21 with data), 629 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<form method="{{method}}"
enctype="{{enctype or ''}}"
action="{{action}}">
{% for field in widget.fields %}
{% set ctx=widget.context_for(field) %}
{% if field.field_type != 'hidden' %}
{% if field.show_label and field.label %}
<label for="{{field.name}}" class="grid-4">{{field.label}}:</label>
{% endif %}
<div class="grid-14">{{field.display(**ctx)}}</div>
{% else %}
{{field.display(**ctx)}}
{% endif %}
{% endfor %}
<label class="grid-4">&nbsp;</label>
<div class="grid-14">
{% for b in buttons %}
{{b.display()}}
{% endfor %}
</div>
</form>