fixed field iteration

master
Alexander Graf 3 years ago
parent fd5bdc8650
commit cf7914d050
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

@ -24,7 +24,7 @@
<div class="row"> <div class="row">
{%- for field in fields %} {%- for field in fields %}
<div class="col-lg-{{ width }} col-xs-12 {{ 'has-error' if field.errors else '' }}"> <div class="col-lg-{{ width }} col-xs-12 {{ 'has-error' if field.errors else '' }}">
{%- if field is iterable %} {%- if field.__class__.__name__ == 'list' %}
{%- for subfield in field %} {%- for subfield in field %}
{{ form_individual_field(subfield, prepend=prepend, append=append, label=label, **kwargs) }} {{ form_individual_field(subfield, prepend=prepend, append=append, label=label, **kwargs) }}
{%- endfor %} {%- endfor %}

Loading…
Cancel
Save