<!-- TABS -->
{% set full_width = (full_width is defined) ? full_width : true %}
<ul class="nav nav-pills module-tabs module-tabs-edit nav-justified" role="tablist">
    {% block tab_head %}{% endblock tab_head %}
</ul>
<div class="tabbable-custom{{ (full_width) ? ' tabbable-full-width' }}">
    <div class="tab-content">
        {% block form_errors %}
            {% if not form.vars.valid and not app.request.get("draft") %}
                <div class="alert alert-danger">
                    {{ 'cs_core.messages.generic_form_error'|trans|raw }}
                </div>
            {% endif %}
        {% endblock form_errors %}

        {% block tab_body %}
            {% if steps is defined %}
                {% for k,step in steps.content  %}
                    <div class="tab-pane fade in {% if loop.first %}active{% endif %}" id="{{ steps.titles[k] }}" data-action="tab">
                        {% include  step %}
                        <div class="clearfix"></div>
                    </div>
                {% endfor %}
            {% endif %}
        {% endblock tab_body %}
    </div>
    <div class="form-actions" data-role="form-actions">
        <div class="row">
            {% block form_actions %}{% endblock form_actions %}
        </div>
    </div>
</div>

{% if form._token is defined %}
    {{ form_row(form._token) }}
{% endif %}

{% if form._uniqid is defined %}
    {{ form_row(form._uniqid) }}
{% endif %}

{% if form.uuid is defined %}
    {{ form_row(form.uuid) }}
{% endif %}

{#{{ form_end(form) }}#}
<!-- END TABS -->
