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

{% block title %}Gestion User{% endblock %}

{% block body %}
    <style>
    </style>

    <form id="UpdateUser" action="{{ path('update-user', { 'id': app.user.id }) }}" method="post">
        <div id="InformationUser">
            <div class="user-info-item">
                <span class="user-info-label">Nom :</span>
                <span class="user-info-value">{{ app.user.nom }}</span>
            </div>
            <div class="user-info-item">
                <span class="user-info-label">Prénom :</span>
                <span class="user-info-value">{{ app.user.prenom }}</span>
            </div>
            <div class="user-info-item">
                <span class="user-info-label">Email :</span>
                <span class="user-info-value">{{ app.user.userIdentifier }}</span>
            </div>
            <div class="user-info-item">
                <span class="user-info-label">Roles :</span>
                <span class="user-info-value">{{ app.user.getRolesAsString() }}</span>
            </div>
        </div>
    </form>

    <div class="btn-update">
        <button onclick="updateUser(this)" data-id="{{ app.user.id }}" class="btn-update">Modifier</button>
    </div>

{% endblock %}

{% block javascripts %}
    <script src="{{ asset('js/Compte/CompteModal.js') }}" defer></script>
{% endblock %}
