47 lines
1.3 KiB
Twig
47 lines
1.3 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="col-md-10 m-auto p-5">
|
|
|
|
|
|
{% if is_granted("ROLE_ADMIN") %}
|
|
<div class="col d-flex justify-content-between align-items-center ">
|
|
<h1 class="mb-4">Gestion Utilisateur</h1>
|
|
<div>
|
|
{% if is_granted("ROLE_SUPER_ADMIN") %}
|
|
<a href="{{ path('user_delete', {'id': user.id}) }}" class="btn btn-danger">Supprimer</a>
|
|
{% endif %}
|
|
<a href="{{ path('user_deactivate', {'id': user.id}) }}" class="btn btn-danger">Désactiver</a>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %}
|
|
{% include 'user/userInformation.html.twig' %}
|
|
{% if orgs|length >1 %}
|
|
|
|
<h1 class="mt-5 mb-4">Vos applications</h1>
|
|
{% elseif orgs|length == 1 %}
|
|
{% for org in orgs %}
|
|
<h1 class="mt-5 mb-4">{{ org.name }}</h1>
|
|
{% endfor %}
|
|
{% else %}
|
|
<h1 class="mt-5 mb-4">Aucune application</h1>
|
|
{% endif %}
|
|
<div class="d-flex ">
|
|
{% for uoa in uoas %}
|
|
{% include 'user/application/information.html.twig' %}
|
|
{% endfor %}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
|
|
{% endblock %}
|
|
|