{% extends 'Front/layout.html.twig' %}

{% form_theme form with ['Front/Form/fields.html.twig'] %}

{% block body %}
    <div>
        <nav class="nav nav-pills nav-justified nav-counter no-margin-bottom">
            {% if constant('AppBundle\\Enum\\UserType::TEACHER') == app.user.type %}
                <span class="nav-item nav-link {% if step == 1 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.teacher.personalinfos.legend'|trans({}, 'form') }}</span>
                <span class="nav-item nav-link {% if step == 2 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.teacher.establishment.legend'|trans({}, 'form') }}</span>
                <span class="nav-item nav-link {% if step == 3 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.teacher.operation.legend'|trans({}, 'form') }}</span>
                <span class="nav-item nav-link {% if step == 4 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.teacher.intervenant.legend'|trans({}, 'form') }}</span>
            {% else %}
                <span class="nav-item nav-link {% if step == 1 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.engineer.company.legend'|trans({}, 'form') }}</span>
                <span class="nav-item nav-link {% if step == 2 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.engineer.personalinfos.legend'|trans({}, 'form') }}</span>
                <span class="nav-item nav-link {% if step == 3 %}active{% endif %}">{{ 'form.front.itdlc.fieldset.engineer.operation.legend'|trans({}, 'form') }}</span>
            {% endif %}
        </nav>

        <div class="module module-inview-demande-itdlc-form bg-alabaster pa">
            {% if constant('AppBundle\\Enum\\UserType::TEACHER') == app.user.type and step == 4 %}
                {{ include('Front/User/_component/listeIngenieursProches.html.twig', {othersUsers:othersUsers}) }}
            {% endif %}

    </div>
{% endblock %}

{% block before_body %}
    <header class="page-header bg-tundora">
        <div class="container">
            <div class="item-content">
                <h1 class="color-theme">{{ ('sentence.itdlc.' ~ app.user.type ~ '.header.' ~ mode ~ '.title')|trans({}, 'sentence')}}</h1>
                <p>{{ ('sentence.itdlc.' ~ app.user.type ~ '.header.' ~ mode ~ '.introduction')|trans({}, 'sentence')}}</p>
            </div>
        </div>
    </header>
    {{ render(controller('AppBundle:Render:module', { position:'before_body' })) }}
{% endblock %}