From ec43d0ed6233aade5de9491658645e3c56c00190 Mon Sep 17 00:00:00 2001 From: Guillaume Subiron Date: Thu, 7 Jun 2012 15:13:08 +0200 Subject: [PATCH] =?utf8?q?Ajout=20de=20boites=20modales=20pour=20les=20sup?= =?utf8?q?pressions=20d'=C3=A9l=C3=A9ments?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- templates/admin_groups.html | 16 +++++++++++++++- templates/admin_users.html | 18 ++++++++++++++++-- templates/admin_vote_edit.html | 15 ++++++++++++++- templates/vote.html | 17 ++++++++++++++++- 4 files changed, 61 insertions(+), 5 deletions(-) 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 %} -- 2.20.1