From e17e8e0eb2d033753b288906d82af4ca3873c62d Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 28 Jul 2025 12:13:04 +0200 Subject: [PATCH] refactor --- templates/user/index.html.twig | 37 +---------------------------- templates/user/userList.html.twig | 39 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 36 deletions(-) create mode 100644 templates/user/userList.html.twig diff --git a/templates/user/index.html.twig b/templates/user/index.html.twig index ec6f756..e72325e 100644 --- a/templates/user/index.html.twig +++ b/templates/user/index.html.twig @@ -11,42 +11,7 @@ {% for org in usersByOrganization %}

{{ org.organization_name|title }}

- - - - - - - - - - - - {% for user in org.users %} - - - - - - - - {% endfor %} - {% if org.users|length == 0 %} - - - - {% endif %} - -
PictureSurnameNameEmailVisualiser
- {% if user.pictureUrl %} - User profile pic - {% endif %} - {{ user.surname }}{{ user.name }}{{ user.email }} - - - {{ ux_icon('fa6-regular:eye', {height: '30px', width: '30px'}) }} - -
Aucun utilisateur trouvé.
+ {% include 'user/userList.html.twig' %} {% endfor %} {% endblock %} \ No newline at end of file diff --git a/templates/user/userList.html.twig b/templates/user/userList.html.twig new file mode 100644 index 0000000..e936f42 --- /dev/null +++ b/templates/user/userList.html.twig @@ -0,0 +1,39 @@ +{% block body %} + + + + + + + + + + + + + {% for user in org.users %} + + + + + + + + {% endfor %} + {% if org.users|length == 0 %} + + + + {% endif %} + +
PictureSurnameNameEmailVisualiser
+ {% if user.pictureUrl %} + User profile pic + {% endif %} + {{ user.surname }}{{ user.name }}{{ user.email }} + + + {{ ux_icon('fa6-regular:eye', {height: '30px', width: '30px'}) }} + +
Aucun utilisateur trouvé.
+{% endblock %} \ No newline at end of file