123456789101112131415 |
- {% for field_name, field in fields %}
- {% if field.type and not field.validate.ignore %}
- {%- if field_name starts with '.' -%}
- {% set field_name = name ? name ~ field_name : field_name[1:] %}
- {% set field = field|merge({ name: field_name }) %}
- {% endif %}
- {% set value = form ? form.value(field_name) : data.value(field_name) %}
- {% block inner_markup_field_open %}{% endblock %}
- {% block field %}
- {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
- {% endblock %}
- {% block inner_markup_field_close %}{% endblock %}
- {% endif %}
- {% endfor %}
|