From: Guillaume Subiron Date: Thu, 7 Jun 2012 13:13:08 +0000 (+0200) Subject: Ajout de boites modales pour les suppressions d'éléments X-Git-Url: http://git.cyclocoop.org/?p=cavote.git;a=commitdiff_plain;h=ec43d0ed6233aade5de9491658645e3c56c00190 Ajout de boites modales pour les suppressions d'éléments --- diff --git a/templates/admin_groups.html b/templates/admin_groups.html index adb8656..1b66c69 100644 --- a/templates/admin_groups.html +++ b/templates/admin_groups.html @@ -23,8 +23,22 @@ {{ group.name }} {{ group.nb_users }} {{ group.nb_votes }} - {% if group.system %}system{% else %}Supprimer{% endif %} + {% if group.system %}system{% else %} + Supprimer{% endif %} + {% endfor %} diff --git a/templates/admin_users.html b/templates/admin_users.html index 803ccef..3721a89 100644 --- a/templates/admin_users.html +++ b/templates/admin_users.html @@ -4,7 +4,7 @@
+ Ajouter un utilisateur {% if not users %} -
Il n'y a aucun user.
+
Il n'y a aucun utilisateur.
{% else %} @@ -25,14 +25,28 @@ + {% endfor %}
{% if user.is_admin %}Oui{% else %}Non{% endif %} Éditer - Supprimer + Supprimer

{% endif %} + Ajouter un utilisateur + {% endblock %} diff --git a/templates/admin_vote_edit.html b/templates/admin_vote_edit.html index 215814c..85c38fa 100644 --- a/templates/admin_vote_edit.html +++ b/templates/admin_vote_edit.html @@ -132,9 +132,22 @@

- Supprimer + Supprimer
+ {% endfor %} diff --git a/templates/vote.html b/templates/vote.html index 70067a7..a40fac2 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -32,7 +32,22 @@ {% endif %} {% endfor %} {% if 'user' in session %} - {% if user.userid == session.user.id %}{% endif %} + {% if user.userid == session.user.id %} + + + {% endif %} {% endif %} {% endif %}