From ac9489cf4faa063c9270a3900a52809306355ea2 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 18 Nov 2017 15:56:44 +0100 Subject: Adaptation de la template pour pouvoir afficher la liste des emplois du temps des salles --- templates/group_list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/group_list.html b/templates/group_list.html index f21b2b1..88cc7a4 100644 --- a/templates/group_list.html +++ b/templates/group_list.html @@ -1,13 +1,13 @@ {% extends "index.html" %} {% load dt_week %} -{% block title %}{{ timetable }} – {% endblock %} +{% block title %}{% if timetable %}{{ timetable }}{% else %}Emploi du temps des salles{% endif %} – {% endblock %} {% block body %} -

{{ timetable }}

+

{% if timetable %}{{ timetable }}{% else %}Emploi du temps des salles{% endif %}

{% endblock %} -- cgit v1.2.1 From 599ca85167ad7d53f6434b105cb74c761d994ecf Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 18 Nov 2017 16:04:18 +0100 Subject: Liens et URLs pour les emplois du temps des salles --- templates/group_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/group_list.html b/templates/group_list.html index 88cc7a4..7fe1fe8 100644 --- a/templates/group_list.html +++ b/templates/group_list.html @@ -7,7 +7,7 @@

{% if timetable %}{{ timetable }}{% else %}Emploi du temps des salles{% endif %}

{% endblock %} -- cgit v1.2.1 From bb049a8d5954bbcf3ae5207a0ab4445591555d6e Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 18 Nov 2017 18:21:52 +0100 Subject: Tentative de mise en commun de la template des edts --- templates/timetable.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/timetable.html b/templates/timetable.html index fc2065f..4c921fd 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -1,21 +1,21 @@ {% extends "index.html" %} -{% block head %} +{% block head %}{% if group_mode %} -{% endblock %} +{% endif %}{% endblock %} -{% block title %}{{ group.timetable }} – {{ group }} – Semaine {{ week }} – {% endblock %} +{% block title %}{% if group_mode %}{{ group.timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }} – {% endblock %} {% block body %} -

{{ group.timetable }} – {{ group }} – Semaine {{ week }}

+

{% if group_mode %}{{ group.timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }}

{% if is_old_timetable %} - Accéder à l’emploi du temps de cette semaine.
+ Accéder à l’emploi du temps de cette semaine.
{% endif %} {% if last_update %}Dernière mise à jour le {{ last_update|date:"l j F o" }} à {{ last_update|date:"H:i" }}{% endif %}

{% include "timetable_common.html" %} -

ICSRSSAtom

{% endblock %} + {% if group_mode %}

ICSRSSAtom

{% endif %}{% endblock %} -- cgit v1.2.1 From 679010e9cb526709963ebcf49450c1c7c1ef105e Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 19 Nov 2017 00:05:24 +0100 Subject: Liste des groupes à la place de la liste des salles dans l’edt des salles --- templates/timetable_common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/timetable_common.html b/templates/timetable_common.html index 62b1d71..d9e4ec7 100644 --- a/templates/timetable_common.html +++ b/templates/timetable_common.html @@ -5,7 +5,7 @@ -- cgit v1.2.1 From e1c4eea3c706bb45cd73416e2e8626bd50a97cfb Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Mon, 27 Nov 2017 16:04:27 +0100 Subject: Correction des interfaces utilisateur --- templates/calendars.html | 4 ++-- templates/timetable.html | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/calendars.html b/templates/calendars.html index d97ea78..52c3a11 100644 --- a/templates/calendars.html +++ b/templates/calendars.html @@ -5,9 +5,9 @@ {% block body %}

ICS disponibles pour le groupe {{ group }}

{% endblock %} diff --git a/templates/timetable.html b/templates/timetable.html index 4c921fd..8fafeed 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -2,20 +2,20 @@ {% block head %}{% if group_mode %} - - - + + + {% endif %}{% endblock %} -{% block title %}{% if group_mode %}{{ group.timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }} – {% endblock %} +{% block title %}{% if group_mode %}{{ timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }} – {% endblock %} {% block body %} -

{% if group_mode %}{{ group.timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }}

+

{% if group_mode %}{{ timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }}

{% if is_old_timetable %} - Accéder à l’emploi du temps de cette semaine.
+ Accéder à l’emploi du temps de cette semaine.
{% endif %} {% if last_update %}Dernière mise à jour le {{ last_update|date:"l j F o" }} à {{ last_update|date:"H:i" }}{% endif %}

{% include "timetable_common.html" %} - {% if group_mode %}

ICSRSSAtom

{% endif %}{% endblock %} + {% if group_mode %}

ICSRSSAtom

{% endif %}{% endblock %} -- cgit v1.2.1 From 81cb9b8c6a96fa8529c6d7f6ca55dfd56a1f2e5d Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 11 Jan 2018 14:09:33 +0100 Subject: On remplace les
dans le champ remarque par des retours à la ligne lors du parsage, puis on les remplace à nouveau par des
lors du rendu des templates. --- templates/timetable_common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/timetable_common.html b/templates/timetable_common.html index d9e4ec7..21300f1 100644 --- a/templates/timetable_common.html +++ b/templates/timetable_common.html @@ -6,7 +6,7 @@
  • {{ course }}{% if course.type %} ({{ course.type }}){% endif %}, de {{ course.begin|date:"H:i" }} à {{ course.end|date:"H:i" }}{% if course.rooms.all|length > 0 %}
    {% if group_mode %}{{ course.rooms.all|format_rooms }}{% else %}{{ course.groups.all|join:", " }}{% endif %}{% endif %}{% if course.notes %}
    - Remarques : {{ course.notes }}{% endif %} + Remarques : {{ course.notes|linebreaksbr }}{% endif %}
  • {% endfor %} {% empty %} -- cgit v1.2.1 From a2fcd4c7c42b6c02ff8ff7dac4aa23b3d17407de Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 17 Jan 2018 12:34:11 +0100 Subject: Base du formulaire de QSJPS --- templates/form_qsjps.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 templates/form_qsjps.html (limited to 'templates') diff --git a/templates/form_qsjps.html b/templates/form_qsjps.html new file mode 100644 index 0000000..2d97a89 --- /dev/null +++ b/templates/form_qsjps.html @@ -0,0 +1,10 @@ +{% extends "index.html" %} + +{% block title %}QSJPS – {% endblock %} + +{% block body %} +
    + {{ form }} + +
    +{% endblock %} -- cgit v1.2.1 From dd1758f543d45376ea64d6846152fbf229b936f9 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 17 Jan 2018 19:13:33 +0100 Subject: Meilleur formatage du formulaire avec des tableaux --- templates/form_qsjps.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/form_qsjps.html b/templates/form_qsjps.html index 2d97a89..3a9bcf8 100644 --- a/templates/form_qsjps.html +++ b/templates/form_qsjps.html @@ -3,8 +3,16 @@ {% block title %}QSJPS – {% endblock %} {% block body %} +

    Trouver une salle

    - {{ form }} - + + {% for field in form.visible_fields %} + + + + + {% endfor %} + +
    {{ field.label_tag }}{{ field }}{% if field.errors %}
    {{ field.errors|join:" " }}{% endif %}
    {% endblock %} -- cgit v1.2.1 From b1e5d205e37a2c0a5d4f42afe0bdce9e0fbf97dd Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 18 Jan 2018 12:06:45 +0100 Subject: Modification de la gestion du formulaire qsjps Renommage de la template contenant le formulaire --- templates/form_qsjps.html | 18 ------------------ templates/qsjps_form.html | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 templates/form_qsjps.html create mode 100644 templates/qsjps_form.html (limited to 'templates') diff --git a/templates/form_qsjps.html b/templates/form_qsjps.html deleted file mode 100644 index 3a9bcf8..0000000 --- a/templates/form_qsjps.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "index.html" %} - -{% block title %}QSJPS – {% endblock %} - -{% block body %} -

    Trouver une salle

    -
    - - {% for field in form.visible_fields %} - - - - - {% endfor %} - -
    {{ field.label_tag }}{{ field }}{% if field.errors %}
    {{ field.errors|join:" " }}{% endif %}
    -
    -{% endblock %} diff --git a/templates/qsjps_form.html b/templates/qsjps_form.html new file mode 100644 index 0000000..bc5e363 --- /dev/null +++ b/templates/qsjps_form.html @@ -0,0 +1,18 @@ +{% extends "index.html" %} + +{% block title %}Trouver une salle – {% endblock %} + +{% block body %} +

    Trouver une salle

    +
    + + {% for field in form.visible_fields %} + + + + + {% endfor %} + +
    {{ field.label_tag }}{{ field }}{% if field.errors %}
    {{ field.errors|join:" " }}{% endif %}
    +
    +{% endblock %} -- cgit v1.2.1 From 175e1c1139a77a02f3c52d77a4d2b118c2b2e578 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 18 Jan 2018 12:17:08 +0100 Subject: Ajout d’une template pour lister les salles trouvées --- templates/qsjps.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/qsjps.html (limited to 'templates') diff --git a/templates/qsjps.html b/templates/qsjps.html new file mode 100644 index 0000000..73290de --- /dev/null +++ b/templates/qsjps.html @@ -0,0 +1,14 @@ +{% extends "index.html" %} + +{% block title %}Trouver une salle – {% endblock %} + +{% block body %} +

    Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}

    + +{% endblock %} -- cgit v1.2.1 From 7a4bdfda6df3ca46f4805c145a42793cacc0809f Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 19 Jan 2018 18:02:22 +0100 Subject: Meilleur rendu du formulaire sur appareils mobiles --- templates/qsjps.html | 10 +++++----- templates/qsjps_form.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/qsjps.html b/templates/qsjps.html index 73290de..bb07b60 100644 --- a/templates/qsjps.html +++ b/templates/qsjps.html @@ -5,10 +5,10 @@ {% block body %}

    Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}

    {% endblock %} diff --git a/templates/qsjps_form.html b/templates/qsjps_form.html index bc5e363..b68143f 100644 --- a/templates/qsjps_form.html +++ b/templates/qsjps_form.html @@ -9,7 +9,7 @@ {% for field in form.visible_fields %} {{ field.label_tag }} - {{ field }}{% if field.errors %}
    {{ field.errors|join:" " }}{% endif %} + {{ field }}{% if field.errors %}
    {{ field.errors|join:" " }}{% endif %} {% endfor %} -- cgit v1.2.1 From d7dfa0c001a9b84541e1545e45d0536a87d6880e Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 19 Jan 2018 19:20:21 +0100 Subject: Liens permettant de naviguer sur les pages des semaines suivantes et précédentes --- templates/timetable.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/timetable.html b/templates/timetable.html index 8fafeed..cc90ed5 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -1,4 +1,5 @@ {% extends "index.html" %} +{% load dt_week %} {% block head %}{% if group_mode %} @@ -18,4 +19,8 @@ {% if last_update %}Dernière mise à jour le {{ last_update|date:"l j F o" }} à {{ last_update|date:"H:i" }}{% endif %}

    {% include "timetable_common.html" %} - {% if group_mode %}

    ICSRSSAtom

    {% endif %}{% endblock %} +

    + {% if last_week is not None %}Semaine {{ last_week|dt_week }}{% if next_week is not None %} – {% endif %}{% endif %}{% if next_week is not None %}Semaine {{ next_week|dt_week }}{% endif %} + {% if group_mode %}{% if last_week is not None or next_week is not None %}
    {% endif %} + ICSRSSAtom{% endif %} +

    {% endblock %} -- cgit v1.2.1 From 2d5bb761ac83bfa4643006681587db2c5e11f60b Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 19 Jan 2018 20:27:21 +0100 Subject: Adaptation des liens vers les semaines suivantes et précédentes pour les emplois du temps des salles --- templates/timetable.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/timetable.html b/templates/timetable.html index cc90ed5..7811427 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -20,7 +20,7 @@

    {% include "timetable_common.html" %}

    - {% if last_week is not None %}Semaine {{ last_week|dt_week }}{% if next_week is not None %} – {% endif %}{% endif %}{% if next_week is not None %}Semaine {{ next_week|dt_week }}{% endif %} + {% if last_week is not None %}Semaine {{ last_week|dt_week }}{% if next_week is not None %} – {% endif %}{% endif %}{% if next_week is not None %}Semaine {{ next_week|dt_week }}{% endif %} {% if group_mode %}{% if last_week is not None or next_week is not None %}
    {% endif %} ICSRSSAtom{% endif %}

    {% endblock %} -- cgit v1.2.1 From 046e92137ace30cd645ba0f42421c283a60ba0cd Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 19 Jan 2018 21:31:35 +0100 Subject: N’affiche plus la liste des groupes dans l’emploi du temps des salles si un cours n’en a pas, au lieu de se baser sur le nombre de salles d’un cours pour faire ce choix. Suppression du préchargement des salles lorsqu’on demande les cours d’une salle. Cela permet de réduire le nombre de requêtes effectuées. --- templates/timetable_common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/timetable_common.html b/templates/timetable_common.html index 21300f1..6e59322 100644 --- a/templates/timetable_common.html +++ b/templates/timetable_common.html @@ -4,7 +4,7 @@

    {% filter title %}{{ day.0.begin|date:"l j F o" }}{% endfilter %} – de {{ day.0.begin|date:"H:i" }} à {% with day|last as last %}{{ last.end|date:"H:i" }}{% endwith %}

    + {% if timetable %}Retour à la liste des mentions{% else %}Retour à la liste des années{% endif %} {% endblock %} diff --git a/templates/index.html b/templates/index.html index 71665bc..5779b3e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,6 +21,7 @@

    Aucun emploi du temps à afficher

    {% endfor %} + {% if year %}Retour à la liste des années{% else %}Emploi du temps des salles{% endif %} {% endblock %}