From f18959c0a1d643fab3b08921a004f158d4ba4720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 1 Nov 2017 17:26:40 +0100 Subject: [PATCH] BdA-Revente: meaningful names, some help tests --- bda/templates/bda/revente/manage.html | 58 +++++++++++++++++++----- bda/templates/bda/revente/subscribe.html | 39 ++++++++++------ bda/templates/bda/revente/tirages.html | 40 ++++++++++++---- bda/views.py | 18 ++++++++ gestioncof/static/css/cof.css | 11 +++++ gestioncof/templates/home.html | 6 +-- 6 files changed, 136 insertions(+), 36 deletions(-) diff --git a/bda/templates/bda/revente/manage.html b/bda/templates/bda/revente/manage.html index 0912babb..8162d55d 100644 --- a/bda/templates/bda/revente/manage.html +++ b/bda/templates/bda/revente/manage.html @@ -3,50 +3,84 @@ {% block realcontent %} -

Revente de place

+

Gestion des places que je revends

{% with resell_attributions=resellform.attributions annul_attributions=annulform.attributions sold_attributions=soldform.attributions %} {% if resellform.attributions %} +
+

Places non revendues

- {% csrf_token %} - {{resellform|bootstrap}} +
+ + Cochez les places que vous souhaitez revendre, et validez. Vous aurez + ensuite 1h pour changer d'avis avant que la revente soit confirmée et + que les notifications soient envoyées aux intéressé·e·s. +
+
+ {% csrf_token %} + {{ resellform|bootstrap }} +
+ +
{% endif %} -
+ {% if annul_attributions or overdue %}

Places en cours de revente

+ {% if annul_attributions %} +
+ + Vous pouvez annuler les places mises en vente il y a moins d'une heure. +
+ {% endif %} {% csrf_token %}
    {% for attrib in annul_attributions %} -
  • {{attrib.tag}} {{attrib.choice_label}}
  • +
  • {{ attrib.tag }} {{ attrib.choice_label }}
  • {% endfor %} {% for attrib in overdue %}
  • - {{attrib.spectacle}} + {{ attrib.spectacle }}
  • {% endfor %} +
+
+
{% if annul_attributions %} {% endif %}
+ +
{% endif %} -
+ {% if sold_attributions %}

Places revendues

-
+ +
+ + Pour chaque revente, vous devez soit l'annuler soit la confirmer pour + transférer la place la place à la personne tirée au sort. + + L'annulation sert par exemple à pouvoir remettre la place en jeu si + vous ne parvenez pas à entrer en contact avec la personne tirée au + sort. +
+
{% csrf_token %} - {{soldform|bootstrap}} - - - + {{ soldform|bootstrap }} +
+ + + {% endif %} {% if not resell_attributions and not annul_attributions and not overdue and not sold_attributions %}

Plus de reventes possibles !

diff --git a/bda/templates/bda/revente/subscribe.html b/bda/templates/bda/revente/subscribe.html index fcf57345..9a193908 100644 --- a/bda/templates/bda/revente/subscribe.html +++ b/bda/templates/bda/revente/subscribe.html @@ -4,28 +4,41 @@ {% block realcontent %}

Inscriptions pour BdA-Revente

+
+ + Cochez les spectacles pour lesquels vous souhaitez recevoir un + notification quand une place est disponible en revente.
+ Lorsque vous validez vos choix, si un tirage au sort est en cours pour + un des spectacles que vous avez sélectionné, vous serez automatiquement + inscrit à ce tirage. +
+
{% csrf_token %}
-

Spectacles

-
- - + + -
-
    - {% for checkbox in form.spectacles %} -
  • {{checkbox}}
  • - {%endfor%} -
-
+
+
    + {% for checkbox in form.spectacles %} +
  • {{ checkbox }}
  • + {% endfor %} +
+
- +