From 194608367973a62643a458392965628813723df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Bouzour=C3=A8ne?= Date: Thu, 23 Jan 2025 12:27:17 +0100 Subject: [PATCH] Improve lists --- views/fields.html | 111 ++++++++++++++++++++++++++------------------ views/lists.html | 22 +++++---- views/people.html | 2 +- views/roles.html | 17 +++---- views/sections.html | 37 ++++++++------- views/users.html | 24 +++++----- 6 files changed, 120 insertions(+), 93 deletions(-) diff --git a/views/fields.html b/views/fields.html index f1cfdd9..6072a68 100644 --- a/views/fields.html +++ b/views/fields.html @@ -1,7 +1,7 @@ {% extends "layouts/main.html" %} {% block main %} -
+
- {% if Fields %} -
- - - - - - - - - - {% for Field in Fields %} - - - - - - {% endfor %} - -
NomPopulationType de champ
- - {{ Field.Name }} - - - {% for Key, Value in PersonTypes %} - {% if Key == Field.PersonType %} - {{ Value }} - {% endif %} - {% endfor %} - - {% for Key, Value in FieldTypes %} - {% if Key == Field.FieldType %} - {{ Value }} - {% endif %} - {% endfor %} -
-
- {% else %} -
- Pas de champs pour le moment -
- {% endif %} - -
+ +
Membres
+
+ + + + + + + + + {% for Field in Fields %} + {% if Field.PersonType == "member" %} + + + + + {% endif %} + {% endfor %} + +
NomType de champ
+ + {{ Field.Name }} + + + {% for Key, Value in FieldTypes %} + {% if Key == Field.FieldType %} + {{ Value }} + {% endif %} + {% endfor %} +
+
+ +
Contacts
+
+ + + + + + + + + {% for Field in Fields %} + {% if Field.PersonType == "contact" %} + + + + + {% endif %} + {% endfor %} + +
NomType de champ
+ + {{ Field.Name }} + + + {% for Key, Value in FieldTypes %} + {% if Key == Field.FieldType %} + {{ Value }} + {% endif %} + {% endfor %} +
+
+
{% endblock %} diff --git a/views/lists.html b/views/lists.html index f973e78..e0da9de 100644 --- a/views/lists.html +++ b/views/lists.html @@ -1,7 +1,7 @@ {% extends "layouts/main.html" %} {% block main %} -
+
+ + {% if Lists %}
- - + + @@ -32,8 +39,10 @@ @@ -48,12 +57,5 @@ {% endif %} - - {% endblock %} diff --git a/views/people.html b/views/people.html index 8695a31..9d4802f 100644 --- a/views/people.html +++ b/views/people.html @@ -1,7 +1,7 @@ {% extends "layouts/main.html" %} {% block main %} -
+
NomChoix multiplesNomChoix multiples
{% if List.Multi %} + Oui {% else %} + Non {% endif %}
@@ -40,12 +48,5 @@ {% endif %} - - {% endblock %} diff --git a/views/sections.html b/views/sections.html index 63379e0..79d630c 100644 --- a/views/sections.html +++ b/views/sections.html @@ -1,7 +1,7 @@ {% extends "layouts/main.html" %} {% block main %} -
+
+ + {% if Sections %}
- - - - - + + + + @@ -33,27 +39,29 @@ {{ Section.Name }} - @@ -68,12 +76,5 @@ {% endif %} - - {% endblock %} diff --git a/views/users.html b/views/users.html index 6351022..b12afbb 100644 --- a/views/users.html +++ b/views/users.html @@ -1,7 +1,7 @@ {% extends "layouts/main.html" %} {% block main %} -
+
+ + {% if Users %}
NomNom techniqueSection parenteContient membresContient contactsNomSection parenteMembresContacts
- {{ Section.ShortName }} - {% if Section.ParentSectionID %} {{ Section.ParentSection.Name }} {% else %} - N/A - {% endif %} + + Non + {% endif %} {% if Section.ContainsMembers %} + Oui {% else %} + Non {% endif %} {% if Section.ContainsContacts %} + Oui {% else %} + Non {% endif %}
- - - + + + @@ -37,8 +44,10 @@ @@ -53,12 +62,5 @@ {% endif %} - - {% endblock %}
Nom completEmailAdministrateurNom completEmailAdministrateur
{% if User.IsAdmin %} + Oui {% else %} + Non {% endif %}