{% extends 'admin/base_admin.html.twig' %}


{% block contentHeader %}
    <h1>
        Ajouter un utilisateur
    </h1>
    <ol class="breadcrumb">
        <li class="active">Utilisateurs</li>
    </ol>
{% endblock %}

{% block content %}
        {{ form_start(form) }}
        <div class="row">
            <div class="col-xs-7">
                <div class="box box-primary">
                    <div class="box-body">
                        {{ form_row(form.firstname) }}
                        {{ form_row(form.lastname) }}
                        {{ form_row(form.username) }}
                        {{ form_row(form.email) }}
                        {{ form_row(form.plainPassword) }}

                    </div>
                </div>
            </div>
            <div class="col-xs-5">
                <div class="box box-primary">
                    <div class="box-body">
                        {{ form_row(form.roles) }}
                        {{ form_row(form.enabled) }}

                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12">
                <button class="btn btn-success" type="submit">Enregistrer</button>
            </div>
        </div>
        {{ form_end(form) }}
{% endblock %}

{% block javascripts %}

{% endblock %}