
{% extends ('layouts/' ~ template ~ '.twig') %}

{% block content %}
    {#<script type="text/javascript" src="/modules/FormBuilder/js/mtc_formbuilder.js"></script>#}
    <div class="wrapper">
        {% if preview is not empty %}
            <div class="error msg el">
                This is a preview of the form. This is meant for previewing changes.
                There might be some functional issues if the preview doesn't match sites saved version of this form.
            </div>
        {% endif %}

        <h2>{{ form.name }}</h2>

        <div id="formBuilder{{ form.id }}">
            {% include 'FormBuilder/form.twig' %}
        </div>
    </div> <!-- / wrapper -->

{% endblock %}