{% extends 'bulma.html.twig' %}

{% block title %}Administration > Utilisateurs > Éditer{% endblock %}

{% block content %}

    {{ form_errors(form) }}
    {{ form_start(form) }}

        {{ form_row(form.firstName) }}
        {{ form_row(form.lastName) }}
        {{ form_row(form.email) }}

        <div class="field">
            {{ form_widget(form.isVerified) }}
            {{ form_label(form.isVerified) }}
            {{ form_help(form.isVerified) }}
        </div>

        {{ form_row(form.phone) }}

        <div class="field">
            {{ form_label(form.roles) }}

                {{ form_widget(form.roles) }}
            {{ form_help(form.roles) }}
        </div>

        {{ form_widget(form) }}

        <div class="control">
        <button class="button is-primary" type="submit">Envoyer</button>
  
        <a href="{{ path('app_admin_user') }}" class="button">Annuler</a>
        </div>

    {{ form_end(form) }}

{% endblock %}
