blob: 571931df6fe6183a2ee1cecec6c9423af276a92c (
plain)
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
28
29
30
31
32
33
34
35
36
|
{% if form_data.errors %}
<div class="alert alert-warning">
<strong>{{ 'Installation_PleaseFixTheFollowingErrors'|translate }}:</strong>
<ul>
{% for data in form_data.errors %}
<li>{{ data|raw }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<form {{ form_data.attributes|raw }}>
{# display any hidden input field #}
{{ form_data.hidden|join|raw }}
{% for fieldname in element_list %}
{% if form_data[fieldname] is defined %}
<div class="form-group">
{% if form_data[fieldname].type == 'checkbox' %}
<label class="checkbox">
{{ form_data[fieldname].html|raw }}
</label>
{% elseif form_data[fieldname].label %}
<label>
{{ form_data[fieldname].label|raw }}
</label>
{{ form_data[fieldname].html|raw }}
{% elseif form_data[fieldname].type == 'hidden' %}
{{ form_data[fieldname].html|raw }}
{% endif %}
</div>
{% endif %}
{% endfor %}
{{ form_data.submit.html|raw }}
</form>
|