blueprints-raw.html.twig 635 B

1234567891011121314151617
  1. {% set form_id = form_id ? form_id : 'blueprints' %}
  2. {% set scope = scope ?: 'data.' %}
  3. <form id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" data-grav-keepalive="true">
  4. {% for field in blueprints.fields %}
  5. {% if field.type %}
  6. {% set value = field.name ? data.value(field.name) : data.toArray %}
  7. <div class="block block-{{ field.type }}">
  8. {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
  9. </div>
  10. {% endif %}
  11. {% endfor %}
  12. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  13. </form>