{% set menuActive = 'Administration' %}
{% set menuLeft = 'Administration.GestionUtilisateur.listPendingCreation' %}
{% do setAriane(0, 'Inscription en attente' | trad, getRouteName()) %}

{% extends 'layout.twig' %}
{% block body %}
<section class="contenu">
    <h1>{{ 'Administration' | trad }}</h1>
    
    {% include '@Administration/GestionUtilisateur/_navbar.twig' with {
        current_route: current_route,
        mapCount: mapCount,
    } only %}

    <article class="tab-content">
        <h4>{{ 'Liste des demandes de création de compte à traiter' | trad }}</h4>

        {% embed '@Administration/GestionUtilisateur/_tableUser.twig' with {
            listItem: listItem,
            infoPagination: infoPagination,
            post: post,
        } only %}
            {% block action %}
                <a class="button principal" href="{{ path(
                    'Administration.GestionUtilisateur.formApprobDem',
                    {demId: item.CODE}
                ) }}">
                    {{- 'Traiter' | trad -}}
                </a>
            {% endblock %}
        {% endembed %}
    </article>
</section>
{% endblock %}


