diff --git a/bda/migrations/0005_encoding.py b/bda/migrations/0005_encoding.py new file mode 100644 index 00000000..b36113c2 --- /dev/null +++ b/bda/migrations/0005_encoding.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('bda', '0004_mails-rappel'), + ] + + operations = [ + migrations.AlterField( + model_name='choixspectacle', + name='priority', + field=models.PositiveIntegerField(verbose_name='Priorit\xe9'), + ), + migrations.AlterField( + model_name='spectacle', + name='priority', + field=models.IntegerField(default=1000, verbose_name='Priorit\xe9'), + ), + migrations.AlterField( + model_name='spectacle', + name='rappel_sent', + field=models.DateTimeField(null=True, verbose_name='Mail de rappel envoy\xe9', blank=True), + ), + ] diff --git a/bda/static/css/bda.css b/bda/static/css/bda.css index 8851eeee..d97bb954 100644 --- a/bda/static/css/bda.css +++ b/bda/static/css/bda.css @@ -1,10 +1,45 @@ -form#tokenform {text-align: center; font-size: 2em;} -label {margin-right: 10px; vertical-align: top;} -form#tokenform textarea {font-size: 2em; width: 350px; height: 200px; font-family: 'Droif Serif', serif;} -input {width: 400px; font-size: 2em;} -ul.losers {display: inline; margin: 0; padding: 0;} -ul.losers li {display: inline;} -span.details {font-size: 0.7em;} -table {border: 1px solid black; border-collapse: collapse;} -td {border: 1px solid black; padding: 2px;} -.attribresult {margin: 10px 0px;} +form#tokenform { + text-align: center; + font-size: 2em; +} + +label { + margin-right: 10px; + vertical-align: top; +} + +form#tokenform textarea { + font-size: 2em; + width: 350px; + height: 200px; + font-family: 'Droif Serif', serif; +} + +/* wft ? +input { + width: 400px; + font-size: 2em; +}*/ + +ul.losers { + display: inline; + margin: 0; + padding: 0; +} + +ul.losers li { + display: inline; +} + +span.details { + font-size: 0.7em; +} + +td { + border: 0px solid black; + padding: 2px; +} +.attribresult { + margin: 10px 0px; +} + diff --git a/bda/templates/bda-attrib-extra.html b/bda/templates/bda-attrib-extra.html index 8ffccf34..1fdb29a5 100644 --- a/bda/templates/bda-attrib-extra.html +++ b/bda/templates/bda-attrib-extra.html @@ -2,10 +2,10 @@ {% block extracontent %} -

Attribution (détails)

-

Token :

+

Attribution (détails)

+

Token :

{{ token }}
-

Placés : {{ total_slots }} ; Déçus : {{ total_losers }}

+

Placés : {{ total_slots }} ; Déçus : {{ total_losers }}

{% for member, shows in members2 %} diff --git a/bda/templates/bda-attrib.html b/bda/templates/bda-attrib.html index f0bfd955..cbfffacf 100644 --- a/bda/templates/bda-attrib.html +++ b/bda/templates/bda-attrib.html @@ -7,16 +7,16 @@ {% block realcontent %} -

Attribution

-

Token :

+

Attribution

+

Token :

{{ token }}
-

Placés : {{ total_slots }} ; Déçus : {{ total_losers }}

-{% if user.profile.is_buro %}

Déficit total: {{ total_deficit }} €, Opéra: {{ opera_deficit }} €, Attribué: {{ total_sold }} €

{% endif %} -

Temps de calcul : {{ duration|floatformat }}s

+

Placés : {{ total_slots }} ; Déçus : {{ total_losers }}

+{% if user.profile.is_buro %}

Déficit total: {{ total_deficit }} €, Opéra: {{ opera_deficit }} €, Attribué: {{ total_sold }} €

{% endif %} +

Temps de calcul : {{ duration|floatformat }}s

{% for show, members, losers in results %}
-

{{ show.title }} - {{ show.date_no_seconds }} @ {{ show.location }}

+

{{ show.title }} - {{ show.date_no_seconds }} @ {{ show.location }}

{{ show.nrequests }} demandes pour {{ show.slots }} places {{ show.price }}€ par place{% if user.profile.is_buro and show.nrequests < show.slots %}, {{ show.deficit }}€ de déficit{% endif %} diff --git a/bda/templates/bda-notpaid.html b/bda/templates/bda-notpaid.html index 10b272d8..b25c2ba3 100644 --- a/bda/templates/bda-notpaid.html +++ b/bda/templates/bda-notpaid.html @@ -1,6 +1,6 @@ {% extends "base_title.html" %} {% block realcontent %} -

Nope

+

Nope

Avant de revendre des places, il faut aller les payer !

{% endblock %} diff --git a/bda/templates/bda-participants.html b/bda/templates/bda-participants.html index a54242d5..3efeccc3 100644 --- a/bda/templates/bda-participants.html +++ b/bda/templates/bda-participants.html @@ -1,61 +1,67 @@ {% extends "base_title.html" %} +{% load staticfiles %} {% block realcontent %}

{{ spectacle }}

-

Ajouter une attribution

-
+
- - - - - - + + + + + + {% for participant in participants %} - - - - - - - - - {% endfor %} + + + + + + + + {% endfor %} +
NomIdentifiantPlacesAdresse MailPayéDonnéNomPlacesAdresse MailPayéDonné
{{participant.name}}{{participant.username}}{{participant.nb_places}} place{{participant.nb_places|pluralize}}{{participant.email}} -
- {% if participant.paid %}Oui{% else %}Non{%endif%} -
-
-
- {% if participant.given == participant.nb_places %}Oui - {% elif participant.given == 0 %}Non - {% else %}{{participant.given}}/{{participant.nb_places}} - {%endif%} -
-
{{participant.name}}{{participant.nb_places}} place{{participant.nb_places|pluralize}}{{participant.email}} + {% if participant.paid %}Oui{% else %}Non{%endif%} + + {% if participant.given == participant.nb_places %}Oui + {% elif participant.given == 0 %}Non + {% else %}{{participant.given}}/{{participant.nb_places}} + {%endif%} +
+

Ajouter une attribution


- +
- + - + + + + {% endblock %} diff --git a/bda/templates/bda-revente.html b/bda/templates/bda-revente.html index c901a7d1..10a93d43 100644 --- a/bda/templates/bda-revente.html +++ b/bda/templates/bda-revente.html @@ -7,8 +7,8 @@ {% block realcontent %} -

Revente de place

-
+

Revente de place

+ {% csrf_token %} {% if form.spectacle.errors %}{% endif %}

@@ -21,6 +21,6 @@ Contactez-moi par email si vous êtes intéressé !
{{ user.get_full_name }} ({{ user.email }})

- +
{% endblock %} diff --git a/bda/templates/etat-places.html b/bda/templates/etat-places.html index e726cde6..ebd15c38 100644 --- a/bda/templates/etat-places.html +++ b/bda/templates/etat-places.html @@ -1,8 +1,9 @@ {% extends "base_title.html" %} +{% load staticfiles %} {% block realcontent %}

État des inscriptions BdA

- +
@@ -21,8 +22,8 @@ - {% endfor %}
Titre{{ spectacle.location }} {{ spectacle.slots }} places {{ spectacle.total }} demandes -
{{ spectacle.ratio |floatformat }} -
- Total : {{ total }} demandes - - + Total : {{ total }} demandes + + + {% endblock %} {% block realcontent %} @@ -49,9 +51,9 @@ var django = { }); }; $(document).ready(function($) { - deleteButtonHandler($("table#bda_formset tbody.bda_formset_content").find("a.delete-handler")); + deleteButtonHandler($("table#bda_formset tbody.bda_formset_content").find("a.remove-btn")); $("table#bda_formset tbody.bda_formset_content").sortable({ - handle: "a.drag-handler", + handle: "a.drag-btn", items: "tr", axis: "y", appendTo: 'body', @@ -91,28 +93,31 @@ var django = { })(django.jQuery); -

Inscription au tirage au sort du BdA

- {% if success %} -

Votre inscription a été mise à jour avec succès !

- {% endif %} - {% if stateerror %} -

Impossible d'enregistrer vos modifications: vous avez apporté d'autres modifications entre temps

- {% endif %} -
+

Inscription au tirage au sort du BdA

+ {% if success %} +

Votre inscription a été mise à jour avec succès !

+ {% endif %} + {% if stateerror %} +

Impossible d'enregistrer vos modifications: vous avez apporté d'autres modifications entre temps

+ {% endif %} + {% csrf_token %} {% include "inscription-formset.html" %} - - - - - Prix total actuel : {{ total_price }}€ -
-

- 1: cette liste de vœu est ordonnée (du plus important au moins important), pour ajuster la priorité vous pouvez déplacer chaque vœu
-

-
+
+ Prix total actuel : {{ total_price }}€ +
+ + + + +
+

+ 1: cette liste de vœu est ordonnée (du plus important au moins important), pour ajuster la priorité vous pouvez déplacer chaque vœu.
+

+
+ {% endblock %} diff --git a/bda/templates/inscription-formset.html b/bda/templates/inscription-formset.html index cb249835..65ef389b 100644 --- a/bda/templates/inscription-formset.html +++ b/bda/templates/inscription-formset.html @@ -1,5 +1,6 @@ +{% load bootstrap %} {{ formset.non_form_errors.as_ul }} - +
{{ formset.management_form }} {% for form in formset.forms %} {% if forloop.first %} @@ -22,15 +23,15 @@ {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} {% endif %} {{ field.errors.as_ul }} - {{ field }} + {{ field | bootstrap }} {% endif %} {% endfor %} diff --git a/bda/templates/resume_places.html b/bda/templates/resume_places.html index 4cc087e0..9ca5c78f 100644 --- a/bda/templates/resume_places.html +++ b/bda/templates/resume_places.html @@ -1,20 +1,26 @@ {% extends "base_title.html" %} {% block realcontent %} -

Places attribuées

+

Places attribuées

{% if warning %}

Attention, vous avez reçu plusieurs places pour des spectacles différents à la même date !

{% endif %} {% if places %} -
    +
- + - +
{% for place in places %} -
  • {{ place.spectacle }}{% if place.double %} (deux places){% endif %}
  • + + + + + + {% endfor %} - -

    Total à payer : {{ total|floatformat }}€

    -

    Ne manque pas un spectacle avec le +

    {{place.spectacle.title}}{{place.spectacle.location}}{{place.spectacle.date_no_seconds}}{% if place.double %}deux places{%else%}une place{% endif %}
    +

    Total à payer : {{ total|floatformat }}€

    +
    +

    Ne manque pas un spectacle avec le calendrier - automatique ! + automatique !

    {% else %}

    Vous n'avez aucune place :(

    {% endif %} diff --git a/bda/templates/spectacle_list.html b/bda/templates/spectacle_list.html index 33a69142..0c3c7317 100644 --- a/bda/templates/spectacle_list.html +++ b/bda/templates/spectacle_list.html @@ -1,13 +1,50 @@ {% extends "base_title.html" %} +{% load staticfiles %} {% block realcontent %}

    {{tirage_name}}

    Liste des spectacles

    - + + + + + + + + + + + + + {% for spectacle in object_list %} + + + + + + + {% endfor %} + +
    TitreDateLieuPrix
    {{ spectacle.title }} {{ spectacle.date_no_seconds }}{{ spectacle.location }} + {{ spectacle.price |floatformat }}€ +
    + + + + +

    Exports

    {% endif %} -

    diff --git a/gestioncof/templates/details_demande_petit_cours.html b/gestioncof/templates/details_demande_petit_cours.html index e7c59522..b51c0dc0 100644 --- a/gestioncof/templates/details_demande_petit_cours.html +++ b/gestioncof/templates/details_demande_petit_cours.html @@ -1,35 +1,38 @@ {% extends "base_title_petitscours.html" %} {% load staticfiles %} +{% block page_size %}col-sm-8{% endblock %} + {% block realcontent %} -

    Demande de petits cours

    +

    Demande de petits cours

    {% include "details_demande_petit_cours_infos.html" %}
    -
    {% endfor %} +

    Réponses individuelles

    +

    Mailing list

    +
    + +
    +
    + Remarques: +
    + +

    + 1: spécifiez les matières pour lesquelles vous êtes compétent
    + 2: spécifiez pour chaque matière le ou les niveaux pour lesquels vous souhaitez recevoir des demandes
    + 3: spécifiez si vous êtes titulaire de l'agrégation pour cette matière
    + 4: pour supprimer une ligne, cliquez sur la croix puis appuyer sur Enregistrer
    +

    - -
    -

    - 1: spécifiez les matières pour lesquelles vous êtes compétent
    - 2: spécifiez pour chaque matière le ou les niveaux pour lesquels vous souhaitez recevoir des demandes
    - 3: spécifiez si vous êtes titulaire de l'agrégation pour cette matière
    - 4: pour supprimer une ligne, cliquez sur la croix puis appuyer sur Enregistrer
    -

    - + {% endblock %} diff --git a/gestioncof/templates/login.html b/gestioncof/templates/login.html index 7e6a6e66..1cd1d25d 100644 --- a/gestioncof/templates/login.html +++ b/gestioncof/templates/login.html @@ -1,32 +1,36 @@ {% extends "base.html" %} +{% load bootstrap %} {% block content %} -
    -