From d884ff4155306bafdf2328c469e89b44a977aca7 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 19 Nov 2025 17:27:35 +0100 Subject: [PATCH] correction visuel --- templates/user/show.html.twig | 211 +++++++++++++++++----------------- 1 file changed, 108 insertions(+), 103 deletions(-) diff --git a/templates/user/show.html.twig b/templates/user/show.html.twig index 0066327..10c22b8 100644 --- a/templates/user/show.html.twig +++ b/templates/user/show.html.twig @@ -44,112 +44,117 @@ {% endif %} -
- {% for app in apps %} -
-
- {% if app.logoMiniUrl %} - Logo {{ app.name }} - {% endif %} -
-

{{ app.name|title }}

-
-
-
-
-

Description - : {{ app.descriptionSmall|default('Aucune description disponible.')|raw }} -

-
- {# EDITABLE if admin and exactly one UO #} - {% if canEditRoles and data.singleUo is not null %} -
- {# for this app, find its grouped info #} - {# Find the group for this specific app #} - {% set appGroup = null %} - {% for group in data.uoas|default([]) %} - {% if group.application.id == app.id %} - {% set appGroup = group %} - {% endif %} - {% endfor %} - -
- -
- - {% if appGroup %} - {# Use rolesArray: filtered by current user's level (no SUPER ADMIN for plain ADMIN, etc.) #} - {% for role in appGroup.rolesArray %} - - - {% endfor %} - - {% else %} - -

Aucun rôle défini pour cette - application.

- - {% endif %} -
- -
-
- - {# READ ONLY otherwise #} - {% else %} - {% set appGroup = null %} - {% for group in data.uoas|default([]) %} - {% if group.application.id == app.id %} - {% set appGroup = group %} +
+
+ {% for app in apps %} +
+
+
+ {% if app.logoMiniUrl %} + Logo {{ app.name }} {% endif %} - {% endfor %} - -
- -
- - {% if appGroup %} - {# Use rolesArray: filtered by current user's level (no SUPER ADMIN for plain ADMIN, etc.) #} - {% for role in appGroup.rolesArray %} - - - {% endfor %} - {% else %} -

Aucun rôle défini pour cette - application.

- {% endif %} - +
+

{{ app.name|title }}

- {% endif %} + +
+
+

Description + : {{ app.descriptionSmall|default('Aucune description disponible.')|raw }} +

+
+ {# EDITABLE if admin and exactly one UO #} + {% if canEditRoles and data.singleUo is not null %} +
+ {# for this app, find its grouped info #} + {# Find the group for this specific app #} + {% set appGroup = null %} + {% for group in data.uoas|default([]) %} + {% if group.application.id == app.id %} + {% set appGroup = group %} + {% endif %} + {% endfor %} + +
+ +
+ + {% if appGroup %} + {# Use rolesArray: filtered by current user's level (no SUPER ADMIN for plain ADMIN, etc.) #} + {% for role in appGroup.rolesArray %} + + + {% endfor %} + + {% else %} + +

Aucun rôle défini pour cette + application.

+ + {% endif %} +
+ +
+
+ + {# READ ONLY otherwise #} + {% else %} + {% set appGroup = null %} + {% for group in data.uoas|default([]) %} + {% if group.application.id == app.id %} + {% set appGroup = group %} + {% endif %} + {% endfor %} + +
+ +
+ + {% if appGroup %} + {# Use rolesArray: filtered by current user's level (no SUPER ADMIN for plain ADMIN, etc.) #} + {% for role in appGroup.rolesArray %} + + + {% endfor %} + {% else %} +

Aucun rôle défini pour cette + application.

+ {% endif %} + +
+
+ {% endif %} +
+
-
- {% endfor %} + {% endfor %} +
@@ -161,7 +166,7 @@ {% endblock %} - {% block title %} + {% block title %} - {% endblock %} + {% endblock %}