blueprints-raw.html.twig 515 B

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