{% set form_id = form_id ? form_id : 'blueprints' %} {% set scope = scope ?: 'data.' %} {% if admin.findFormFields('file', blueprints.fields) %} {% set multipart = ' enctype="multipart/form-data"' %} {% endif %}
{% for field in blueprints.fields %} {% if field.type %} {% set value = field.name ? (form.value(field.name) ?? data.value(field.name)) : data.toArray %}
{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
{% endif %} {% endfor %} {% if form %} {% include "forms/fields/formname/formname.html.twig" %} {% include 'forms/fields/uniqueid/uniqueid.html.twig' %} {{ nonce_field(form.getNonceAction(), form.getNonceName())|raw }} {% else %} {{ nonce_field('admin-form', 'admin-nonce')|raw }} {% endif %}