{% embed 'Comitium5DesignerBundle:Common:bootstrap-tabs.html.twig' %}

    {% block tab_head %}
        <li class="active">
            <a href="#format" data-toggle="tab">{{ "widget.editor.tab.format"|trans }}</a>
        </li>
        <li>
            <a href="#data" data-toggle="tab">{{ "widget.editor.tab.data"|transchoice(0) }}</a>
        </li>
    {% endblock tab_head %}

    {% block tab_body %}
        <div class="tab-pane fade in active" id="format">
            {% for parameter in form.parameters if parameter.vars.data.type == "FORMAT" %}
                <div class="cs_vce_param images">
                    {{ form_widget(parameter) }}
                </div>
            {% endfor %}
            <div class="clearfix"></div>
        </div>

        <div class="tab-pane fade" id="data">
            {% for parameter in form.parameters if parameter.vars.data.type != "FORMAT" %}
                <div class="cs_vce_param">
                    {{ form_widget(parameter) }}
                </div>
            {% endfor %}
            <div class="clearfix"></div>
        </div>
    {% endblock tab_body %}

    {% block form_actions %}{% endblock %}
{%  endembed %}
