{{ form_start(form, {'action': path('admin.utilisateurs.new'), 'method': 'POST'}) }}
{{ alert_infos('NB!', 'Tous les champs comportant un (*) sont obligatoires.') }}
<ul class="nav nav-tabs nav-tabs-highlight">
    <li class="nav-item">
        <a href="#vertical-left-infos" class="nav-link active" data-toggle="tab">
            <i class="icon-info22 mr-2"></i> Infos basics
        </a>
    </li>
    <li class="nav-item">
        <a href="#vertical-left-password" class="nav-link" data-toggle="tab">
            <i class="icon-lock2 mr-2"></i> Mot de passe
        </a>
    </li>
    <li class="nav-item">
        <a href="#vertical-left-adresse" class="nav-link" data-toggle="tab">
            <i class="icon-map4 mr-2"></i> Adresse
        </a>
    </li>
    <li class="nav-item">
        <a href="#vertical-left-photo" class="nav-link" data-toggle="tab">
            <i class="icon-images2 mr-2"></i> Photo
        </a>
    </li>
</ul>

<div class="tab-content">
    <div class="tab-pane fade show active" id="vertical-left-infos">
        {% include 'admin/security/users/commons/_form_tab_general_account.html.twig' with {'user': utilisateur} %}
        <div class="row" style="display: flex; flex-direction: row; justify-content: space-between; align-items: center;">
            <div class="col-md-12" style="text-align: left!important;">
                {{ form_widget(form.user.enabled) }}
            </div>
        </div>
    </div>

    <div class="tab-pane fade" id="vertical-left-password">
        {% include 'admin/security/users/commons/_form_tab_password_account.html.twig' with {'user': utilisateur} %}
    </div>

    <div class="tab-pane fade" id="vertical-left-adresse">
        {% include 'admin/security/users/commons/_form_tab_adresse_account.html.twig' %}
    </div>

    <div class="tab-pane fade" id="vertical-left-photo">
        {% include 'admin/security/users/commons/_form_tab_images_account.html.twig' %}
    </div>
</div>

<div class="text-right mt-3">
    <button type="button" data-dismiss="modal" class="btn btn-sm btn-default">Annuler</button> &nbsp;
    <button type="submit" class="btn btn-sm btn-primary"><i class="icon-floppy-disk"></i> {{ button_label|default('Enregistrer') }}</button>
</div>
{{ form_end(form) }}
