diff --git a/static/functions.js b/static/functions.js index c45f537..ad35d95 100644 --- a/static/functions.js +++ b/static/functions.js @@ -1,11 +1,3 @@ -$(document).ready(function() { - $(".areyousure").on("click", function(e) { - if(!confirm("Êtes-vous sûr ?")) { - e.preventDefault(); - } - }); -}); - $(document).ready(function() { $(".toggle-dark-mode").on("click", function() { var currentState = $("html").attr("data-bs-theme"); diff --git a/views/field.html b/views/field.html index 169c146..4246c9e 100644 --- a/views/field.html +++ b/views/field.html @@ -72,8 +72,8 @@ Liste
-
- {% if Field.ListID %} + {% if Field.ListID %} +
-
- - - Modifier - -
- -
+
+ + {% endblock %} diff --git a/views/list.html b/views/list.html index 2c646fd..3249ac7 100644 --- a/views/list.html +++ b/views/list.html @@ -62,21 +62,19 @@ -
- - - Modifier - -
- -
+
@@ -84,7 +82,7 @@ Contenu de la liste
- + Ajouter @@ -119,16 +117,10 @@ {% endif %} -
- -
+ {% endfor %} @@ -142,4 +134,53 @@ {% endif %}
+ + + +{% for Item in ListItems %} + +{% endfor %} + {% endblock %} diff --git a/views/person.html b/views/person.html index f63136e..344440c 100644 --- a/views/person.html +++ b/views/person.html @@ -266,70 +266,47 @@ {% if !Person.DeletedAt.Valid %} {% if PermEdit %} - + Modifier {% endif %} {% if PermConvert %} -
- -
+ {% endif %} + {% endif %}
{% if Person.DeletedAt.Valid %} {% if PermRestore %} -
- -
+ {% endif %} {% else %} {% if PermArchive %} -
- -
+ {% endif %} {% endif %} {% if PermPurge %} -
- -
+ {% endif %}
@@ -339,62 +316,200 @@
- {% if !Person.DeletedAt.Valid %} - - - Modifier - -
- -
+ {% if !Person.DeletedAt.Valid %} + + {% if PermEdit %} + + + Modifier + + {% endif %} + + {% if PermConvert %} + + {% endif %} + {% endif %}
{% if Person.DeletedAt.Valid %} -
- -
- {% else %} -
- -
+ {% endif %} + {% endif %} -
- -
+ {% endif %} +
{% endif %} + + + + + + + + {% endblock %} diff --git a/views/role.html b/views/role.html index 24af2c9..dd017ab 100644 --- a/views/role.html +++ b/views/role.html @@ -569,22 +569,43 @@ -
- - - Modifier - -
- -
+
+ + {% endblock %} diff --git a/views/section.html b/views/section.html index 2b333d1..3a67a5c 100644 --- a/views/section.html +++ b/views/section.html @@ -139,22 +139,43 @@ -
- - - Modifier - -
- -
+
+ + {% endblock %} diff --git a/views/user.html b/views/user.html index f552295..7d7d29c 100644 --- a/views/user.html +++ b/views/user.html @@ -176,29 +176,47 @@ {% endif %} -
- - - Modifier - - - - Permissions - - - {% if User.ID != Globals.UserID %} -
- -
- {% endif %} +
+ + {% endblock %}