{% set form_id = form_id ? form_id : 'blueprints' %}

<form id="{{ form_id }}" method="post" data-grav-form="{{ form_id }}" data-page-move>
    {% for field in blueprints.fields %}
        {% if field.type %}
            {% set value = data.value(field.name) %}
            <div class="block block-{{field.type}}">
                {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
            </div>
        {% endif %}
    {% endfor %}

    <div class="button-bar">
        <a class="button secondary remodal-cancel" href="#"><i class="fa fa-fw fa-close"></i> {{ "PLUGIN_ADMIN.CANCEL"|tu }}</a>
        <button class="button primary" name="task" value="save" form="blueprints">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
    </div>
</form>
