From 443b7328596c0296184c1ff22c1be51433b83faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Fri, 8 Jul 2016 20:27:27 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9sactive=20le=20lancement=20du=20tirage?= =?UTF-8?q?=20automatiquement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Après le lancement du tirage, l'attribut `enable_do_tirage` est automatiquement passé à `False` --- bda/templates/bda-attrib.html | 5 +++-- bda/views.py | 1 + gestioncof/static/css/cof.css | 13 ++++--------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/bda/templates/bda-attrib.html b/bda/templates/bda-attrib.html index 81540594..ce3d0cf1 100644 --- a/bda/templates/bda-attrib.html +++ b/bda/templates/bda-attrib.html @@ -10,8 +10,9 @@

Attributions


-

Pensez à désactiver le lancement du tirage dès maintenant dans -l'interface admin

+

Pour raison de sécurité, le lancement du tirage + a été désactivé. Vous pouvez le réactiver dans + l'interface admin

Token :

{{ token }}
diff --git a/bda/views.py b/bda/views.py index 7c10e0f2..f97a6c70 100644 --- a/bda/views.py +++ b/bda/views.py @@ -239,6 +239,7 @@ def do_tirage(request, tirage_id): tirage_elt.tokens += "%s\n\"\"\"%s\"\"\"\n" % ( timezone.now().strftime("%y-%m-%d %H:%M:%S"), form.cleaned_data['token']) + tirage_elt.enable_do_tirage = False tirage_elt.save() for (show, members, _) in results: for (member, _, _, _) in members: diff --git a/gestioncof/static/css/cof.css b/gestioncof/static/css/cof.css index 6cbc6c5d..3fb48ffb 100644 --- a/gestioncof/static/css/cof.css +++ b/gestioncof/static/css/cof.css @@ -240,21 +240,16 @@ fieldset legend { background-color: transparent; } +.success a { + color: inherit; +} + .error { font-weight: bold; color: #B00000; background-color: transparent; } -.important { - font-weight: bold; - color: #F90; -} - -.important a { - color: #F90; -} - #main form ul.errorlist li { font-weight: bold; color: #B00000;