blueprints-new-folder.html.twig 812 B

123456789101112131415161718192021
  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. <input type="hidden" name="task" value="saveNewFolder" />
  13. <div class="button-bar">
  14. <button class="button primary">{{ "PLUGIN_ADMIN.SAVE"|tu }}</button>
  15. </div>
  16. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  17. </form>