43 lines
1.6 KiB
Twig
43 lines
1.6 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>
|
|
<a href="{{ path('user_deactivate', {'id': user.id}) }}" class="btn btn-danger">Désactiver</a>
|
|
</div>
|
|
{% endif %}
|
|
{% include 'user/userInformation.html.twig' %}
|
|
|
|
<h1 class="mt-5 mb-4">Organisations</h1>
|
|
<div class="row">
|
|
{% if userOrganizations is empty %}
|
|
<div class="col-md-10 m-auto p-auto">
|
|
<h3>Aucune organisation associée à cet utilisateur.</h3>
|
|
</div>
|
|
{% elseif userOrganizations|length == 1 %}
|
|
{% for organization in userOrganizations[0].apps %}
|
|
{{ dump(userOrganizations) }}
|
|
|
|
{# {% include 'user/application/information.html.twig' #}
|
|
{# with {'application': application, 'roles' : } %} #}
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for organization in userOrganizations %}
|
|
{% include 'user/organization/userOrganizationInformation.html.twig'
|
|
with {'organization': organization.organization, 'roles': organization.roles, 'apps': organization.apps, 'uoId': organization.uoId} %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
|
|
{% endblock %}
|
|
|