blueprints-new.html.twig 1.0 KB

12345678910111213141516171819
  1. {% set form_id = form_id ? form_id : 'blueprints' %}
  2. {% set scope = scope ?: 'data.' %}
  3. {% set field_layout = 'admin' %}
  4. <form {% if form_action %}action="{{ form_action }}"{% endif %} id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" {% if form.novalidate %}novalidate{% endif %} data-grav-keepalive="true">
  5. {% embed 'forms/default/fields.html.twig' with {name: null, fields: blueprints.fields} %}
  6. {% block inner_markup_field_open %}<div class="block block-{{ field.type }}">{% endblock %}
  7. {% block inner_markup_field_close %}</div>{% endblock %}
  8. {% endembed %}
  9. <input type="hidden" name="task" value="continue" />
  10. <div class="button-bar">
  11. <button data-remodal-action="cancel" class="button secondary remodal-cancel"><i class="fa fa-fw fa-close"></i> {{ "PLUGIN_ADMIN.CANCEL"|t }}</button>
  12. <button class="button success"><i class="fa fa-fw fa-check"></i> {{ "PLUGIN_ADMIN.CONTINUE"|t }}</button>
  13. </div>
  14. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  15. </form>