From 75471bac38006db74adee8f609bd42b86f5c1767 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 2 Mar 2025 20:49:55 +0100 Subject: [PATCH] On reformatte le html --- .pre-commit-config.yaml | 5 + pyproject.toml | 7 + src/agenda_culturel/forms.py | 2 +- src/agenda_culturel/static/html/500.html | 53 ++- src/agenda_culturel/static/style.scss | 11 + .../agenda_culturel/administration.html | 182 ++++---- .../agenda_culturel/batch-imports-inc.html | 148 +++--- .../batchimportation_form.html | 27 +- .../cancel_import_confirm.html | 45 +- .../agenda_culturel/categorisation_rules.html | 142 +++--- .../categorisationrule_confirm_delete.html | 55 ++- .../categorisationrule_form.html | 42 +- .../categorise_events_form.html | 152 +++--- .../agenda_culturel/clear_cache.html | 40 +- .../agenda_culturel/delete_spams_confirm.html | 51 ++- .../agenda_culturel/duplicate-diff-inc.html | 149 +++--- .../agenda_culturel/duplicate-inc.html | 66 ++- .../agenda_culturel/duplicate-info-inc.html | 14 +- .../templates/agenda_culturel/duplicate.html | 68 +-- .../templates/agenda_culturel/duplicates.html | 103 +++-- .../agenda_culturel/edit-buttons-inc.html | 58 ++- .../agenda_culturel/ephemeris-inc.html | 53 ++- .../agenda_culturel/event-date-info-inc.html | 19 +- .../agenda_culturel/event-info-inc.html | 83 ++-- .../agenda_culturel/event-sources-inc.html | 47 +- .../event_confirm_change_status.html | 70 +-- .../agenda_culturel/event_confirm_delete.html | 16 +- .../templates/agenda_culturel/event_form.html | 271 ++++++----- .../agenda_culturel/event_form_moderate.html | 180 ++++---- .../agenda_culturel/event_import.html | 45 +- .../event_next_error_message.html | 35 +- .../templates/agenda_culturel/filter-inc.html | 119 +++-- .../agenda_culturel/fix_duplicate.html | 84 ++-- .../agenda_culturel/forms/div_group.html | 48 +- .../templates/agenda_culturel/import.html | 58 ++- .../templates/agenda_culturel/import_set.html | 79 ++-- .../templates/agenda_culturel/imports.html | 54 ++- .../agenda_culturel/merge_duplicate.html | 37 +- .../message_confirm_delete.html | 49 +- .../agenda_culturel/message_create_form.html | 85 ++-- .../message_moderation_form.html | 121 +++-- .../templates/agenda_culturel/messages.html | 152 +++--- .../templates/agenda_culturel/navigation.html | 26 +- .../organisation_confirm_delete.html | 45 +- .../agenda_culturel/organisation_detail.html | 128 +++--- .../agenda_culturel/organisation_form.html | 62 +-- .../agenda_culturel/organisation_list.html | 95 ++-- .../agenda_culturel/page-activity.html | 44 +- .../templates/agenda_culturel/page-admin.html | 5 +- .../templates/agenda_culturel/page-event.html | 291 +++++++----- .../templates/agenda_culturel/page-month.html | 332 ++++++++------ .../agenda_culturel/page-rimport.html | 130 +++--- .../agenda_culturel/page-rimports-list.html | 32 +- .../agenda_culturel/page-single.html | 31 +- .../agenda_culturel/page-upcoming.html | 397 +++++++++------- .../templates/agenda_culturel/page-week.html | 433 ++++++++++-------- .../templates/agenda_culturel/page.html | 313 +++++++------ .../templates/agenda_culturel/paginator.html | 15 +- .../agenda_culturel/paginator_filter.html | 32 +- .../agenda_culturel/place_confirm_delete.html | 54 ++- .../agenda_culturel/place_detail.html | 190 ++++---- .../templates/agenda_culturel/place_form.html | 110 +++-- .../templates/agenda_culturel/place_list.html | 93 ++-- .../agenda_culturel/place_list_admin.html | 122 ++--- .../agenda_culturel/place_unknown_form.html | 87 ++-- .../agenda_culturel/place_unknown_list.html | 78 ++-- .../agenda_culturel/recent-activity-inc.html | 103 +++-- .../templates/agenda_culturel/recent.html | 74 ++- .../recurrentimport_confirm_delete.html | 27 +- .../agenda_culturel/recurrentimport_form.html | 55 ++- .../agenda_culturel/rimports-info-inc.html | 39 +- .../templates/agenda_culturel/rimports.html | 169 +++---- .../run_all_fb_rimports_confirm.html | 50 +- .../run_all_rimports_confirm.html | 50 +- .../run_canceled_rimports_confirm.html | 50 +- .../run_failed_rimports_confirm.html | 38 +- .../run_orphan_imports_confirm.html | 40 +- .../agenda_culturel/run_rimport_confirm.html | 52 +-- .../templates/agenda_culturel/search.html | 116 +++-- .../agenda_culturel/set_duplicate.html | 48 +- .../templates/agenda_culturel/side-nav.html | 196 +++++--- .../single-event/event-elegant-inc.html | 208 +++++---- .../single-event/event-in-flat-list-inc.html | 165 ++++--- .../event-in-unknown-place-list-inc.html | 134 +++--- .../single-event/event-single-inc.html | 348 ++++++++------ .../agenda_culturel/static_content.html | 23 +- .../agenda_culturel/staticcontent_form.html | 21 +- .../templates/agenda_culturel/statistics.html | 60 ++- .../templates/agenda_culturel/tag.html | 151 +++--- .../agenda_culturel/tag_confirm_delete.html | 27 +- .../tag_confirm_delete_by_name.html | 87 ++-- .../templates/agenda_culturel/tag_form.html | 46 +- .../agenda_culturel/tag_rename_form.html | 47 +- .../templates/agenda_culturel/tags.html | 97 ++-- .../templates/agenda_culturel/thank_you.html | 36 +- .../agenda_culturel/update_duplicate.html | 39 +- .../agenda_culturel/widgets/widget-tags.html | 35 +- .../agenda_culturel/widgets/widget-urls.html | 35 +- .../templates/location_field/map_widget.html | 2 +- .../templates/page-erreur.html | 46 +- .../templates/registration/login.html | 83 ++-- .../registration/password_reset_complete.html | 26 +- .../registration/password_reset_confirm.html | 96 ++-- .../registration/password_reset_done.html | 28 +- .../registration/password_reset_form.html | 40 +- 105 files changed, 5067 insertions(+), 4190 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8c3275..79c5ddb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,8 @@ repos: - id: ruff types_or: [ python, pyi ] args: [ --fix ] + - repo: https://github.com/Riverside-Healthcare/djLint + rev: v1.32.0 + hooks: + - id: djlint-reformat-django + - id: djlint-django diff --git a/pyproject.toml b/pyproject.toml index e2c760b..1962dee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,3 +95,10 @@ max-complexity = 10 [tool.ruff.lint.isort] force-to-top = ["src"] known-first-party = ["src"] + +[tool.djlint] +profile = "django" +ignore = "H031,T003,H006" +extension = "html" +files = ["src/agenda_culturel/templates/agenda_culturel/*.html"] +indent = 2 diff --git a/src/agenda_culturel/forms.py b/src/agenda_culturel/forms.py index bc8eecb..9a739a6 100644 --- a/src/agenda_culturel/forms.py +++ b/src/agenda_culturel/forms.py @@ -891,7 +891,7 @@ class PlaceForm(GroupFormMixin, ModelForm): '
' + super().as_p() + """
-
+

Cliquez pour ajuster la position GPS

Verrouiller la position - - - + + + + {% endblock %} - {% block content %} - -

Règle de catéorisation

- -
-
{% csrf_token %} - {{ form.as_p }} -
- Annuler - -
+

Règle de catéorisation

+
+ + {% csrf_token %} + {{ form.as_p }} +
+ Annuler + +
-
- +
{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/categorise_events_form.html b/src/agenda_culturel/templates/agenda_culturel/categorise_events_form.html index 7e9a1b3..6cf11db 100644 --- a/src/agenda_culturel/templates/agenda_culturel/categorise_events_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/categorise_events_form.html @@ -4,82 +4,90 @@ {% load cat_extra %} {% load event_extra %} {% load tag_extra %} - - -{% block title %}{% block og_title %}Appliquer les catégorisations{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Appliquer les catégorisations{% endblock %} +{% endblock %} {% block entete_header %} - - - - -{% css_categories %} + + + + + {% css_categories %} {% endblock %} - {% block content %} - -

Appliquer les catégorisations

-

Les règles de catégorisation proposent de modifier comme suit les événements suivants. Sélectionnez les modifications qui vous conviennent.

- -
{% csrf_token %} -{% for field in form %} - {% if not field.is_hidden %} -
- {{ field.errors }} - - {% with eid=field.auto_id|remove_id_prefix %} +

Appliquer les catégorisations

+

+ Les règles de catégorisation proposent de modifier comme suit les événements suivants. Sélectionnez les modifications qui vous conviennent. +

+ + {% csrf_token %} + {% for field in form %} + {% if not field.is_hidden %} +
+ {{ field.errors }} + {% with eid=field.auto_id|remove_id_prefix %} {% with event=events|get_item:eid %} - {% with altcat=categories|get_item:eid %} - -
- {{ field }} Changer {{ event.category|small_cat }} en {{ altcat|small_cat }} pour l'événement - -

{{ event|picto_status }} {{ event.title }}

- -

- {% picto_from_name "map-pin" %} - {{ event.location }} -

-

- {% picto_from_name "calendar" %} - {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %} - {{ event.start_day|date|frdate }} - {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %} - {{ event.start_time }} - {% endif %} - {% if event.end_day and event.end_day != event.start_day %} - au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} - {% endif %} - {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %}

-
- -
{{ event.description |linebreaks }}
- - -

- {% for tag in event.sorted_tags %} - {{ tag | tag_button }} - {% endfor %} -

- - {% endwith %} + {% with altcat=categories|get_item:eid %} +
+ {{ field }} Changer {{ event.category|small_cat }} en {{ altcat|small_cat }} pour l'événement + +

{{ event|picto_status }} {{ event.title }}

+

+ {% picto_from_name "map-pin" %} + {{ event.location }} +

+

+ {% picto_from_name "calendar" %} + {% if event.end_day and event.end_day != event.start_day %} + du + {% else %} + le + {% endif %} + {{ event.start_day|date|frdate }} + {% if event.start_time %} + {% if not event.end_day or event.end_day == event.start_day %} + {% if event.end_time %} + de + {% else %} + à + {% endif %} + {% endif %} + {{ event.start_time }} + {% endif %} + {% if event.end_day and event.end_day != event.start_day %} + au + {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} + {% endif %} + {% if event.end_time %} + {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} + {{ event.end_time }} + {% endif %} +

+
+
{{ event.description |linebreaks }}
+

+ {% for tag in event.sorted_tags %}{{ tag | tag_button }}{% endfor %} +

+ {% endwith %} {% endwith %} - {% endwith %} - -
- {% else %} + {% endwith %} +
+ {% else %} {{ field }} - {% endif %} -{% endfor %} -
- Annuler - -
-
- - + {% endif %} + {% endfor %} +
+ Annuler + +
+ {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/clear_cache.html b/src/agenda_culturel/templates/agenda_culturel/clear_cache.html index cef4256..62d05bc 100644 --- a/src/agenda_culturel/templates/agenda_culturel/clear_cache.html +++ b/src/agenda_culturel/templates/agenda_culturel/clear_cache.html @@ -1,27 +1,27 @@ {% extends "agenda_culturel/page-admin.html" %} - - {% block fluid %}{% endblock %} - {% block content %} - -
+
-

{% block title %}{% block og_title %}Vider le cache{% endblock %}{% endblock %}

+

+ {% block title %} + {% block og_title %}Vider le cache{% endblock %} + {% endblock %} +

-
{% csrf_token %} -

Êtes-vous sûr·e de vouloir vider le cache ? Toutes les pages seront - générées lors de leur consultation, mais cela peut ralentir temporairemenet l'expérience de navigation. -

- {{ form }} - - + + {% csrf_token %} +

+ Êtes-vous sûr·e de vouloir vider le cache ? Toutes les pages seront + générées lors de leur consultation, mais cela peut ralentir temporairemenet l'expérience de navigation. +

+ {{ form }} +
-
- +
{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/delete_spams_confirm.html b/src/agenda_culturel/templates/agenda_culturel/delete_spams_confirm.html index a371abb..a8736a3 100644 --- a/src/agenda_culturel/templates/agenda_culturel/delete_spams_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/delete_spams_confirm.html @@ -1,32 +1,33 @@ {% extends "agenda_culturel/page-admin.html" %} - - {% block fluid %}{% endblock %} - {% block content %} - -
+
-

{% block title %}{% block og_title %}Suppressions des spams{% endblock %}{% endblock %}

+

+ {% block title %} + {% block og_title %}Suppressions des spams{% endblock %} + {% endblock %} +

-
{% csrf_token %} -

Êtes-vous sûr·e de vouloir supprimer - {% if nb_spams > 1 %} - les {{ nb_spams }} messages - {% else %} - le message - {% endif %} de contact annoté{{ nb_spams|pluralize }} comme spam ? - Cette suppression sera définitive. -

- {{ form }} - - + + {% csrf_token %} +

+ Êtes-vous sûr·e de vouloir supprimer + {% if nb_spams > 1 %} + les {{ nb_spams }} messages + {% else %} + le message + {% endif %} + de contact annoté{{ nb_spams|pluralize }} comme spam ? + Cette suppression sera définitive. +

+ {{ form }} +
-
- +
{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/duplicate-diff-inc.html b/src/agenda_culturel/templates/agenda_culturel/duplicate-diff-inc.html index f90c26a..57350c3 100644 --- a/src/agenda_culturel/templates/agenda_culturel/duplicate-diff-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/duplicate-diff-inc.html @@ -1,64 +1,101 @@ {% load utils_extra %} {% load event_extra %} -
-{% for e in object.get_duplicated %} + {% for e in object.get_duplicated %}
-
- {{ forloop.counter0|int_to_abc }} -
- -
    -
  • {{ e|picto_status }} {{ e.title }}
  • - {% for step in e.chronology_dates %} - - {% if step.data == "created_date" %}
  • Création le {{ step.timestamp }} par {{ step.user }}
  • {% endif %} - {% if step.data == "modified_date" %}
  • Dernière modification le {{ step.timestamp }}{% if e.modified_by_user %} par {{ e.modified_by_user.username }}{% else %} par import récurrent{% endif %}
  • {% endif %} - {% if step.data == "moderated_date" %}
  • Dernière modération le {{ step.timestamp }}{% if e.moderated_by_user %} par {{ e.moderated_by_user.username }}{% endif %}
  • {% endif %} - {% if step.data == "imported_date" %}
  • Dernière importation le {{ step.timestamp }}{% if e.imported_by_user %} par {{ e.imported_by_user.username }}{% else %} par import récurrent{% endif %}
  • {% endif %} - {% endfor %} -
  • État : - {% if e.pure_import %}version fidèle à la source importée{% endif %} - {% if e.local_version %}version modifiée localement{% endif %} +
    {{ forloop.counter0|int_to_abc }}
    +
      +
    • + {{ e|picto_status }} {{ e.title }} +
    • + {% for step in e.chronology_dates %} + {% if step.data == "created_date" %} +
    • + Création le {{ step.timestamp }} par {{ step.user }}
    • -
    - {% with e.get_import_messages as messages %} - {% if messages|length > 0 %} -
    -

    Journaux des modifications d'import

    -
      - {% for m in messages %} -
    • - {{ m.date }}, {% if m.message_type %}{{ m.get_message_type_display }}{% endif %} : {{ m.subject }} : {{ m.message }} -
    • - {% endfor %} -
    -
    - {% endif %} - {% endwith %} -
-{% endfor %} -
- -{% for e in object.get_items_comparison %} -

{% event_field_verbose_name e.key %}

- {% if e.similar %} -
- {% if e.key == "image" %}{% if object.get_duplicated.0.local_image %}{% endif %}{% endif %} -

Identique : {% field_to_html e.values e.key %}

-
- {% else %} -
- {% for i in e.values %} -
- {% if e.key == "image" %} - {% with object.get_duplicated|index:forloop.counter0 as event %} - {% if event.local_image %}
{% endif %} - {% endwith %} - {% endif %} -
{{ forloop.counter0|int_to_abc }}
{% field_to_html i e.key %} -
+ {% endif %} + {% if step.data == "modified_date" %} +
  • + Dernière modification le {{ step.timestamp }} + {% if e.modified_by_user %} + par {{ e.modified_by_user.username }} + {% else %} + par import récurrent + {% endif %} +
  • + {% endif %} + {% if step.data == "moderated_date" %} +
  • + Dernière modération le {{ step.timestamp }} + {% if e.moderated_by_user %}par {{ e.moderated_by_user.username }}{% endif %} +
  • + {% endif %} + {% if step.data == "imported_date" %} +
  • + Dernière importation le {{ step.timestamp }} + {% if e.imported_by_user %} + par {{ e.imported_by_user.username }} + {% else %} + par import récurrent + {% endif %} +
  • + {% endif %} {% endfor %} +
  • + État : + {% if e.pure_import %}version fidèle à la source importée{% endif %} + {% if e.local_version %}version modifiée localement{% endif %} +
  • + + {% with e.get_import_messages as messages %} + {% if messages|length > 0 %} +
    +

    Journaux des modifications d'import

    +
      + {% for m in messages %} +
    • + {{ m.date }}, + {% if m.message_type %}{{ m.get_message_type_display }}{% endif %} +  : {{ m.subject }} : {{ m.message }} +
    • + {% endfor %} +
    +
    + {% endif %} + {% endwith %}
    - {% endif %} + {% endfor %} +
    +{% for e in object.get_items_comparison %} +

    {% event_field_verbose_name e.key %}

    + {% if e.similar %} +
    + {% if e.key == "image" %} + {% if object.get_duplicated.0.local_image %} + {{ object.get_duplicated.0.image_alt }} + {% endif %} + {% endif %} +

    Identique : {% field_to_html e.values e.key %}

    +
    + {% else %} +
    + {% for i in e.values %} +
    + {% if e.key == "image" %} + {% with object.get_duplicated|index:forloop.counter0 as event %} + {% if event.local_image %} +
    + {{ object.get_duplicated.0.image_alt }} />
+                </div>
+              {% endif %}
+            {% endwith %}
+          {% endif %}
+          <div class={{ forloop.counter0|int_to_abc }}
    + {% field_to_html i e.key %} +
    + {% endfor %} +
    + {% endif %} {% endfor %} diff --git a/src/agenda_culturel/templates/agenda_culturel/duplicate-inc.html b/src/agenda_culturel/templates/agenda_culturel/duplicate-inc.html index 20b50c6..e397b6c 100644 --- a/src/agenda_culturel/templates/agenda_culturel/duplicate-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/duplicate-inc.html @@ -1,39 +1,61 @@ {% load cat_extra %} {% load utils_extra %} {% load event_extra %} - -
    -

    - {% if duplicate.representative %}Duplication{% else %}Possible duplication{% endif %} -  : {{ events|length }} événements le {{ events.0.start_day }}

    +
    +

    + + {% if duplicate.representative %} + Duplication + {% else %} + Possible duplication + {% endif %} +  : {{ events|length }} événements le {{ events.0.start_day }} +

    Versions

      - {% for e in events %} -
    • {{ e.start_day }}{% if e.start_time %} à {{ e.start_time }}{% endif %} : {{ e|picto_status }} {{ e.title }}{% if e.modified_date %} dernière modification le {{ e.modified_date }}{% else %}créé le {{ e.created_date }}{% endif %}
    • - {% endfor %} + {% for e in events %} +
    • + {{ e.start_day }} + {% if e.start_time %}à {{ e.start_time }}{% endif %} +  : {{ e|picto_status }} {{ e.title }} + {% if e.modified_date %} + dernière modification le {{ e.modified_date }} + {% else %} + créé le {{ e.created_date }} + {% endif %} +
    • + {% endfor %}
    {% with duplicate.get_import_messages as messages %} - {% if messages|length > 0 %} -

    Messages d'import et de mise à jour

    -
      - {% for m in messages %} + {% if messages|length > 0 %} +

      Messages d'import et de mise à jour

      + - {% endif %} + {% endfor %} +
    + {% endif %} {% endwith %} {% if perms.agenda_culturel.change_duplicatedevents %} - {% endif %} -
    + diff --git a/src/agenda_culturel/templates/agenda_culturel/duplicate-info-inc.html b/src/agenda_culturel/templates/agenda_culturel/duplicate-info-inc.html index fbaf216..d168018 100644 --- a/src/agenda_culturel/templates/agenda_culturel/duplicate-info-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/duplicate-info-inc.html @@ -1,11 +1,13 @@
    -

    Informations techniques

    - {% for e in object.get_duplicated %} +
    +

    Informations techniques

    +
    + {% for e in object.get_duplicated %}
    -
    +

    {{ e }}

    -
    - {% include "agenda_culturel/event-info-inc.html" with object=e %} +
    + {% include "agenda_culturel/event-info-inc.html" with object=e %}
    - {% endfor %} + {% endfor %}
    diff --git a/src/agenda_culturel/templates/agenda_culturel/duplicate.html b/src/agenda_culturel/templates/agenda_culturel/duplicate.html index 88f7df7..96aab5b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/duplicate.html +++ b/src/agenda_culturel/templates/agenda_culturel/duplicate.html @@ -1,40 +1,52 @@ {% extends "agenda_culturel/page-admin.html" %} - {% load utils_extra %} {% load event_extra %} - - {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block content %} -
    +
    - < Tous les dupliqués - -

    {% block title %}{% block og_title %}Événements {% if not object.representative %}possiblement{% endif %} dupliqués{% endblock %}{% endblock %}

    - {% if object.representative %} -

    Les événements ci-dessous sont des duplicats du même événement, probablement issus de différentes - sources. La version qui sera affichée aux internautes en priorité est la version - {% for e in object.get_duplicated %}{% if not e.masked %}{{ forloop.counter0|int_to_abc }}{% endif %}{% endfor %}. -

    - {% else %} -

    Les événements ci-dessous ont été détectés ou signalés comme possiblement dupliqué. - Les éléments qui diffèrent ont été dupliqués et mis en évidence.

    - {% endif %} - -
    -
    - + < Tous les dupliqués +

    + {% block title %} + {% block og_title %} + Événements + {% if not object.representative %}possiblement{% endif %} + dupliqués + {% endblock %} + {% endblock %} +

    + {% if object.representative %} +

    + Les événements ci-dessous sont des duplicats du même événement, probablement issus de différentes + sources. La version qui sera affichée aux internautes en priorité est la version + {% for e in object.get_duplicated %} + {% if not e.masked %}{{ forloop.counter0|int_to_abc }}{% endif %} + {% endfor %} + . +

    + {% else %} +

    + Les événements ci-dessous ont été détectés ou signalés comme possiblement dupliqué. + Les éléments qui diffèrent ont été dupliqués et mis en évidence. +

    + {% endif %} +
    {% include "agenda_culturel/duplicate-diff-inc.html" with object=object %} -
    - -{% include "agenda_culturel/duplicate-info-inc.html" with object=object %} - +
    + {% include "agenda_culturel/duplicate-info-inc.html" with object=object %} {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/duplicates.html b/src/agenda_culturel/templates/agenda_culturel/duplicates.html index e75e5a8..10de88b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/duplicates.html +++ b/src/agenda_culturel/templates/agenda_culturel/duplicates.html @@ -1,64 +1,69 @@ {% extends "agenda_culturel/page-admin.html" %} - {% load utils_extra %} {% load event_extra %} - -{% block title %}{% block og_title %}Événements dupliqués{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Événements dupliqués{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    -
    -
    +
    +
    +

    Événements dupliqués

    - {{ filter.form.as_div }}
    -
    + {{ filter.form.as_div }} +
    + +
    - -

    {{ paginator.count }} événement{{ paginator.count|pluralize }} dupliqués{% if filter.form.fixed.value == None %}.{% else %} - {% if filter.form.fixed.value %}sont résolus. - {% else %}doivent être résolus.{% endif %} - {% endif %}

    -
    - -
    -{% for obj in paginator_filter %} - {% with obj.get_duplicated as events %} - {% include "agenda_culturel/duplicate-inc.html" with duplicate=obj events=events %} - {% endwith %} -{% endfor %} -
    -
    - - {% if paginator_filter.has_previous %} - « premier - < précédent - {% endif %} - +

    + {{ paginator.count }} événement{{ paginator.count|pluralize }} dupliqués + {% if filter.form.fixed.value == None %} + . + {% else %} + {% if filter.form.fixed.value %} + sont résolus. + {% else %} + doivent être résolus. + {% endif %} + {% endif %} +

    +
    +
    + {% for obj in paginator_filter %} + {% with obj.get_duplicated as events %} + {% include "agenda_culturel/duplicate-inc.html" with duplicate=obj events=events %} + {% endwith %} + {% endfor %} +
    +
    - Page {{ paginator_filter.number }} sur {{ paginator_filter.paginator.num_pages }} + {% if paginator_filter.has_previous %} + « premier + < précédent + {% endif %} + Page {{ paginator_filter.number }} sur {{ paginator_filter.paginator.num_pages }} + {% if paginator_filter.has_next %} + suivant > + dernier » + {% endif %} - - {% if paginator_filter.has_next %} - suivant > - dernier » - {% endif %} - -
    -
    - - -{% include "agenda_culturel/side-nav.html" with current="duplicates" %} -
    - + + + {% include "agenda_culturel/side-nav.html" with current="duplicates" %} +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/edit-buttons-inc.html b/src/agenda_culturel/templates/agenda_culturel/edit-buttons-inc.html index 44d8176..353f3a4 100644 --- a/src/agenda_culturel/templates/agenda_culturel/edit-buttons-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/edit-buttons-inc.html @@ -1,44 +1,38 @@ - {% load utils_extra %} - {% if event.moderated_date %} -modérer de nouveau {% picto_from_name "check-square" %} + modérer de nouveau {% picto_from_name "check-square" %} {% else %} -modérer {% picto_from_name "check-square" %} + modérer {% picto_from_name "check-square" %} {% endif %} - {% if event.pure_import %} - {% with event.get_local_version as local %} - {% if local %} - Voir la version locale {% picto_from_name "eye" %} - {% else %} - modifier & modérer {% picto_from_name "edit-3" %} - {% endif %} - {% endwith %} -{% else %} -modifier & modérer {% picto_from_name "edit-3" %} -{% endif %} - -{% if event.is_updateable %} -réimporter {% picto_from_name "download-cloud" %} -{% endif %} - -{% if event.status == "draft" and details == 1 %} -publier {% picto_from_name "eye" %} -{% endif %} - -{% if event.status == "trash" %} - {% if details == 1 %} - restaurer {% picto_from_name "eye" %} + {% with event.get_local_version as local %} + {% if local %} + Voir la version locale {% picto_from_name "eye" %} + {% else %} + modifier & modérer {% picto_from_name "edit-3" %} {% endif %} + {% endwith %} {% else %} -supprimer {% picto_from_name "trash-2" %} + modifier & modérer {% picto_from_name "edit-3" %} +{% endif %} +{% if event.is_updateable %} + réimporter {% picto_from_name "download-cloud" %} +{% endif %} +{% if event.status == "draft" and details == 1 %} + publier {% picto_from_name "eye" %} {% endif %} - {% if event.status == "trash" %} -supprimer définitivement {% picto_from_name "x-circle" %} + {% if details == 1 %} + restaurer {% picto_from_name "eye" %} + {% endif %} +{% else %} + supprimer {% picto_from_name "trash-2" %} +{% endif %} +{% if event.status == "trash" %} + supprimer définitivement {% picto_from_name "x-circle" %} {% endif %} - {% if details == 1 %} -dupliquer {% picto_from_name "copy" %} + dupliquer {% picto_from_name "copy" %} {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/ephemeris-inc.html b/src/agenda_culturel/templates/agenda_culturel/ephemeris-inc.html index e92844e..48f7a08 100644 --- a/src/agenda_culturel/templates/agenda_culturel/ephemeris-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/ephemeris-inc.html @@ -1,26 +1,31 @@ {% load utils_extra %} - -
    - {% if event.is_single_day %} - {{ event.start_day |date:"l" }}
    - {{ event.start_day |date:"j" }}
    - {{ event.start_day |date:"F" }}{% if with_year %} {{ event.start_day |date:"Y" }}{% endif %}
    - {% if event.start_time %} -
    - {{ event.start_time }} -
    - {% endif %} - {% else %} - du - {{ event.start_day |date:"D" }}
    - {{ event.start_day |date:"j" }} - {% if event.start_day|date:"F" != event.end_day|date:"F" %} - {{ event.start_day |date:"F" }} - {% endif %}
    - au - {{ event.end_day |date:"D" }}
    - {{ event.end_day |date:"j" }} - {% if event.start_day|date:"F" == event.end_day|date:"F" %}
    {% endif %} - {{ event.end_day |date:"F" }}
    - {% endif %} +
    + {% if event.is_single_day %} + {{ event.start_day |date:"l" }} +
    + {{ event.start_day |date:"j" }} +
    + {{ event.start_day |date:"F" }} + {% if with_year %}{{ event.start_day |date:"Y" }}{% endif %} +
    +{% if event.start_time %} +
    + {{ event.start_time }} +
    +{% endif %} +{% else %} +du +{{ event.start_day |date:"D" }} +
    +{{ event.start_day |date:"j" }} +{% if event.start_day|date:"F" != event.end_day|date:"F" %}{{ event.start_day |date:"F" }}{% endif %} + +
    +au +{{ event.end_day |date:"D" }} +
    +{{ event.end_day |date:"j" }} +{% if event.start_day|date:"F" == event.end_day|date:"F" %}
    {% endif %} +{{ event.end_day |date:"F" }}
    +{% endif %}
    diff --git a/src/agenda_culturel/templates/agenda_culturel/event-date-info-inc.html b/src/agenda_culturel/templates/agenda_culturel/event-date-info-inc.html index fa8afdb..3e725a9 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event-date-info-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/event-date-info-inc.html @@ -1,16 +1,19 @@ {% if user.is_authenticated %} - + {% if event.pure_import %}— version importée{% endif %} +

    {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event-info-inc.html b/src/agenda_culturel/templates/agenda_culturel/event-info-inc.html index eefdd9f..afde3e6 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event-info-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/event-info-inc.html @@ -1,32 +1,55 @@
    - Informations complémentaires non éditables -
      - {% if not allbutdates %} - {% if object.created_date %}
    • Création : {{ object.created_date }}{% if object.created_by_user %} par {{ object.created_by_user.username }}{% endif %}
    • {% endif %} - {% if object.modified_date %}
    • Dernière modification : {{ object.modified_date }}{% if object.modified_by_user %} par {{ object.modified_by_user.username }}{% endif %}
    • {% endif %} - {% if object.moderated_date %}
    • Dernière modération : {{ object.moderated_date }}{% if object.moderated_by_user %} par {{ object.moderated_by_user.username }}{% endif %}
    • {% endif %} - {% if object.imported_date %}
    • Dernière importation : {{ object.imported_date }}{% if object.imported_by_user %} par {{ object.imported_by_user.username }}{% endif %}
    • {% endif %} - {% endif %} - {% if object.uuids %} - {% if object.uuids|length > 0 %} -
    • UUIDs (identifiants uniques d'événements dans les sources) : -
        - {% for u in object.uuids %} -
      • {{ u }}
      • - {% endfor %} -
    • - {% endif %} - {% endif %} - {% if object.import_sources %} - {% if object.import_sources|length > 0 %} -
    • Sources d'import : -
        - {% for u, t in object.get_import_sources %} -
      • {{ t }}
      • - {% endfor %} -
      -
    • - {% endif %} - {% endif %} -
    + Informations complémentaires non éditables +
      + {% if not allbutdates %} + {% if object.created_date %} +
    • + Création : {{ object.created_date }} + {% if object.created_by_user %}par {{ object.created_by_user.username }}{% endif %} +
    • + {% endif %} + {% if object.modified_date %} +
    • + Dernière modification : {{ object.modified_date }} + {% if object.modified_by_user %}par {{ object.modified_by_user.username }}{% endif %} +
    • + {% endif %} + {% if object.moderated_date %} +
    • + Dernière modération : {{ object.moderated_date }} + {% if object.moderated_by_user %}par {{ object.moderated_by_user.username }}{% endif %} +
    • + {% endif %} + {% if object.imported_date %} +
    • + Dernière importation : {{ object.imported_date }} + {% if object.imported_by_user %}par {{ object.imported_by_user.username }}{% endif %} +
    • + {% endif %} + {% endif %} + {% if object.uuids %} + {% if object.uuids|length > 0 %} +
    • + UUIDs (identifiants uniques d'événements dans les sources) : +
        + {% for u in object.uuids %}
      • {{ u }}
      • {% endfor %} +
      +
    • + {% endif %} + {% endif %} + {% if object.import_sources %} + {% if object.import_sources|length > 0 %} +
    • + Sources d'import : +
        + {% for u, t in object.get_import_sources %} +
      • + {{ t }} +
      • + {% endfor %} +
      +
    • + {% endif %} + {% endif %} +
    diff --git a/src/agenda_culturel/templates/agenda_culturel/event-sources-inc.html b/src/agenda_culturel/templates/agenda_culturel/event-sources-inc.html index 6595714..bb8e95f 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event-sources-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/event-sources-inc.html @@ -1,24 +1,41 @@ {% load utils_extra %} {% load static %} - {% with event.get_reference_urls as refs %} -{% with refs|length as nb_url %} -{% if nb_url > 0 %} - {% if nb_url == 1 %} + {% with refs|length as nb_url %} + {% if nb_url > 0 %} + {% if nb_url == 1 %} {% if refs.0|is_facebook_url %} -

    Voir l'événement facebook

    - {% else %} -

    Voir l'événement sur le site source {{ refs.0|hostname }}

    - {% endif %} +

    + Voir l'événement facebook + facebook + +

    + {% else %} +

    + Voir l'événement sur le site source {{ refs.0|hostname }} +

    + {% endif %} {% else %} -

    Voir l'événement sur les site sources +

    + Voir l'événement sur les site sources {% for eurl in refs %} - - {{ eurl|hostname }}{% if eurl|is_facebook_url %} {% endif %}{% if not forloop.last %}, {% endif %} - {% endfor %}

    + {{ eurl|hostname }} + {% if eurl|is_facebook_url %} + facebook + {% endif %} + + {% if not forloop.last %},{% endif %} + {% endfor %} +

    {% endif %} -{% else %} -

    À notre connaissance, cet événement n'est pas référencé autre part sur internet.

    -{% endif %} + {% else %} +

    + À notre connaissance, cet événement n'est pas référencé autre part sur internet. +

    + {% endif %} {% endwith %} {% endwith %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event_confirm_change_status.html b/src/agenda_culturel/templates/agenda_culturel/event_confirm_change_status.html index 405f576..105dc70 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event_confirm_change_status.html +++ b/src/agenda_culturel/templates/agenda_culturel/event_confirm_change_status.html @@ -1,46 +1,46 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %} -{% if status == "published" %} -Publier l'événement {{ event.title }} -{% elif status == "draft" %} -Déplacer l'événement {{ event.title }} dans les brouillons -{% elif status == "trash" %} -Mettre l'événement {{ event.title }} à la corbeille -{% endif %} -{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %} + {% if status == "published" %} + Publier l'événement {{ event.title }} + {% elif status == "draft" %} + Déplacer l'événement {{ event.title }} dans les brouillons + {% elif status == "trash" %} + Mettre l'événement {{ event.title }} à la corbeille + {% endif %} + {% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - {% block content %} - -
    +
    -

    - {% if status == "published" %} - Publier l'événement {{ event.title }} - {% elif status == "draft" %} - Déplacer l'événement {{ event.title }} dans les brouillons - {% elif status == "trash" %} - Mettre l'événement {{ event.title }} à la corbeille - {% endif %} -

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir +

    {% if status == "published" %} - publier l'événement « {{ event }} » du {{ event.start_day }} ? + Publier l'événement {{ event.title }} {% elif status == "draft" %} - déplacer en brouillon l'événement « {{ event }} » du {{ event.start_day }} ? + Déplacer l'événement {{ event.title }} dans les brouillons {% elif status == "trash" %} - mettre à la corbeille l'événement « {{ event }} » du {{ event.start_day }} ? + Mettre l'événement {{ event.title }} à la corbeille {% endif %} -

    - {{ form }} -
    +

    + + + {% csrf_token %} +

    + Êtes-vous sûr·e de vouloir + {% if status == "published" %} + publier l'événement « {{ event }} » du {{ event.start_day }} ? + {% elif status == "draft" %} + déplacer en brouillon l'événement « {{ event }} » du {{ event.start_day }} ? + {% elif status == "trash" %} + mettre à la corbeille l'événement « {{ event }} » du {{ event.start_day }} ? + {% endif %} +

    + {{ form }} + -
    -
    + + +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event_confirm_delete.html b/src/agenda_culturel/templates/agenda_culturel/event_confirm_delete.html index 493ca85..3ee2357 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event_confirm_delete.html +++ b/src/agenda_culturel/templates/agenda_culturel/event_confirm_delete.html @@ -1,16 +1,14 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Supprimer {{ object.title }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Supprimer {{ object.title }}{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - {% block content %} - -

    Suppression de l'événement {{ object.title }} ({{ object.start_day }})

    -
    {% csrf_token %} +

    Suppression de l'événement {{ object.title }} ({{ object.start_day }})

    + + {% csrf_token %}

    Êtes-vous sûr·e de vouloir supprimer l'événement « {{ object }} » ?

    {{ form }} -
    - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event_form.html b/src/agenda_culturel/templates/agenda_culturel/event_form.html index 3698557..3d38275 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/event_form.html @@ -2,144 +2,161 @@ {% load static %} {% load cat_extra %} {% load utils_extra %} - -{% block title %}{% block og_title %} -{% if object %}{% if form.is_clone_from_url %} -Création d'une copie locale de {% else %} -Édition de l'événement {{ object.title }} ({{ object.start_day }}) -{% endif %} -{% if form.is_simple_clone_from_url %} -Duplication de {% else %} -Édition de l'événement {{ object.title }} ({{ object.start_day }}) -{% endif %} -{% else %} - {% if from_import %} - Ajuster l'événement importé +{% block title %} + {% block og_title %} + {% if object %} + {% if form.is_clone_from_url %} + Création d'une copie locale de + {% else %} + Édition de l'événement {{ object.title }} ({{ object.start_day }}) + {% endif %} + {% if form.is_simple_clone_from_url %} + Duplication de + {% else %} + Édition de l'événement {{ object.title }} ({{ object.start_day }}) + {% endif %} {% else %} - Ajouter un événement + {% if from_import %} + Ajuster l'événement importé + {% else %} + Ajouter un événement + {% endif %} {% endif %} -{% endif %} -{% endblock %}{% endblock %} - -{% block ajouter-bouton %}{% block ajouter-menu %}{% endblock %}{% endblock %} - - + {% endblock %} +{% endblock %} +{% block ajouter-bouton %} + {% block ajouter-menu %}{% endblock %} +{% endblock %} {% block entete_header %} - -{% css_categories %} - - - - - - - - - - - - - - - - + + {% css_categories %} + + + + + + + + + + + + + +{% endblock %} +{% block fluid %} + {% if object %}-fluid{% endif %} {% endblock %} - -{% block fluid %}{% if object %}-fluid{% endif %}{% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - - {% block content %} -{% load static_content_extra %} - -{% if object %} - -
    -
    -

    {% if form.is_clone_from_url %} - Création d'une copie locale de {% else %} - {% if form.is_simple_clone_from_url %} - Duplication de {% else %} -Édition de l'événement{% endif %}{% endif %} {{ object.title }} ({{ object.start_day }})

    - {% if form.is_simple_clone_from_url %} -

    Vous allez créer une copie de l'événement original qui n'aura plus aucun lien avec ce dernier. Cette possibilité - est généralement utilisée pour créer un événement semblable à une date différente, par exemple. -

    - {% endif %} -
    - -
    - -
    - {% include "agenda_culturel/single-event/event-single-inc.html" with event=event nobuttons=1 permalink=1 h=2 %} - - {% with event.get_concurrent_events as concurrent_events %} - {% if concurrent_events %} -
    -
    -

    En même temps

    -

    {% if concurrent_events|length > 1 %}Plusieurs événements se déroulent en même temps.{% else %}Un autre événement se déroule en même temps.{% endif %}

    -
    -
      - {% for e in concurrent_events %} -
    • - {{ e.category|circle_cat }} {% if e.start_time %}{{ e.start_time }}{% else %}toute la journée{% endif %} {{ e.title }} -
    • - {% endfor %} -
    -
    - {% endif %} - {% endwith %} - - -
    - {% include "agenda_culturel/event-info-inc.html" %} -
    -
    -{% endif %} - -
    -
    - {% if object %} -

    Édition des informations

    - {% else %} - {% if from_import %} -

    Ajuster l'événement importé

    + {% load static_content_extra %} + {% if object %} +
    +
    +

    + {% if form.is_clone_from_url %} + Création d'une copie locale de + {% else %} + {% if form.is_simple_clone_from_url %} + Duplication de {% else %} -

    Ajouter un événement

    -

    Si l'événement est déjà décrit en ligne (par exemple sur Facebook), vous pouvez tenter un import automatique.

    + Édition de l'événement {% endif %} - {% endif %} -
    - - -{% if form.is_clone_from_url or form.is_simple_clone_from_url %} - {% url "add_event_details" as urlparam %} -{% endif %} -
    {% csrf_token %} - {{ form.media }} - {{ form }} -
    - Annuler + {% endif %} + {{ object.title }} ({{ object.start_day }}) + {% if form.is_simple_clone_from_url %} - - {% else %} - +

    + Vous allez créer une copie de l'événement original qui n'aura plus aucun lien avec ce dernier. Cette possibilité + est généralement utilisée pour créer un événement semblable à une date différente, par exemple. +

    {% endif %} +
    +
    +
    + {% include "agenda_culturel/single-event/event-single-inc.html" with event=event nobuttons=1 permalink=1 h=2 %} + {% with event.get_concurrent_events as concurrent_events %} + {% if concurrent_events %} +
    +
    +

    En même temps

    +

    + {% if concurrent_events|length > 1 %} + Plusieurs événements se déroulent en même temps. + {% else %} + Un autre événement se déroule en même temps. + {% endif %} +

    +
    +
      + {% for e in concurrent_events %} +
    • + {{ e.category|circle_cat }} + {% if e.start_time %} + {{ e.start_time }} + {% else %} + toute la journée + {% endif %} + {{ e.title }} +
    • + {% endfor %} +
    +
    + {% endif %} + {% endwith %} +
    {% include "agenda_culturel/event-info-inc.html" %}
    +
    + {% endif %} +
    +
    + {% if object %} +

    Édition des informations

    + {% else %} + {% if from_import %} +

    Ajuster l'événement importé

    + {% else %} +

    Ajouter un événement

    +

    + Si l'événement est déjà décrit en ligne (par exemple sur Facebook), vous pouvez tenter un import automatique. +

    + {% endif %} + {% endif %} +
    + {% if form.is_clone_from_url or form.is_simple_clone_from_url %} + {% url "add_event_details" as urlparam %} + {% endif %} + + {% csrf_token %} + {{ form.media }} + {{ form }} +
    + Annuler + {% if form.is_simple_clone_from_url %} + + {% else %} + + {% endif %} +
    + +
    + {% if object %} +
    - - -
    -{% if object %} -
    - -{% endif %} - - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event_form_moderate.html b/src/agenda_culturel/templates/agenda_culturel/event_form_moderate.html index 729f93d..4a81d89 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event_form_moderate.html +++ b/src/agenda_culturel/templates/agenda_culturel/event_form_moderate.html @@ -2,98 +2,118 @@ {% load static %} {% load utils_extra %} {% load cat_extra %} - - -{% block title %}{% block og_title %}Modération de l'événement {{ object.title }}{% endblock %}{% endblock %} - -{% block ajouter-bouton %}{% block ajouter-menu %}{% endblock %}{% endblock %} - - +{% block title %} + {% block og_title %}Modération de l'événement {{ object.title }}{% endblock %} +{% endblock %} +{% block ajouter-bouton %} + {% block ajouter-menu %}{% endblock %} +{% endblock %} {% block entete_header %} - - {% css_categories %} - - - - - - + + {% css_categories %} + + + + {% endblock %} - - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -{% load static_content_extra %} - -
    + {% load static_content_extra %} +
    -

    Modération de l'événement {{ object.title }}

    -

    En utilisant cet outil de modération, l'événement ne sera pas modifié{% if event.pure_import %} - et restera considéré comme une version importée, peut importe les modifications d'étiquette, - de catégorie ou de lieu que vous lui appliquerez{% endif %}. -

    +

    Modération de l'événement {{ object.title }}

    +

    + En utilisant cet outil de modération, l'événement ne sera pas modifié + {% if event.pure_import %} + et restera considéré comme une version importée, peut importe les modifications d'étiquette, + de catégorie ou de lieu que vous lui appliquerez + {% endif %} + . +

    - -
    {% csrf_token %} - -
    - + + {% csrf_token %} +
    - {% include "agenda_culturel/single-event/event-single-inc.html" with event=event onlyedit=1 permalink=1 h=2 %} - - {% with event.get_concurrent_events as concurrent_events %} + {% include "agenda_culturel/single-event/event-single-inc.html" with event=event onlyedit=1 permalink=1 h=2 %} + {% with event.get_concurrent_events as concurrent_events %} {% if concurrent_events %} -
    -
    -

    En même temps

    -

    {% if concurrent_events|length > 1 %}Plusieurs événements se déroulent en même temps.{% else %}Un autre événement se déroule en même temps.{% endif %}

    -
    -
      - {% for e in concurrent_events %} -
    • - {{ e.category|circle_cat }} {% if e.start_time %}{{ e.start_time }}{% else %}toute la journée{% endif %} {{ e.title }} -
    • - {% endfor %} -
    -
    +
    +
    +

    En même temps

    +

    + {% if concurrent_events|length > 1 %} + Plusieurs événements se déroulent en même temps. + {% else %} + Un autre événement se déroule en même temps. + {% endif %} +

    +
    +
      + {% for e in concurrent_events %} +
    • + {{ e.category|circle_cat }} + {% if e.start_time %} + {{ e.start_time }} + {% else %} + toute la journée + {% endif %} + {{ e.title }} +
    • + {% endfor %} +
    +
    {% endif %} - {% endwith %} - + {% endwith %}
    -
    -
    - -

    Édition des méta-informations

    - {% if event.moderated_date %} -

    Cet événement a déjà été modéré {% if event.moderation_by_user %}par {{ event.moderation_by_user.username }} {% endif %}le {{ event.moderated_date }}. - Vous pouvez bien sûr modifier de nouveau ces méta-informations en utilisant - le formulaire ci-après. -

    - {% endif %} -
    - {{ form.media }} - {{ form.as_p }} +
    +

    Édition des méta-informations

    + {% if event.moderated_date %} +

    + Cet événement a déjà été modéré + {% if event.moderation_by_user %}par {{ event.moderation_by_user.username }}{% endif %} + le {{ event.moderated_date }}. + Vous pouvez bien sûr modifier de nouveau ces méta-informations en utilisant + le formulaire ci-après. +

    + {% endif %} +
    + {{ form.media }} + {{ form.as_p }}
    -
    -
    - {% if pred %} - < Revenir au précédent - {% else %} - Annuler - {% endif %} - - - Passer au suivant sans enregistrer > -
    - -
    - - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event_import.html b/src/agenda_culturel/templates/agenda_culturel/event_import.html index 06d8866..d41a112 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event_import.html +++ b/src/agenda_culturel/templates/agenda_culturel/event_import.html @@ -1,37 +1,32 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Ajouter un événement{% endblock %}{% endblock %} - -{% load cat_extra %} - - -{% block entete_header %} - {% css_categories %} +{% block title %} + {% block og_title %}Ajouter un événement{% endblock %} +{% endblock %} +{% load cat_extra %} +{% block entete_header %} + {% css_categories %} {% endblock %} - {% block fluid %}{% endblock %} - -{% block ajouter-bouton %}{% block ajouter-menu %}{% endblock %}{% endblock %} - - +{% block ajouter-bouton %} + {% block ajouter-menu %}{% endblock %} +{% endblock %} {% block content %} -
    +
    -

    Ajouter un événement

    - {% url 'event_import' as local_url %} - {% include "agenda_culturel/static_content.html" with name="import_proxy" url_path=local_url %} +

    Ajouter un événement

    + {% url 'event_import' as local_url %} + {% include "agenda_culturel/static_content.html" with name="import_proxy" url_path=local_url %}
    - -

    On peut importer automatiquement un événement depuis d'autres sites internet (principalement depuis Facebook pour - l'instant), à partir de l'adresse (url) de la page de l'événement. +

    + On peut importer automatiquement un événement depuis d'autres sites internet (principalement depuis Facebook pour + l'instant), à partir de l'adresse (url) de la page de l'événement.

    Importer un événement depuis son url Importer des événements depuis leurs urls - -

    Si l'événement n'est pas disponible en ligne, ou si l'import ne fonctionne pas, on peut - ajouter un événement en utilisant un formulaire complet. +

    + Si l'événement n'est pas disponible en ligne, ou si l'import ne fonctionne pas, on peut + ajouter un événement en utilisant un formulaire complet.

    Remplir le formulaire d'événement - -
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/event_next_error_message.html b/src/agenda_culturel/templates/agenda_culturel/event_next_error_message.html index f95e98c..7bc492a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event_next_error_message.html +++ b/src/agenda_culturel/templates/agenda_culturel/event_next_error_message.html @@ -1,36 +1,31 @@ {% extends "agenda_culturel/page.html" %} - {% load utils_extra %} {% load static %} - -{% block title %}{% block og_title %}Erreur pendant la recherche d'événement suivant{% endblock %}{% endblock %} - - +{% block title %} + {% block og_title %}Erreur pendant la recherche d'événement suivant{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - - {% block content %} - -
    +
    -

    Erreur pendant la recherche d'événement suivant

    +

    Erreur pendant la recherche d'événement suivant

    {% if object %} -

    Nous n'avons pas été capable de trouver un événement à modérer après +

    + Nous n'avons pas été capable de trouver un événement à modérer après l'événement {{ object.title }}. Peut-être est-ce le dernier événement avant la fin du monde ? -

    +

    {% else %} -

    Nous n'avons pas été capable de trouver l'événement #{{ pk }} sur l'agenda. +

    + Nous n'avons pas été capable de trouver l'événement #{{ pk }} sur l'agenda. Il a certainement été supprimé depuis que vous l'avez consulté. -

    +

    {% endif %} - - -
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/filter-inc.html b/src/agenda_culturel/templates/agenda_culturel/filter-inc.html index a532aeb..18b8545 100644 --- a/src/agenda_culturel/templates/agenda_culturel/filter-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/filter-inc.html @@ -3,79 +3,67 @@ {% load utils_extra %} {% load static %} {% load locations_extra %} - -{% if noarticle == 0 %} -
    -{% endif %} -
    -
    - {% show_legend category=category filter=filter %} -
    - +{% if noarticle == 0 %}
    {% endif %} +
    +
    {% show_legend category=category filter=filter %}
    -
    - {{ filter.form.non_field_errors }} - - {% if filter.is_active %} - Filtres : - {% for t in filter.get_tags %} - {{ t | tag_button:"true" }} - {% endfor %} - {% for t in filter.get_exclude_tags %} - {{ t | tag_button_strike:"true" }} - {% endfor %} - {% for s in filter.get_status_names %} - {{ s }} - {% endfor %} +
    + {{ filter.form.non_field_errors }} + + {% if filter.is_active %} + Filtres : + {% for t in filter.get_tags %}{{ t | tag_button:"true" }}{% endfor %} + {% for t in filter.get_exclude_tags %}{{ t | tag_button_strike:"true" }}{% endfor %} + {% for s in filter.get_status_names %}{{ s }}{% endfor %} {{ filter.get_recurrence_filtering }} {{ filter.get_position_radius }} - {% else %} - Filtrer - {% endif %} - - {% if filter.is_resetable %} - {% picto_from_name "x-circle" %} - {% endif %} - - -
    -
    -
    - {% for f in filter.form.visible_fields %} - {% if f.id_for_label and f.id_for_label in "id_position,id_radius" %} -
    + {% else %} + Filtrer + {% endif %} + {% if filter.is_resetable %} + {% picto_from_name "x-circle" %} + {% endif %} +
    + +
    +
    + {% for f in filter.form.visible_fields %} + {% if f.id_for_label and f.id_for_label in "id_position,id_radius" %} +
    {{ f.errors }} {{ f.label_tag }} {{ f }} {{ f.help_text }} -
    - {% endif %} - {% endfor %} -
    -
    - {% for f in filter.form.visible_fields %} - {% if not f.id_for_label or not f.id_for_label in "id_position,id_radius" %} -

    +

    + {% endif %} + {% endfor %} +
    +
    + {% for f in filter.form.visible_fields %} + {% if not f.id_for_label or not f.id_for_label in "id_position,id_radius" %} +

    {{ f.errors }} {{ f.label_tag }} {{ f }} {{ f.help_text }} -

    - {% endif %} - {% endfor %} -
    -
    - - - -
    +

    + {% endif %} + {% endfor %} +
    + + + + +
    Suggestion : - {% show_suggested_positions filter=filter %} - {% show_suggested_tags filter=filter %} + {% show_suggested_positions filter=filter %} + {% show_suggested_tags filter=filter %} +
    - -
    - - - + - -{% if noarticle == 0 %} -
    -{% endif %} + + {% if noarticle == 0 %}{% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/fix_duplicate.html b/src/agenda_culturel/templates/agenda_culturel/fix_duplicate.html index a957eb8..e11dc09 100644 --- a/src/agenda_culturel/templates/agenda_culturel/fix_duplicate.html +++ b/src/agenda_culturel/templates/agenda_culturel/fix_duplicate.html @@ -1,44 +1,62 @@ {% extends "agenda_culturel/page-admin.html" %} - {% load utils_extra %} {% load event_extra %} - - {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block content %} -
    +
    -

    {% block title %}{% block og_title %}{% if object.representative %}Modifier{% else %}Corriger{% endif %} des événements {% if not object.representative %}possiblement{% endif %} dupliqués{% endblock %}{% endblock %}

    - {% if object.representative %} -

    Les événements ci-dessous sont des duplicats du même événement, probablement issus de différentes - sources. La version qui sera affichée aux internautes en priorité est la version - {% for e in object.get_duplicated %}{% if not e.masked %}{{ forloop.counter0|int_to_abc }}{% endif %}{% endfor %}. -

    - {% else %} -

    Les événements ci-dessous ont été détectés ou signalés comme possiblement dupliqué. - Les éléments qui diffèrent ont été dupliqués et mis en évidence.

    - {% endif %} - -

    Choisissez dans la liste ci-dessous l'action que vous voulez réaliser. À noter que - s'il y a plus de deux événements, toutes les possibilités ne sont pas disponibles, et - il vous faudra peut-être réaliser certaines opérations à la main.

    - -
    {% csrf_token %} - {{ form.as_p }} -

    Remarque : les éléments masqués qui ont la même source que l'élément à l'élément conservé seront également marqués supprimés.

    -
    - Annuler - -
    -
    +

    + {% block title %} + {% block og_title %} + {% if object.representative %} + Modifier + {% else %} + Corriger + {% endif %} + des événements + {% if not object.representative %}possiblement{% endif %} + dupliqués + {% endblock %} + {% endblock %} +

    + {% if object.representative %} +

    + Les événements ci-dessous sont des duplicats du même événement, probablement issus de différentes + sources. La version qui sera affichée aux internautes en priorité est la version + {% for e in object.get_duplicated %} + {% if not e.masked %}{{ forloop.counter0|int_to_abc }}{% endif %} + {% endfor %} + . +

    + {% else %} +

    + Les événements ci-dessous ont été détectés ou signalés comme possiblement dupliqué. + Les éléments qui diffèrent ont été dupliqués et mis en évidence. +

    + {% endif %} +

    + Choisissez dans la liste ci-dessous l'action que vous voulez réaliser. À noter que + s'il y a plus de deux événements, toutes les possibilités ne sont pas disponibles, et + il vous faudra peut-être réaliser certaines opérations à la main. +

    +
    + {% csrf_token %} + {{ form.as_p }} +

    + Remarque : les éléments masqués qui ont la même source que l'élément à l'élément conservé seront également marqués supprimés. +

    +
    + Annuler + +
    +
    {% include "agenda_culturel/duplicate-diff-inc.html" with object=object %} -
    - -{% include "agenda_culturel/duplicate-info-inc.html" with object=object %} - +
    + {% include "agenda_culturel/duplicate-info-inc.html" with object=object %} {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/forms/div_group.html b/src/agenda_culturel/templates/agenda_culturel/forms/div_group.html index bf2afc9..ce0ef1a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/forms/div_group.html +++ b/src/agenda_culturel/templates/agenda_culturel/forms/div_group.html @@ -1,38 +1,38 @@ - {{ errors }} {% if errors and not fields %} -

    {% for field in hidden_fields %}{{ field }}{% endfor %}

    +

    + {% for field in hidden_fields %}{{ field }}{% endfor %} +

    {% endif %} {% for group, fields in form.fields_by_group %} -
    +
    {% if group.maskable %} - + + {% endif %}
    - {% for field in fields %} -
    - {{ field.errors }} -
    - {% endfor %} + {% for field in fields %}
    {{ field.errors }}
    {% endfor %}
    {% for field in fields %} -
    - - {% if field.label %}{{ field.label_tag }}{% endif %} - {{ field }} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} +
    +
    + {% if field.label %}{{ field.label_tag }}{% endif %} + {{ field }} + {% if field.help_text %} + {{ field.help_text|safe }} + {% endif %} +
    -
    - {% endfor %} + {% endfor %}
    {% endfor %} diff --git a/src/agenda_culturel/templates/agenda_culturel/import.html b/src/agenda_culturel/templates/agenda_culturel/import.html index e4f1944..6567cff 100644 --- a/src/agenda_culturel/templates/agenda_culturel/import.html +++ b/src/agenda_culturel/templates/agenda_culturel/import.html @@ -1,38 +1,36 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Importer un événement{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Importer un événement{% endblock %} +{% endblock %} {% load static %} - {% block fluid %}{% endblock %} - -{% block ajouter-bouton %}{% block ajouter-menu %}{% endblock %}{% endblock %} - - +{% block ajouter-bouton %} + {% block ajouter-menu %}{% endblock %} +{% endblock %} {% block content %} - -
    +
    -

    Importer un événement

    - {% url 'event_import_url' as local_url %} - {% include "agenda_culturel/static_content.html" with name="import" url_path=local_url %} +

    Importer un événement

    + {% url 'event_import_url' as local_url %} + {% include "agenda_culturel/static_content.html" with name="import" url_path=local_url %}
    -
    -
    - {% csrf_token %} - {{ form.media }} - {{ form }} - -
    -

    Si tu as plein d'événements à ajouter, tu peux les ajouter par lots.

    - - -

    Si l'import automatique ne marche pas, ou si l'événement n'est pas en ligne, tu peux - tout de même ajouter l'événement en le décrivant sur la page d'ajout d'événement.

    -
    - - - + + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/import_set.html b/src/agenda_culturel/templates/agenda_culturel/import_set.html index 45504df..46415a0 100644 --- a/src/agenda_culturel/templates/agenda_culturel/import_set.html +++ b/src/agenda_culturel/templates/agenda_culturel/import_set.html @@ -1,55 +1,42 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Importer un ensemble d'événements{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Importer un ensemble d'événements{% endblock %} +{% endblock %} {% load static %} - - - {% block fluid %}{% endblock %} - -{% block ajouter-bouton %}{% block ajouter-menu %}{% endblock %}{% endblock %} - +{% block ajouter-bouton %} + {% block ajouter-menu %}{% endblock %} +{% endblock %} {% block content %} - -
    +
    -

    Importer un ensemble d'événements

    - {% url 'event_import_urls' as local_url %} - {% include "agenda_culturel/static_content.html" with name="import_set" url_path=local_url %} +

    Importer un ensemble d'événements

    + {% url 'event_import_urls' as local_url %} + {% include "agenda_culturel/static_content.html" with name="import_set" url_path=local_url %}
    - -

    Si l'import automatique ne marche pas, ou si l'événement n'est pas en ligne, vous pouvez - tout de même ajouter l'événement en le décrivant sur la page d'ajout d'événement.

    -
    - - -
    - +

    + Si l'import automatique ne marche pas, ou si l'événement n'est pas en ligne, vous pouvez + tout de même ajouter l'événement en le décrivant sur la page d'ajout d'événement. +

    +
    + {{ formset.management_form }} - {% csrf_token %} - {% if contactform %} -
    - {{ contactform }} -
    - {% endif %} - - {% for form in formset %} -
    -
    -

    Nouvel événement #{{ forloop.counter }}

    -
    - {{ form.as_p }} -
    - {% endfor %} - -
    - -
    - - - - + + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/imports.html b/src/agenda_culturel/templates/agenda_culturel/imports.html index 82bcb9c..ffc010e 100644 --- a/src/agenda_culturel/templates/agenda_culturel/imports.html +++ b/src/agenda_culturel/templates/agenda_culturel/imports.html @@ -1,40 +1,38 @@ {% extends "agenda_culturel/page-admin.html" %} - -{% block title %}{% block og_title %}Importations par lot{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Importations par lot{% endblock %} +{% endblock %} {% load utils_extra %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    -
    -
    +
    +
    +

    Importations par lot

    -
    - -

    Il y a actuellement {{ nb_in_orphan_import }} événements singletons, c'est-à-dire importés depuis une source mais non inclus dans un import récurrent.

    - {% include "agenda_culturel/batch-imports-inc.html" with objects=paginator_filter %} - -
    - - {% include 'agenda_culturel/paginator.html' %} - -
    -
    - -{% include "agenda_culturel/side-nav.html" with current="imports" %} -
    - +
    +

    + Il y a actuellement {{ nb_in_orphan_import }} événements singletons, c'est-à-dire importés depuis une source mais non inclus dans un import récurrent. +

    + {% include "agenda_culturel/batch-imports-inc.html" with objects=paginator_filter %} +
    + {% include "agenda_culturel/paginator.html" %} +
    +
    + {% include "agenda_culturel/side-nav.html" with current="imports" %} +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/merge_duplicate.html b/src/agenda_culturel/templates/agenda_culturel/merge_duplicate.html index 5ee0d04..c17cc55 100644 --- a/src/agenda_culturel/templates/agenda_culturel/merge_duplicate.html +++ b/src/agenda_culturel/templates/agenda_culturel/merge_duplicate.html @@ -1,30 +1,31 @@ {% extends "agenda_culturel/page.html" %} - {% load utils_extra %} {% load event_extra %} - -{% block title %}{% block og_title %}Création d'une nouvelle version par fusion{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Création d'une nouvelle version par fusion{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block content %} -
    +
    -

    Création d'une nouvelle version par fusion

    -

    Pour chacun des champs non identiques, choisissez la version qui vous convient pour créer un événement - résultat de la fusion. La version ainsi créée deviendra la version représentative.

    - +

    Création d'une nouvelle version par fusion

    +

    + Pour chacun des champs non identiques, choisissez la version qui vous convient pour créer un événement + résultat de la fusion. La version ainsi créée deviendra la version représentative. +

    - {% csrf_token %} - {{ form.as_grid }} -
    - Annuler - -
    + {% csrf_token %} + {{ form.as_grid }} +
    + Annuler + +
    -
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/message_confirm_delete.html b/src/agenda_culturel/templates/agenda_culturel/message_confirm_delete.html index 798a24a..fe899aa 100644 --- a/src/agenda_culturel/templates/agenda_culturel/message_confirm_delete.html +++ b/src/agenda_culturel/templates/agenda_culturel/message_confirm_delete.html @@ -1,26 +1,27 @@ {% extends "agenda_culturel/page-admin.html" %} - -{% block title %}{% block og_title %}Supprimer {{ object.subject }}{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block content %} - -
    -
    -

    Suppression du message {{ object.subject }}

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir supprimer le message « {{ object.subject }} » de {{ object.name }} ({{ object.id }}) ?

    - {{ form }} - - -
    -
    - +{% block title %} + {% block og_title %}Supprimer {{ object.subject }}{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block content %} +
    +
    +

    + Suppression du message {{ object.subject }} +

    +
    +
    + {% csrf_token %} +

    + Êtes-vous sûr·e de vouloir supprimer le message « {{ object.subject }} » de {{ object.name }} ({{ object.id }}) ? +

    + {{ form }} + +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/message_create_form.html b/src/agenda_culturel/templates/agenda_culturel/message_create_form.html index b3603bc..0127ce2 100644 --- a/src/agenda_culturel/templates/agenda_culturel/message_create_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/message_create_form.html @@ -1,51 +1,60 @@ {% extends "agenda_culturel/page-admin.html" %} {% load static %} {% load honeypot %} - -{% block title %}{% block og_title %}{% if form.event %}Contact au sujet de l'événement {{ form.event.title }}{% else %} -Contact{% endif %}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %} + {% if form.event %} + Contact au sujet de l'événement {{ form.event.title }} + {% else %} + Contact + {% endif %} + {% endblock %} +{% endblock %} {% block entete_header %} - - - - - - + + + + + + {% endblock %} - {% block fluid %}{% endblock %} - - {% block content %} - - -
    +
    -

    {% if form.event %}Contact au sujet de l'événement « {{ form.event.title }} »{% else %} - Contact{% endif %}

    - - {% if not form.event %} -
    - {% url 'contact' as local_url %} - {% include "agenda_culturel/static_content.html" with name="contact" url_path=local_url %} -
    - {% endif %} - -

    Attention : n'utilisez pas le formulaire ci-dessous pour proposer un événement, il sera ignoré. Utilisez plutôt la page ajouter un événement.

    +

    {% if form.event %} -

    Tu nous contactes au sujet de l'événement « {{ form.event.title }} » du {{ form.event.start_day }}. - N'hésites pas à nous indiquer le maximum de contexte et à nous laisser ton adresse - afin que l'on puisse répondre à tes demandes ou remarques. -

    + Contact au sujet de l'événement « {{ form.event.title }} » + {% else %} + Contact {% endif %} +

    + {% if not form.event %} +
    + {% url 'contact' as local_url %} + {% include "agenda_culturel/static_content.html" with name="contact" url_path=local_url %} +
    + {% endif %} +

    + Attention : n'utilisez pas le formulaire ci-dessous pour proposer un événement, il sera ignoré. Utilisez plutôt la page ajouter un événement. +

    + {% if form.event %} +

    + Tu nous contactes au sujet de l'événement « {{ form.event.title }} » du {{ form.event.start_day }}. + N'hésites pas à nous indiquer le maximum de contexte et à nous laisser ton adresse + afin que l'on puisse répondre à tes demandes ou remarques. +

    + {% endif %}
    -
    {% csrf_token %} - {% render_honeypot_field "alias_name" %} - {{ form.media }} - {{ form.as_p }} - + + {% csrf_token %} + {% render_honeypot_field "alias_name" %} + {{ form.media }} + {{ form.as_p }} +
    -
    - +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/message_moderation_form.html b/src/agenda_culturel/templates/agenda_culturel/message_moderation_form.html index 799e274..abbd7b7 100644 --- a/src/agenda_culturel/templates/agenda_culturel/message_moderation_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/message_moderation_form.html @@ -1,63 +1,88 @@ {% extends "agenda_culturel/page-admin.html" %} {% load static %} {% load utils_extra %} - -{% block title %}{% block og_title %}Message {{ obj.subject }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Message {{ obj.subject }}{% endblock %} +{% endblock %} {% block entete_header %} - - - - - - + + + + + + {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    -
    -
    +
    +
    +
    - - -

    Message « {{ object.subject }} »

    -
      -
    • Date : {{ object.date.date }} à {{ object.date.time }}
    • -
    • Auteur : {% if object.user %}{{ object.user }}{% else %}{{ object.name }}{% endif %} {% if object.email %}{{ object.email }}{% endif %}
    • - {% if object.related_event %}
    • Événement associé : {{ object.related_event.title }} du {{ object.related_event.start_day }}
    • {% endif %} -
    • Type : {% if object.message_type %}{{ object.get_message_type_display }}{% else %}-{% endif %}
    • -
    + +

    Message « {{ object.subject }} »

    +
      +
    • Date : {{ object.date.date }} à {{ object.date.time }}
    • +
    • + Auteur : + {% if object.user %} + {{ object.user }} + {% else %} + {{ object.name }} + {% endif %} + {% if object.email %}{{ object.email }}{% endif %} +
    • + {% if object.related_event %} +
    • + Événement associé : {{ object.related_event.title }} du {{ object.related_event.start_day }} +
    • + {% endif %} +
    • + Type : + {% if object.message_type %} + {{ object.get_message_type_display }} + {% else %} + - + {% endif %} +
    • +
    -
    - {{ object.message | safe }} -
    -
    - -
    - {% if object.message_type == "from_contributor" or object.message_type == "from_contrib_no_msg" %}

    Ce message a été envoyé par une personne lors +

    {{ object.message | safe }}
    +
    +
    + {% if object.message_type == "from_contributor" or object.message_type == "from_contrib_no_msg" %} +

    + Ce message a été envoyé par une personne lors de l'ajout d'un événement. {% if object.closed %} - En décochant fermé, vous modifiez manuellement son statut, et cela pourra entraîner l'envoi d'un message de notification - lors de la modification future de l'événement associé.{% else %} - En cochant fermé, vous modifiez manuellement son statut, et cela empêchera l'envoi d'un message de notification - lors de la modification future de l'événement associé. + En décochant fermé, vous modifiez manuellement son statut, et cela pourra entraîner l'envoi d'un message de notification + lors de la modification future de l'événement associé. + {% else %} + En cochant fermé, vous modifiez manuellement son statut, et cela empêchera l'envoi d'un message de notification + lors de la modification future de l'événement associé. {% endif %} -

    {% endif %} -
    {% csrf_token %} - {{ form.as_p }} - +

    + {% endif %} + + {% csrf_token %} + {{ form.as_p }} +
    -
    -
    - -{% include "agenda_culturel/side-nav.html" with current="messages" %} -
    - +
    +
    + {% include "agenda_culturel/side-nav.html" with current="messages" %} +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/messages.html b/src/agenda_culturel/templates/agenda_culturel/messages.html index 95476b2..ee87181 100644 --- a/src/agenda_culturel/templates/agenda_culturel/messages.html +++ b/src/agenda_culturel/templates/agenda_culturel/messages.html @@ -1,74 +1,118 @@ {% extends "agenda_culturel/page-admin.html" %} - -{% block title %}{% block og_title %}{% if filter.is_contact_messages %}Derniers messages de contact reçus{% else %}Derniers messages{% endif %}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %} + {% if filter.is_contact_messages %} + Derniers messages de contact reçus + {% else %} + Derniers messages + {% endif %} + {% endblock %} +{% endblock %} {% load utils_extra %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    -
    -
    +
    +
    +
    {% if nb_spams > 0 and filter.is_contact_messages %} - + {% endif %} {% if filter.is_contact_messages %} -

    Derniers messages de contact reçus

    +

    Derniers messages de contact reçus

    {% else %} -

    Derniers messages

    +

    Derniers messages

    {% endif %}
    - {{ filter.form.as_div }}
    - + {{ filter.form.as_div }} +
    +
    -
    - - + +
    - - - - - - - - - + + + + + + + + + - {% for obj in paginator_filter %} - - - - - - - - - - {% endfor %} + {% for obj in paginator_filter %} + + + + + + + + + + {% endfor %} -
    DateTypeSujetAuteurÉvénementFerméSpam
    DateTypeSujetAuteurÉvénementFerméSpam
    {{ obj.date }}{% if obj.message_type %}{{ obj.get_message_type_display }}{% else %}-{% endif %}{{ obj.subject }}{% if obj.user %}{{ obj.user }}{% else %}{% if obj.name %}{{ obj.name }}{% else %}-{% endif %}{% endif %}{% if obj.related_event %}{{ obj.related_event.pk }}{% else %}-{% endif %}{% if obj.closed %}{% picto_from_name "check-square" "fermé" %}{% else %}{% picto_from_name "square" "ouvert" %}{% endif %}{% if obj.spam %}{% picto_from_name "check-square" "spam" %}{% else %}{% picto_from_name "square" "non spam" %}{% endif %}
    {{ obj.date }} + {% if obj.message_type %} + {{ obj.get_message_type_display }} + {% else %} + - + {% endif %} + + {{ obj.subject }} + + {% if obj.user %} + {{ obj.user }} + {% else %} + {% if obj.name %} + {{ obj.name }} + {% else %} + - + {% endif %} + {% endif %} + + {% if obj.related_event %} + {{ obj.related_event.pk }} + {% else %} + - + {% endif %} + + {% if obj.closed %} + {% picto_from_name "check-square" "fermé" %} + {% else %} + {% picto_from_name "square" "ouvert" %} + {% endif %} + + {% if obj.spam %} + {% picto_from_name "check-square" "spam" %} + {% else %} + {% picto_from_name "square" "non spam" %} + {% endif %} +
    -
    - {% include 'agenda_culturel/paginator_filter.html' %} -
    -
    - -{% if filter.is_contact_messages %} - {% include "agenda_culturel/side-nav.html" with current="contact_messages" %} -{% else %} - {% include "agenda_culturel/side-nav.html" with current="messages" %} -{% endif %} -
    - + +
    + {% include "agenda_culturel/paginator_filter.html" %} +
    +
    + {% if filter.is_contact_messages %} + {% include "agenda_culturel/side-nav.html" with current="contact_messages" %} + {% else %} + {% include "agenda_culturel/side-nav.html" with current="messages" %} + {% endif %} +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/navigation.html b/src/agenda_culturel/templates/agenda_culturel/navigation.html index 9e7ba7c..95143e1 100644 --- a/src/agenda_culturel/templates/agenda_culturel/navigation.html +++ b/src/agenda_culturel/templates/agenda_culturel/navigation.html @@ -1,17 +1,13 @@ - {% if page_obj.has_previous %} - « premier - précédent - {% endif %} - - {% if page_obj.paginator.num_pages != 1 %} - - Page {{ page_obj.number }} sur {{ page_obj.paginator.num_pages }} - - {% endif %} - - {% if page_obj.has_next %} - suivant - dernier » - {% endif %} + {% if page_obj.has_previous %} + « premier + précédent + {% endif %} + {% if page_obj.paginator.num_pages != 1 %} + Page {{ page_obj.number }} sur {{ page_obj.paginator.num_pages }} + {% endif %} + {% if page_obj.has_next %} + suivant + dernier » + {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/organisation_confirm_delete.html b/src/agenda_culturel/templates/agenda_culturel/organisation_confirm_delete.html index ecd6090..93b76d9 100644 --- a/src/agenda_culturel/templates/agenda_culturel/organisation_confirm_delete.html +++ b/src/agenda_culturel/templates/agenda_culturel/organisation_confirm_delete.html @@ -1,25 +1,24 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Supprimer l'organisateur {{ object.name }}{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block content %} - -
    -
    -

    Supprimer l'organisateur {{ object.name }}

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir supprimer l'organisateur « {{ object.name }} ({{ object.pk }}) » ?

    - {{ form }} -
    - Annuler - -
    -
    -
    - +{% block title %} + {% block og_title %}Supprimer l'organisateur {{ object.name }}{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block content %} +
    +
    +

    Supprimer l'organisateur {{ object.name }}

    +
    +
    + {% csrf_token %} +

    Êtes-vous sûr·e de vouloir supprimer l'organisateur « {{ object.name }} ({{ object.pk }}) » ?

    + {{ form }} +
    + Annuler + +
    +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/organisation_detail.html b/src/agenda_culturel/templates/agenda_culturel/organisation_detail.html index 1181a8b..5fe21d1 100644 --- a/src/agenda_culturel/templates/agenda_culturel/organisation_detail.html +++ b/src/agenda_culturel/templates/agenda_culturel/organisation_detail.html @@ -1,95 +1,95 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}{{ object.name }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}{{ object.name }}{% endblock %} +{% endblock %} {% load tag_extra %} {% load utils_extra %} {% load cat_extra %} {% load static %} {% load cache %} {% load l10n %} - {% block entete_header %} - {% css_categories %} - - - - + {% css_categories %} + + + + {% endblock %} - {% block fluid %}{% endblock %} - {% block body-class %}organisation{% endblock %} {% block content %} - -
    +
    - {% picto_from_name "chevron-left" %} Toutes les organisations - {% if perms.agenda_culturel.change_organisation %} + {% picto_from_name "chevron-left" %} Toutes les organisations + {% if perms.agenda_culturel.change_organisation %} - {% endif %} -

    {{ object.name }}

    - {% if object.website or object.principal_place %} + {% endif %} +

    {{ object.name }}

    + {% if object.website or object.principal_place %} + {% endif %} + {% if user.is_authenticated %} + {% if object.recurrentimport_set.all|length == 1 %} +

    + Cet organisateur est associé à l'import récurrent {{ object.recurrentimport_set.all.0 }}. +

    {% endif %} - {% if user.is_authenticated %} - {% if object.recurrentimport_set.all|length == 1 %} -

    Cet organisateur est associé à l'import récurrent {{ object.recurrentimport_set.all.0 }}.

    - {% endif %} - {% if object.recurrentimport_set.count > 1 %} -

    Cet organisateur est associé aux imports récurrents :

    -
      - {% for ir in object.recurrentimport_set.all %} -
    • {{ ir }}
    • - {% endfor %} -
    - {% endif %} + {% if object.recurrentimport_set.count > 1 %} +

    Cet organisateur est associé aux imports récurrents :

    +
      + {% for ir in object.recurrentimport_set.all %} +
    • + {{ ir }} +
    • + {% endfor %} +
    {% endif %} - - {{ object.description|safe }} + {% endif %} + {{ object.description|safe }}
    - {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} - {% cache cache_timeout organisation_list user.is_authenticated object page_obj.number past %} -
    + {% cache cache_timeout organisation_list user.is_authenticated object page_obj.number past %} + - {% if past %} -

    Événements passés

    - {% else %} -

    Événements à venir

    - {% endif %} - {% if object_list %} - +
    + {% if past %} +

    Événements passés

    + {% else %} +

    Événements à venir

    + {% endif %} + {% if object_list %} {% include "agenda_culturel/navigation.html" with page_obj=page_obj %} - {% for event in object_list %} - {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event day=0 no_location=1 %} + {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event day=0 no_location=1 %} {% endfor %} - {% include "agenda_culturel/navigation.html" with page_obj=page_obj %} - - {% else %} -

    Aucun événement

    - {% endif %} + {% else %} +

    + Aucun événement +

    + {% endif %} {% endcache %} - {% endwith %} -
    -
    + {% endwith %}
    - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/organisation_form.html b/src/agenda_culturel/templates/agenda_culturel/organisation_form.html index 92a85c0..0ee710a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/organisation_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/organisation_form.html @@ -1,43 +1,51 @@ {% extends "agenda_culturel/page-admin.html" %} {% load static %} - {% block entete_header %} - - - - - + + + + + +{% endblock %} +{% block title %} + {% block og_title %} + {% if object %} + Description de {{ object.name }} + {% else %} + Description d'un organisme + {% endif %} + {% endblock %} {% endblock %} - -{% block title %}{% block og_title %}{% if object %}Description de {{ object.name }}{% else %}Description d'un organisme{% endif %}{% endblock %}{% endblock %} - {% block fluid %}{% endblock %} - {% block content %} - -
    +
    -

    {% if object %}Description de {{ object.name }}{% else %}Description d'un organisme{% endif %}

    +

    + {% if object %} + Description de {{ object.name }} + {% else %} + Description d'un organisme + {% endif %} +

    - -
    {% csrf_token %} - {{ form.media }} - {{ form.as_p }} - -
    - Annuler - -
    + + {% csrf_token %} + {{ form.media }} + {{ form.as_p }} +
    + Annuler + +
    -
    - - - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/organisation_list.html b/src/agenda_culturel/templates/agenda_culturel/organisation_list.html index f9a0aac..8516165 100644 --- a/src/agenda_culturel/templates/agenda_culturel/organisation_list.html +++ b/src/agenda_culturel/templates/agenda_culturel/organisation_list.html @@ -1,76 +1,79 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Liste des organismes{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Liste des organismes{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - {% load utils_extra %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} - + {% if object_list %} + {% for organisation in object_list %}
    - {% if user.is_authenticated %} + {% if user.is_authenticated %} - {% endif %} -

    {{ organisation.name }}

    + {% endif %} +

    {{ organisation.name }}

    {% if organisation.website or organisation.principal_place %} - {% endif %} -
    - {% endfor %} - {% else %} -

    Il n'y a aucun organisme défini.

    - {% endif %} - -
    + {% endfor %} + {% else %} +

    Il n'y a aucun organisme défini.

    + {% endif %} +
    - {% include "agenda_culturel/navigation.html" with page_obj=page_obj %} -
    - -
    - - + {% include "agenda_culturel/navigation.html" with page_obj=page_obj %} + +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-activity.html b/src/agenda_culturel/templates/agenda_culturel/page-activity.html index 83d0fda..aa2652a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-activity.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-activity.html @@ -1,39 +1,35 @@ {% extends "agenda_culturel/page-admin.html" %} - {% load utils_extra %} -{% block title %}{% block og_title %}Activité récente{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Activité récente{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - - {% block content %} -
    -
    -
    +
    +
    +

    Activité récente

    -
    - -
    +
    +

    Activité des {{ daily_modifications|length }} derniers jours

    {% include "agenda_culturel/recent-activity-inc.html" with modifications=daily_modifications %} -
    - -
    +
    +

    Activité des semaines précédentes

    {% include "agenda_culturel/recent-activity-inc.html" with modifications=weekly_modifications %} +
    - -
    - -{% include "agenda_culturel/side-nav.html" with current="activite" %} -
    - + {% include "agenda_culturel/side-nav.html" with current="activite" %} + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-admin.html b/src/agenda_culturel/templates/agenda_culturel/page-admin.html index 38a4487..574c94e 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-admin.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-admin.html @@ -1,3 +1,4 @@ {% extends "agenda_culturel/page.html" %} - -{% block configurer-menu %}{% block configurer-bouton %}{% endblock %}{% endblock %} +{% block configurer-menu %} + {% block configurer-bouton %}{% endblock %} +{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-event.html b/src/agenda_culturel/templates/agenda_culturel/page-event.html index 205dc07..f41af36 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-event.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-event.html @@ -1,146 +1,211 @@ {% extends "agenda_culturel/page.html" %} - {% load cat_extra %} {% load utils_extra %} {% load event_extra %} {% load cache %} - - -{% block title %}{% block og_title %}{{ event.title }}{% endblock %}{% endblock %} -{% block og_image %}{% if event.has_image_url %}{{ event|get_image_uri:request }}{% else %}{{ block.super }}{% endif %}{% endblock %} -{% block og_description %}{% if event.description %}{{ event.description |truncatewords:20 }}{% else %}{{ block.super }}{% endif %}{% endblock %} - -{% block entete_header %} - {% css_categories %} +{% block title %} + {% block og_title %}{{ event.title }}{% endblock %} +{% endblock %} +{% block og_image %} + {% if event.has_image_url %} + {{ event|get_image_uri:request }} + {% else %} + {{ block.super }} + {% endif %} +{% endblock %} +{% block description %} + {% block og_description %} + {% if event.description %} + {{ event.description |truncatewords:20 }} + {% else %} + {{ block.super }} + {% endif %} + {% endblock %} +{% endblock %} +{% block entete_header %} + {% css_categories %} {% endblock %} - - {% block content %} - - - -
    +
    - {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} - {% cache cache_timeout event_body user.is_authenticated event %} - {% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %} - {% endcache %} + {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} + {% cache cache_timeout event_body user.is_authenticated event %} + {% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %} + {% endcache %} {% endwith %} - {% if user.is_authenticated %} -
    +
    -

    Chronologie

    +

    Chronologie

    {% for step in event.chronology %} - {% if step.is_date %} + {% if step.is_date %} - {% else %} + {% else %}
    -
    {{ step.timestamp }}
    -
    -
    Message{% if not step.data.closed %} (ouvert){% endif %}{% if step.data.related_event and event != step.data.related_event %} sur - une autre version{% endif %} : - {{ step.data.subject|truncatechars:20 }} - {% if step.data.user %} par {{ step.data.user }}{% else %}{% if step.data.name %} par {% if step.data.name %}{{ step.data.name }}{% if step.data.email %} ({{ step.data.email }}){% endif %}{% else %} {{ step.data.email }}{% endif %}{% endif %}{% endif %}
    -
    {{ step.data.message|safe }}
    - {% if step.data.comments %} -
    Commentaire : {{ step.data.comments }}
    +
    + {{ step.timestamp }} +
    +
    +
    + Message + {% if not step.data.closed %}(ouvert){% endif %} + + {% if step.data.related_event and event != step.data.related_event %} + sur + une autre version + {% endif %} +  : + {{ step.data.subject|truncatechars:20 }} + {% if step.data.user %} + par {{ step.data.user }} + {% else %} + {% if step.data.name %} + par + {% if step.data.name %} + {{ step.data.name }} + {% if step.data.email %}({{ step.data.email }}){% endif %} + {% else %} + {{ step.data.email }} + {% endif %} {% endif %} -
    + {% endif %} + +
    {{ step.data.message|safe }}
    + {% if step.data.comments %} +
    + Commentaire : {{ step.data.comments }} +
    + {% endif %} +
    - {% endif %} + {% endif %} {% endfor %} -
    {% csrf_token %} - {{ form.media }} - {{ form.as_p }} - + + {% csrf_token %} + {{ form.media }} + {{ form.as_p }} +
    - {% include "agenda_culturel/event-info-inc.html" with allbutdates=1 %} -
    +
    {% endif %} - -
    - - {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} +
    + {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} {% cache cache_timeout event_aside user.is_authenticated event %} - {% endcache %} - {% endwith %} - + {% endcache %} +{% endwith %}
    - - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-month.html b/src/agenda_culturel/templates/agenda_culturel/page-month.html index 2b2df6b..c055d47 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-month.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-month.html @@ -1,99 +1,113 @@ {% extends "agenda_culturel/page.html" %} - - {% load cat_extra %} {% load event_extra %} {% load utils_extra %} {% load static %} {% load cache %} - {% block entete_header %} - {% css_categories %} - + {% css_categories %} + +{% endblock %} +{% block title %} + {% block og_title %} + {% if category %}{{ category.name }} en{% endif %} + {{ calendar.firstdate | date:"F o" }} + {% endblock %} {% endblock %} - -{% block title %}{% block og_title %} -{% if category %}{{ category.name }} en{% endif %} -{{ calendar.firstdate | date:"F o" }} -{% endblock %}{% endblock %} - {% block navigation-menu %} -{% cache 90000 navigation_links_month user.is_authenticated calendar.firstdate category filter.get_url %} -{% navigation_links filter category %} + {% cache 90000 navigation_links_month user.is_authenticated calendar.firstdate category filter.get_url %} + {% navigation_links filter category %} {% endcache %} {% endblock %} - {% block when_parameters %}{{ filter.get_url }}{% endblock %} - - {% block content %} - - {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} - {% cache cache_timeout month user.is_authenticated calendar.firstdate category filter.get_url %} - - {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 %} - -
    -
    -

    {% if category %}{{ category.name }} en {% endif %}{{ calendar.firstdate | date:"F o" }}{% if filter.has_location %} à {{ filter.get_position }}{% endif %}

    -
    +
    {% if calendar.firstdate|shift_day:-1|not_before_first %} - {% if calendar.lastdate|not_after_last %} - {% if category %} - - {% else %} - - {% endif %} - {% endif %} - {% endif %} - -
    - {% for day in calendar.calendar_days_list %} - {% if forloop.counter0|divisibleby:7 %} - {% if not forloop.first %}
    {% endif %} + {% if calendar.lastdate|not_after_last %} {% if category %} - + {% else %} - + {% endif %} + {% endif %} {% endif %} - - - - {% with day.date|date:"Y-m-d" as daytag %} - {% with "date-"|add:daytag as daytag %} - -
    - {% if day.is_today %} - - {% endif %} - -

    {{ day.date | date:"l j" }} - - {% if day.events %} - -

    - - {% endwith %} - {% endwith %} - - {% endfor %} + {% endif %} +
    + {% endwith %} + {% endwith %} + {% endfor %} {% if calendar.lastdate|shift_day:+1|not_after_last %} - {% if calendar.lastdate|not_before_first %} - {% if category %} - - {% else %} - - {% endif %} - {% endif %} + {% if calendar.lastdate|not_before_first %} + {% if category %} + + {% else %} + + {% endif %} + {% endif %} {% endif %} - - - - {% cache 90000 footer_month user.is_authenticated calendar.firstdate category filter.get_url %} - {% endcache %} - + {% endcache %} {% endwith %} - - - {% endblock %} +{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-rimport.html b/src/agenda_culturel/templates/agenda_culturel/page-rimport.html index 34b3ba2..5190ab6 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-rimport.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-rimport.html @@ -1,70 +1,92 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Import récurrent #{{ object.pk }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Import récurrent #{{ object.pk }}{% endblock %} +{% endblock %} {% load cat_extra %} {% load utils_extra %} {% load tag_extra %} - {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    +
    -
    - - - -

    Import récurrent #{{ object.pk }}

    +
    + + +

    Import récurrent #{{ object.pk }}

    +
      +
    • + Nom : {{ object.name }} +
    • +
    • + Processeur : {{ object.processor }} +
    • +
    • + Téléchargeur : {{ object.downloader }} +
    • +
    • + Recurrence : {{ object.recurrence }} +
    • +
    • + Source : {{ object.source }} +
    • +
    • + Adresse naviguable : {{ object.browsable_url }} +
    • +
    • + Valeurs par défaut :
        -
      • Nom : {{ object.name }}
      • -
      • Processeur : {{ object.processor }}
      • -
      • Téléchargeur : {{ object.downloader }}
      • -
      • Recurrence : {{ object.recurrence }}
      • -
      • Source : {{ object.source }}
      • -
      • Adresse naviguable : {{ object.browsable_url }}
      • -
      • Valeurs par défaut : -
          -
        • Publié : {{ object.defaultPublished|yesno:"Oui,Non" }}
        • - {% if object.defaultLocation %}
        • Localisation{% if object.forceLocation %} (forcée){% endif %} : {{ object.defaultLocation }}
        • {% endif %} -
        • Catégorie : {{ object.defaultCategory }}
        • - {% if object.defaultOrganiser %}
        • Organisateur : {{ object.defaultOrganiser }}
        • {% endif %} -
        • Étiquettes : - {% for tag in object.defaultTags %} - {{ tag|tw_highlight }}{% if not forloop.last %}, {% endif %} - {% endfor %} -
        • -
        +
      • + Publié : {{ object.defaultPublished|yesno:"Oui,Non" }} +
      • + {% if object.defaultLocation %} +
      • + Localisation + {% if object.forceLocation %}(forcée){% endif %} +  : {{ object.defaultLocation }} +
      • + {% endif %} +
      • + Catégorie : {{ object.defaultCategory }}
      • -
      - + {% if object.defaultOrganiser %} +
    • + Organisateur : {{ object.defaultOrganiser }} +
    • + {% endif %} +
    • + Étiquettes : + {% for tag in object.defaultTags %} + {{ tag|tw_highlight }} + {% if not forloop.last %},{% endif %} + {% endfor %} +
    • +
    + +
    - {% include "agenda_culturel/batch-imports-inc.html" with objects=paginator_filter %} -
    - - {% include 'agenda_culturel/paginator.html' %} - + {% include "agenda_culturel/paginator.html" %}
    -
    - - - - {% include "agenda_culturel/side-nav.html" with current="rimports" %} -
    -{% endblock %} + + {% include "agenda_culturel/side-nav.html" with current="rimports" %} +
    + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-rimports-list.html b/src/agenda_culturel/templates/agenda_culturel/page-rimports-list.html index 24e8152..3ea6f10 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-rimports-list.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-rimports-list.html @@ -1,20 +1,26 @@ {% extends "agenda_culturel/page-single.html" %} {% load static %} - - {% block content %} -
    +{% block content %} +
    -

    {{ title }}

    +

    {{ title }}

    -
    deux pommes qui alunissent
    +
    + deux pommes qui alunissent +
    {% include "agenda_culturel/static_content.html" with name=static_content url_path=url_path %}
      - {% for rimport in rimports %} -
    • {{ rimport.name }} - {% if user.is_authenticated %}({{ rimport.nb_events }} événements importés){% else %}({{ rimport.nb_events }} événements importés){{% endif %}
    • - {% endfor %} + {% for rimport in rimports %} +
    • + {{ rimport.name }} + {% if user.is_authenticated %} + ({{ rimport.nb_events }} événements importés) + {% else %} + ({{ rimport.nb_events }} événements importés){ + {% endif %} +
    • + {% endfor %}
    -
    - - - {% endblock %} +
    +{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-single.html b/src/agenda_culturel/templates/agenda_culturel/page-single.html index 0f11315..f6c2f0a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-single.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-single.html @@ -1,31 +1,16 @@ {% extends "agenda_culturel/page.html" %} - - - {% load i18n %} - {% load static %} - {% load static_content_extra %} - - -{% block title %}{% block og_title %} -{{ title }} -{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}{{ title }}{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - - - {% block content %} - -
    +{% block content %} +
    -

    {{ title }}

    +

    {{ title }}

    {% include "agenda_culturel/static_content.html" with name=static_content url_path=url_path %} -
    - - - - - {% endblock %} +
    +{% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html b/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html index c152afc..7b4b12f 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html @@ -1,223 +1,280 @@ {% extends "agenda_culturel/page.html" %} - - {% load cache %} {% load cat_extra %} {% load event_extra %} {% load utils_extra %} {% load static %} {% load i18n %} - {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block navigation-menu %} -{% cache 90000 navigation_links_upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} -{% navigation_links filter category %} + {% cache 90000 navigation_links_upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} + {% navigation_links filter category %} {% endcache %} {% endblock %} - {% block when_parameters %}{{ filter.get_url }}{% endblock %} - {% block body-class %}a-venir{% endblock %} - - {% block content %} - - -
    +{% block content %} +
    {% cache 60000 upcoming_title user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} -

    {% block title %}{% block og_title %} - {% if category %}{{ category.name }}{% else %}Événements{% endif %} - {% if calendar.is_today %} - à venir - {% else %} - du {{ calendar.firstdate | date:"l j F Y" }} - {% if calendar.nb_days > 1 %} - et suivants - {% endif %} - {% endif %}{% if filter.has_location %} à {{ filter.get_position }}{% endif %} - {% endblock %}{% endblock %}

    - {% endcache %} - - {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} - {% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} - {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=1 %} - +
    +

    + {% block title %} + {% block og_title %} + {% if category %} + {{ category.name }} + {% else %} + Événements + {% endif %} + {% if calendar.is_today %} + à venir + {% else %} + du {{ calendar.firstdate | date:"l j F Y" }} + {% if calendar.nb_days > 1 %}et suivants{% endif %} + {% endif %} + {% if filter.has_location %}à {{ filter.get_position }}{% endif %} + {% endblock %} + {% endblock %} +

    +
    + {% endcache %} + {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} + {% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} + {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=1 %} -
    - -{% for cd in calendar.calendar_days_list %} -
    -
    - {% picto_from_name "chevrons-up" %} + {% if category %} + + {% picto_from_name "chevrons-left" %} + {% if calendar.nb_days == 1 %}{{ date_pred }}{% endif %} + + {% else %} + + {% picto_from_name "chevrons-left" %} + {% if calendar.nb_days == 1 %}{{ date_pred }}{% endif %} + + {% endif %} + {% if calendar.nb_days > 1 %} + {% for cd in calendar.calendar_days_list %} + {% if cd.is_today %} -
    - {% with cd.events|length as nb_events %} -

    Aujourd'hui {{ nb_events }} événement{{ nb_events|pluralize }} {% picto_from_name "calendar" %}

    - {% endwith %} -

    {{ cd.date|date:"l j F Y"|frdate }}

    -
    + Aujourd'hui {% else %} - {% if cd.is_tomorrow %} -
    -

    Demain {{ cd.events|length }} {% picto_from_name "calendar" %}

    -

    {{ cd.date|date:"l j F Y"|frdate }}

    -
    - {% else %} -

    {{ cd.date|date:"l j F Y"|frdate |capfirst }} {{ cd.events|length }} {% picto_from_name "calendar" %}

    - {% endif %} + {% if cd.is_tomorrow %} + Demain + {% else %} + {{ cd.date| date:"l j b"|capfirst }} + {% endif %} {% endif %} -
    - {% if cd.events|length > 0 %} + {% picto_from_name "chevrons-down" %} + {% endfor %} + {% else %} + {% if category %} + toute la semaine {% picto_from_name "chevrons-up" %} + {% else %} + toute la semaine {% picto_from_name "chevrons-up" %} + {% endif %} + {% endif %} + {% if category %} + + {% if calendar.nb_days == 1 %}{{ date_next }}{% endif %} + {% picto_from_name "chevrons-right" %} + + {% else %} + + {% if calendar.nb_days == 1 %}{{ date_next }}{% endif %} + {% picto_from_name "chevrons-right" %} + + {% endif %} + +
    + {% for cd in calendar.calendar_days_list %} +
    +
    + {% picto_from_name "chevrons-up" %} + {% if cd.is_today %} +
    + {% with cd.events|length as nb_events %} +

    + Aujourd'hui {{ nb_events }} événement{{ nb_events|pluralize }} {% picto_from_name "calendar" %} +

    + {% endwith %} +

    {{ cd.date|date:"l j F Y"|frdate }}

    +
    + {% else %} + {% if cd.is_tomorrow %} +
    +

    + Demain {{ cd.events|length }} {% picto_from_name "calendar" %} +

    +

    {{ cd.date|date:"l j F Y"|frdate }}

    +
    + {% else %} +

    + {{ cd.date|date:"l j F Y"|frdate |capfirst }} {{ cd.events|length }} {% picto_from_name "calendar" %} +

    + {% endif %} + {% endif %} +
    + {% if cd.events|length > 0 %}
    - {% for ti in cd.get_time_intervals %} + {% for ti in cd.get_time_intervals %} {% if ti.events|length > 0 %} -

    {{ ti.short_name }} {{ ti.events|length }} {% picto_from_name "chevrons-down" %}

    -
      +

      + {{ ti.short_name }} {{ ti.events|length }} {% picto_from_name "chevrons-down" %} +

      +
        {% for event in ti.events %} - {% if event.is_first_after_now %} -
      • {% now "H:i" %}
      • - {% endif %} -
      • {{ event.category | circle_cat:event.has_recurrences }} - {% if event.start_time %} - {{ event.start_time }} - {% endif %} - {{ event|picto_status }} {{ event.title|no_emoji }} {{ event|tw_badge }} + {% if event.is_first_after_now %} +
      • +
        +
        {% now "H:i" %}
        +
        +
      • + {% endif %} +
      • + {{ event.category | circle_cat:event.has_recurrences }} + {% if event.start_time %}{{ event.start_time }}{% endif %} + {{ event|picto_status }} {{ event.title|no_emoji }} {{ event|tw_badge }} +
      • {% endfor %} {% if forloop.last and cd.is_today_after_events %} -
      • {% now "H:i" %}
      • +
      • +
        +
        {% now "H:i" %}
        +
        +
        +
      • {% endif %} -
      +
    {% endif %} - {% endfor %} + {% endfor %}
    - {% else %} + {% else %} Aucun événement - {% endif %} + {% endif %}
    {% for ti in cd.get_time_intervals %} - {% if ti.events|length > 0 %} + {% if ti.events|length > 0 %}
    -
    - {% picto_from_name "chevron-up" %} -
    -

    {{ ti.name|capfirst }}

    -

    {{ ti.date| date:"l j F"|frdate }}

    -
    -
    - {% with indexti=cd.id %} - {% for event in ti.events %} - {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event filter=filter day=day indexti=indexti %} - {% endfor %} - {% endwith %} +
    + {% picto_from_name "chevron-up" %} +
    +

    {{ ti.name|capfirst }}

    +

    {{ ti.date| date:"l j F"|frdate }}

    +
    +
    + {% with indexti=cd.id %} + {% for event in ti.events %} + {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event filter=filter day=day indexti=indexti %} + {% endfor %} + {% endwith %}
    - {% endif %} - {% endfor %} - -{% endfor %} -
    -

    Voir aussi

    + {% endif %} + {% endfor %} + {% endfor %} +
    +
    +

    Voir aussi

    +
    {% if category %} - - {% else %} - - {% endif %} + {% picto_from_name "chevrons-left" %} - {% if calendar.nb_days == 1 %} - {{ date_pred }} - {% endif %} - - {% if calendar.today_in_calendar %} - {% if category %} - Aujourd'hui + {% if calendar.nb_days == 1 %}{{ date_pred }}{% endif %} + {% else %} - Aujourd'hui + + {% picto_from_name "chevrons-left" %} + {% if calendar.nb_days == 1 %}{{ date_pred }}{% endif %} + {% endif %} + {% if calendar.today_in_calendar %} + {% if category %} + Aujourd'hui + {% else %} + Aujourd'hui + {% endif %} {% endif %} {% if calendar.nb_days == 1 %} - {% if category %} - Autour du {{ day }} - {% else %} - Autour du {{ day }} - {% endif %} + {% if category %} + Autour du {{ day }} + {% else %} + Autour du {{ day }} + {% endif %} {% endif %} {% if category %} - Semaine du {{ calendar.firstdate }} - {{ calendar.firstdate | date:"F o" }} + Semaine du {{ calendar.firstdate }} + {{ calendar.firstdate | date:"F o" }} {% else %} - Semaine du {{ calendar.firstdate }} - {{ calendar.firstdate | date:"F o" }} + Semaine du {{ calendar.firstdate }} + {{ calendar.firstdate | date:"F o" }} {% endif %} {% if calendar.firstdate.month != calendar.lastdate.month %} - {% if category %} - {{ calendar.lastdate | date:"F o" }} - {% else %} - {{ calendar.lastdate | date:"F o" }} - {% endif %} + {% if category %} + {{ calendar.lastdate | date:"F o" }} + {% else %} + {{ calendar.lastdate | date:"F o" }} + {% endif %} {% endif %} - {% if category %} - Export ical {% picto_from_name "calendar" %} + Export ical {% picto_from_name "calendar" %} {% else %} - Export ical {% picto_from_name "calendar" %} + Export ical {% picto_from_name "calendar" %} {% endif %} - {% if category %} - - {% else %} - - {% endif %} - {% if calendar.nb_days == 1 %} - {{ date_next }} - {% endif %} + + {% if calendar.nb_days == 1 %}{{ date_next }}{% endif %} {% picto_from_name "chevrons-right" %} - - -
    - + + {% else %} + + {% if calendar.nb_days == 1 %}{{ date_next }}{% endif %} + {% picto_from_name "chevrons-right" %} + + {% endif %} +
    {% endcache %} {% endwith %} - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-week.html b/src/agenda_culturel/templates/agenda_culturel/page-week.html index 6295243..c038a8e 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-week.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-week.html @@ -1,94 +1,116 @@ {% extends "agenda_culturel/page.html" %} - - {% load cache %} {% load cat_extra %} {% load event_extra %} {% load utils_extra %} {% load static %} {% load tag_extra %} - {% block entete_header %} - {% css_categories %} - + {% css_categories %} + +{% endblock %} +{% block title %} + {% block og_title %} + {% if calendar.today_in_calendar %} + {% if category %} + {{ category.name }} + {% else %} + Sorties culturelles + {% endif %} + cette semaine à Clermont-Ferrand et aux environs + {% else %} + {% if category %} + {{ category.name }} la semaine + {% else %} + Semaine + {% endif %} + du {{ calendar.firstdate|date|frdate }} + {% endif %} + {% endblock %} {% endblock %} - -{% block title %}{% block og_title %}{% if calendar.today_in_calendar %}{% if category %}{{ category.name }}{% else %}Sorties culturelles{% endif %} cette semaine à Clermont-Ferrand et aux environs{% else %}{% if category %}{{ category.name }} la semaine{% else %}Semaine{% endif %} du {{ calendar.firstdate|date|frdate }}{% endif %}{% endblock %}{% endblock %} - - {% block navigation-menu %} -{% cache 90000 navigation_links_week user.is_authenticated calendar.firstdate category filter.get_url %} -{% navigation_links filter category %} + {% cache 90000 navigation_links_week user.is_authenticated calendar.firstdate category filter.get_url %} + {% navigation_links filter category %} {% endcache %} {% endblock %} - {% block when_parameters %}{{ filter.get_url }}{% endblock %} - - - {% block content %} - - - {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} - {% cache cache_timeout week user.is_authenticated calendar.firstdate category filter.get_url %} - {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 category=category %} - -
    -
    -

    +{% block content %} + {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} + {% cache cache_timeout week user.is_authenticated calendar.firstdate category filter.get_url %} + {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 category=category %} +
    +
    +
    +

    {% if calendar.today_in_calendar %} - {% if category %}{{ category.name }} cette semaine{% else %}Cette semaine{% endif %} + {% if category %} + {{ category.name }} cette semaine + {% else %} + Cette semaine + {% endif %} {% else %} - {% if category %}{{ category.name }} la {% endif %}semaine du {{ calendar.firstdate |date:"j F"|frdate }} - {% endif %}{% if filter.has_location %}à {{ filter.get_position }}{% endif %}

    -

    -
    -
    + + +
    {% if calendar.firstdate|shift_day:-1|not_before_first %} - {% if calendar.lastdate|not_after_last %} - {% if category %} - - {% else %} - + {% if calendar.lastdate|not_after_last %} + {% if category %} + + {% else %} + + {% endif %} + {% endif %} {% endif %} - {% endif %} - {% endif %} -
    - {% for day in calendar.calendar_days_list %} - - {% with day.date|date:"Y-m-d" as daytag %} - {% with "date-"|add:daytag as daytag %} - -
    - {% if day.is_today %} - - {% endif %} - -

    {{ day.date | date:"l j" }}

    - - {% if day.events %} -
      - {% for event in day.events %} - {% if event.is_first_after_now %} -
    • {% now "H:i" %}
    • - {% endif %} -
    • {{ event.category | circle_cat:event.has_recurrences }} - {% if event.start_day == day.date and event.start_time %} - {{ event.start_time }} - {% endif %} - {{ event|picto_status }} {{ event.title|no_emoji }} - {{ event|tw_badge }} - -
      - {% if event.has_image_url %} -
      - {% else %} -
      - {% endif %} -
      - -

      {{ event.category|small_cat_recurrent:event.has_recurrences }} {{ event|picto_status }} {{ event.title }} {{ event|picto_visibility:user.is_authenticated }}

      - -

      - {% picto_from_name "map-pin" %} - - {% if event.exact_location %} - {{ event.exact_location.name }}, {{ event.exact_location.city }} + + {% endif %} +

      +

      + {{ day.date | date:"l j" }} +

      +
      + {% if day.events %} +
        + {% for event in day.events %} + {% if event.is_first_after_now %} +
      • +
        +
        {% now "H:i" %}
        +
        +
        +
      • + {% endif %} +
      • + {{ event.category | circle_cat:event.has_recurrences }} + {% if event.start_day == day.date and event.start_time %}{{ event.start_time }}{% endif %} + {{ event|picto_status }} {{ event.title|no_emoji }} + {{ event|tw_badge }} + +
        +
        +
        + +

        + {{ event.category|small_cat_recurrent:event.has_recurrences }} {{ event|picto_status }} {{ event.title }} {{ event|picto_visibility:user.is_authenticated }} +

        +

        + {% picto_from_name "map-pin" %} + {% if event.exact_location %} + {{ event.exact_location.name }}, {{ event.exact_location.city }} + {% else %} + {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} + {{ event.location }} + {% else %} + {{ event.location }} + {% endif %} + {% endif %} +

        +

        + {% picto_from_name "calendar" %} + {% if event.end_day and event.end_day != event.start_day %} + du + {% else %} + le + {% endif %} + {{ event.start_day|date|frdate }} + {% if event.start_time %} + {% if not event.end_day or event.end_day == event.start_day %} + {% if event.end_time %} + de {% else %} - {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} - {{ event.location }} - {% else %} - {{ event.location }} - {% endif %} - {% endif %}

        -

        - {% picto_from_name "calendar" %} - {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %} - {{ event.start_day|date|frdate }} - {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %} - {{ event.start_time }} + à {% endif %} - {% if event.end_day and event.end_day != event.start_day %} - au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} - {% endif %} - {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %} -

        + {% endif %} + {{ event.start_time }} + {% endif %} + {% if event.end_day and event.end_day != event.start_day %} + au + {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} + {% endif %} + {% if event.end_time %} + {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} + {{ event.end_time }} + {% endif %} +

        -
        - -
        {{ event.description |linebreaks }}
        - - -

        - {% for tag in event.sorted_tags %} - {{ tag | tag_button }} - {% endfor %} -

        - -
        +
      +
      {{ event.description |linebreaks }}
      +

      + {% for tag in event.sorted_tags %}{{ tag | tag_button }}{% endfor %} +

      + -
      -
      -
    • - {% endfor %} - {% if day.is_today_after_events %} -
    • {% now "H:i" %}
    • - {% endif %} - -
    - {% endif %} - -
    - - {% endwith %} - {% endwith %} - - {% endfor %} + +
    + + + {% endfor %} + {% if day.is_today_after_events %} +
  • +
    +
    {% now "H:i" %}
    +
    +
    +
  • + {% endif %} + + + {% endif %} +
    + {% endwith %} + {% endwith %} + {% endfor %} {% if calendar.lastdate|shift_day:+1|not_after_last %} - {% if calendar.lastdate|not_before_first %} - {% if category %} - - {% else %} - - {% endif %} - {% endif %} - {% endif %} - - - - {% cache 90000 footer_week user.is_authenticated calendar.firstdate category filter.get_url %} - + {% endcache %} + {% endcache %} {% endwith %} - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/page.html b/src/agenda_culturel/templates/agenda_culturel/page.html index d00a5fd..924b5ad 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -1,177 +1,222 @@ - {% load event_extra %} - {% load cache %} - {% load messages_extra %} - {% load utils_extra %} - {% load duplicated_extra %} - {% load rimports_extra %} - {% load static %} - + {% load event_extra %} + {% load cache %} + {% load messages_extra %} + {% load utils_extra %} + {% load duplicated_extra %} + {% load rimports_extra %} + {% load static %} + - Pommes de lune — {% block title %}{% endblock %} - + Pommes de lune — + {% block title %}{% endblock %} + + - + + - {% load static %} - - - + + + - - - + {% if debug %} - + {% else %} - + {% endif %} - {% load compress %} - {% compress css %} - + {% endcompress %} - - {% block entete_header %} - {% endblock %} - - - + {% block entete_header %}{% endblock %} + +
    - +
    {% if messages %} {% for message in messages %} -

    {{ message }}

    +

    {{ message }}

    {% endfor %} {% endif %} - - {% block content %}{% endblock %} + {% block content %}{% endblock %}
    - -
    -
    - - -

    Aller à la date

    -
    -
    - {% csrf_token %} - - -
    - -
    +
    +
    + +

    Aller à la date

    +
    +
    + {% csrf_token %} + + +
    + +
    - - - - - + + diff --git a/src/agenda_culturel/templates/agenda_culturel/paginator.html b/src/agenda_culturel/templates/agenda_culturel/paginator.html index 045913d..c872109 100644 --- a/src/agenda_culturel/templates/agenda_culturel/paginator.html +++ b/src/agenda_culturel/templates/agenda_culturel/paginator.html @@ -1,13 +1,10 @@ {% if paginator_filter.has_previous %} -« premier -précédent + « premier + précédent {% endif %} - - -Page {{ paginator_filter.number }} sur {{ paginator_filter.paginator.num_pages }} - - +Page {{ paginator_filter.number }} sur {{ paginator_filter.paginator.num_pages }} {% if paginator_filter.has_next %} -suivant -dernier » + suivant + dernier » {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/paginator_filter.html b/src/agenda_culturel/templates/agenda_culturel/paginator_filter.html index 056a9d8..1b5da17 100644 --- a/src/agenda_culturel/templates/agenda_culturel/paginator_filter.html +++ b/src/agenda_culturel/templates/agenda_culturel/paginator_filter.html @@ -1,19 +1,15 @@ - {% if paginator_filter.paginator.num_pages != 1 %} - - {% if paginator_filter.has_previous %} - « premier - précédent - {% endif %} - - - Page {{ paginator_filter.number }} sur {{ paginator_filter.paginator.num_pages }} - - - {% if paginator_filter.has_next %} - suivant - dernier » - {% endif %} - - {% else %} - Page 1 sur 1 +{% if paginator_filter.paginator.num_pages != 1 %} + + {% if paginator_filter.has_previous %} + « premier + précédent {% endif %} + Page {{ paginator_filter.number }} sur {{ paginator_filter.paginator.num_pages }} + {% if paginator_filter.has_next %} + suivant + dernier » + {% endif %} + +{% else %} + Page 1 sur 1 +{% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/place_confirm_delete.html b/src/agenda_culturel/templates/agenda_culturel/place_confirm_delete.html index 478a58c..00451e7 100644 --- a/src/agenda_culturel/templates/agenda_culturel/place_confirm_delete.html +++ b/src/agenda_culturel/templates/agenda_culturel/place_confirm_delete.html @@ -1,33 +1,39 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Supprimer {{ object.name }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Supprimer {{ object.name }}{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - {% block content %} - -
    +
    -

    Suppression du lieu {{ object.name }}

    +

    Suppression du lieu {{ object.name }}

    {% with nb_events=object.nb_events %} - {% if nb_events > 0 %} -

    Attention : {{ nb_events }} événement{{ nb_events|pluralize }} - {% if nb_events > 1 %}sont enregistrés{% else %}est enregistré{% endif %} dans ce lieu. Après suppression du - lieu, les événements sont toujours présents, mais perdent leur localisation exacte. -

    - {% endif %} + {% if nb_events > 0 %} +

    + Attention : {{ nb_events }} événement{{ nb_events|pluralize }} + {% if nb_events > 1 %} + sont enregistrés + {% else %} + est enregistré + {% endif %} + dans ce lieu. Après suppression du + lieu, les événements sont toujours présents, mais perdent leur localisation exacte. +

    + {% endif %} {% endwith %} -

    Êtes-vous sûr·e de vouloir supprimer le lieu « {{ object.name }} ({{ object.pk }}) » situé à l'adresse {{ object.address }}, et de coordonnées {{ object.location }} ?

    - -
    {% csrf_token %} - - {{ form }} -
    - Annuler - -
    +

    + Êtes-vous sûr·e de vouloir supprimer le lieu « {{ object.name }} ({{ object.pk }}) » situé à l'adresse {{ object.address }}, et de coordonnées {{ object.location }} ? +

    + + {% csrf_token %} + {{ form }} +
    + Annuler + +
    -
    - +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/place_detail.html b/src/agenda_culturel/templates/agenda_culturel/place_detail.html index be672f3..8cd5a64 100644 --- a/src/agenda_culturel/templates/agenda_culturel/place_detail.html +++ b/src/agenda_culturel/templates/agenda_culturel/place_detail.html @@ -1,79 +1,85 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}{{ object.name }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}{{ object.name }}{% endblock %} +{% endblock %} {% load tag_extra %} {% load utils_extra %} {% load cat_extra %} {% load static %} {% load cache %} {% load l10n %} - {% block entete_header %} - {% css_categories %} - - - - + {% css_categories %} + + + + {% endblock %} - {% block fluid %}{% endblock %} - {% block body-class %}place{% endblock %} {% block content %} - -
    +
    - {% if perms.agenda_culturel.change_place %} + {% if perms.agenda_culturel.change_place %} < Tous les lieux - {% endif %} - {% if perms.agenda_culturel.change_place %} + {% endif %} + {% if perms.agenda_culturel.change_place %} - {% endif %} -

    {{ object.name }}

    + {% endif %} +

    {{ object.name }}

    -
    -
      -
    • Adresse : {{ object.address }}, {{ object.city }}
    • -
    • Coordonnée GPS : {{ object.location|tocoords }}
    • - {% with object.nb_events_future as nb %} - {% if nb > 0 %} -
    • {{ nb }} événement{{ nb|pluralize }} à venir
    • - {% else %} -
    • Aucun événement à venir
    • - {% endif %} - {% endwith %} -
    - - {% if object.description and not object.description|html_vide %} -

    Description du lieu

    - {{ object.description|safe }} +
    +
      +
    • + Adresse : {{ object.address }}, {{ object.city }} +
    • +
    • + {# djlint:off #} + Coordonnée GPS : {{ object.location|tocoords }} + {# djlint:on #} +
    • + {% with object.nb_events_future as nb %} + {% if nb > 0 %} +
    • {{ nb }} événement{{ nb|pluralize }} à venir
    • + {% else %} +
    • + Aucun événement à venir +
    • {% endif %} - - {% with object.organisation_set.all as organisations %} - {% if organisations|length == 1 %} -

      L'organisme {{ organisations.0 }} organise régulièrement des événements dans ce lieu.

      - {% endif %} - {% if organisations|length > 1 %} -

      Les organismes suivants utilisent régulièrement ce lieu :

      -
        - {% for o in organisations %} -
      • {{ o }}
      • - {% endfor %} -
      - {% endif %} - - {% endwith %} - - -
    -
    -
    - -

    Voir aussi les autres lieux

    -
    + +

    + Voir aussi les autres lieux +

    +
    {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} - {% cache cache_timeout place_list user.is_authenticated object page_obj.number past %} -
    + {% cache cache_timeout place_list user.is_authenticated object page_obj.number past %} + - {% if past %} -

    Événements passés

    - {% else %} -

    Événements à venir

    - {% endif %} - {% if object_list %} - +
    + {% if past %} +

    Événements passés

    + {% else %} +

    Événements à venir

    + {% endif %} + {% if object_list %} {% include "agenda_culturel/navigation.html" with page_obj=page_obj %} - {% for event in object_list %} - {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event day=0 no_location=1 %} + {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event day=0 no_location=1 %} {% endfor %} - {% include "agenda_culturel/navigation.html" with page_obj=page_obj %} - - {% endif %} + {% endif %} {% endcache %} - {% endwith %} -
    - - {% if user.is_authenticated %} - {% if object.aliases|length > 0 %} -

    Alias associés à ce lieu :

    -
      - {% for alias in object.aliases %} -
    • {{ alias }}
    • - {% endfor %} -
    - {% else %} -

    Ce lieu n'a pas d'alias défini

    - {% endif %} + {% endwith %} +
    + + {% if user.is_authenticated %} + {% if object.aliases|length > 0 %} +

    Alias associés à ce lieu :

    +
      + {% for alias in object.aliases %}
    • {{ alias }}
    • {% endfor %} +
    + {% else %} +

    + Ce lieu n'a pas d'alias défini +

    + {% endif %} {% endif %} - -
    +
    - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/place_form.html b/src/agenda_culturel/templates/agenda_culturel/place_form.html index 3e7e751..0d86ba9 100644 --- a/src/agenda_culturel/templates/agenda_culturel/place_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/place_form.html @@ -1,39 +1,60 @@ {% extends "agenda_culturel/page.html" %} {% load static %} - -{% block title %}{% block og_title %} -{% if form.instance.pk %}Modification{% else %}Création{% endif %} d'un lieu -{% endblock %}{% endblock %} -{% load cat_extra %} - -{% block entete_header %} - {% css_categories %} - - - - - {{form.media}} -{% endblock %} - - -{% block content %} - -

    {% if form.instance.pk %}Modification{% else %}Création{% endif %} d'un lieu

    -
    - {% if event %} -

    Création d'un lieu depuis l'événement « {{ event }} » (voir en bas de page le détail de l'événement). - {% if not form.instance.pk and event.location != "" %} - La forme libre du lieu est « {{ event.location }} ». Consultez google maps (dans un nouvel onglet) si nécesaire pour identifier l'adresse exacte.{% endif %}

    -

    Remarque : les champs ont été pré-remplis à partir de la description sous forme libre et n'est probablement pas parfaite.

    +{% block title %} + {% block og_title %} + {% if form.instance.pk %} + Modification + {% else %} + Création {% endif %} -
    {% csrf_token %} -
    - {{ form }} -
    -
    -

    Cliquez pour ajuster la position GPS

    - Verrouiller la position - + + + + {{ form.media }} +{% endblock %} +{% block content %} +

    + {% if form.instance.pk %} + Modification + {% else %} + Création + {% endif %} + d'un lieu +

    +
    + {% if event %} +

    + Création d'un lieu depuis l'événement « {{ event }} » (voir en bas de page le détail de l'événement). + {% if not form.instance.pk and event.location != "" %} + La forme libre du lieu est « {{ event.location }} ». Consultez google maps (dans un nouvel onglet) si nécesaire pour identifier l'adresse exacte. + {% endif %} +

    +

    + Remarque : les champs ont été pré-remplis à partir de la description sous forme libre et n'est probablement pas parfaite. +

    + {% endif %} + + {% csrf_token %} +
    + {{ form }} +
    +
    +

    Cliquez pour ajuster la position GPS

    + + Verrouiller la position + + -
    -
    -
    - Annuler - -
    - - {% if event %} + +
    +
    +
    + Annuler + +
    + + {% if event %}

    Détails de l'événement :

    {% include "agenda_culturel/single-event/event-single-inc.html" with event=event noedit=1 %} - {% endif %} + {% endif %}
    - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/place_list.html b/src/agenda_culturel/templates/agenda_culturel/place_list.html index ad40681..596c1fc 100644 --- a/src/agenda_culturel/templates/agenda_culturel/place_list.html +++ b/src/agenda_culturel/templates/agenda_culturel/place_list.html @@ -1,65 +1,76 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Lieux{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Lieux{% endblock %} +{% endblock %} {% load cache %} {% load utils_extra %} {% load static %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} - - - - - - + {% css_categories %} + + + + + + {% endblock %} - {% block fluid %}{% endblock %} - {% block content %} - - -
    +
    - {% if perms.agenda_culturel.change_place %} + {% if perms.agenda_culturel.change_place %} - {% endif %} -

    Les lieux

    + {% endif %} +

    Les lieux

    -
    - - -
    +
    +
    {% with cache_timeout=user.is_authenticated|yesno:"300,6000" %} - {% cache cache_timeout place_lists user.is_authenticated %} - - {% if object_list %} - {% for place in object_list %} -

    {{ place.name }}{% picto_from_name "map" %}

    -
      -
    • Adresse : {% if place.address %}{{ place.address }}, {% endif %}{{ place.city }}
    • -
    • Coordonnée GPS : {{ place.location }}
    • + {% cache cache_timeout place_lists user.is_authenticated %} + {% if object_list %} + {% for place in object_list %} +

      + {{ place.name }}{% picto_from_name "map" %} +

      +
        +
      • + Adresse : + {% if place.address %}{{ place.address }},{% endif %} + {{ place.city }} +
      • +
      • + Coordonnée GPS : {{ place.location }} +
      • {% with place.nb_events_future as nb %} - {% if nb > 0 %} -
      • {{ nb }} événement{{ nb|pluralize }} à venir
      • - {% endif %} + {% if nb > 0 %}
      • {{ nb }} événement{{ nb|pluralize }} à venir
      • {% endif %} {% endwith %} -
      - {% endfor %} - {% else %} +
    + {% endfor %} + {% else %}

    Il n'y a aucun lieu défini.

    - {% endif %} + {% endif %} {% endcache %} - {% endwith %} -
    + {% endwith %}
    +
    - - - {% css_categories %} - - - - - - - - - - - - - +{% block title %} + {% block og_title %}Ajouter un lieu à {{ object.title }}{% endblock %} +{% endblock %} +{% load cat_extra %} +{% block entete_header %} + + {% css_categories %} + + + + + + + + + + {% endblock %} - {% block fluid %}{% endblock %} - {% block content %} - -{% load static_content_extra %} - -
    + {% load static_content_extra %} +
    -

    Ajouter un lieu à {{ object.title }} ({{ object.start_day }})

    +

    Ajouter un lieu à {{ object.title }} ({{ object.start_day }})

    - -

    Si le lieu est disponible dans la liste déroulante, sélectionne-le. S'il n'est pas disponible, utilise - l'entrée créer un lieu manquant puis valide, tu trouveras sur la page suivante le formulaire - de saisie de ce nouveau lieu.

    -
    {% csrf_token %} - {{ form.media }} - {{ form.as_p }} -
    - Annuler - -
    +

    + Si le lieu est disponible dans la liste déroulante, sélectionne-le. S'il n'est pas disponible, utilise + l'entrée créer un lieu manquant puis valide, tu trouveras sur la page suivante le formulaire + de saisie de ce nouveau lieu. +

    + + {% csrf_token %} + {{ form.media }} + {{ form.as_p }} +
    + Annuler + +

    Description du lieu :

    {% include "agenda_culturel/single-event/event-single-inc.html" with event=object noedit=1 %} -
    - - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/place_unknown_list.html b/src/agenda_culturel/templates/agenda_culturel/place_unknown_list.html index d3fbfe9..8dae71c 100644 --- a/src/agenda_culturel/templates/agenda_culturel/place_unknown_list.html +++ b/src/agenda_culturel/templates/agenda_culturel/place_unknown_list.html @@ -1,55 +1,51 @@ {% extends "agenda_culturel/page.html" %} {% load utils_extra %} - - -{% block title %}{% block og_title %}Événements sans lieu{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Événements sans lieu{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    -
    -
    +
    +
    +
    + {% for obj in object_list %} +
    {% include "agenda_culturel/single-event/event-in-unknown-place-list-inc.html" with event=obj %}
    + {% endfor %} +
    +
    - Page {{ page_obj.number }} sur {{ page_obj.paginator.num_pages }} - - - {% if page_obj.has_next %} + {% if page_obj.has_previous %} + « premier + précédent + {% endif %} + Page {{ page_obj.number }} sur {{ page_obj.paginator.num_pages }} + {% if page_obj.has_next %} suivant - dernier » - {% endif %} - -
    -
    - - -{% include "agenda_culturel/side-nav.html" with current="unknown_places" %} -
    - + dernier » + {% endif %} + + +
    + {% include "agenda_culturel/side-nav.html" with current="unknown_places" %} + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/recent-activity-inc.html b/src/agenda_culturel/templates/agenda_culturel/recent-activity-inc.html index d0f4599..2b72894 100644 --- a/src/agenda_culturel/templates/agenda_culturel/recent-activity-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/recent-activity-inc.html @@ -1,39 +1,76 @@ {% if modifications|length == 0 %} - Aucune activité dans la période choisie + Aucune activité dans la période choisie {% else %} -
    +
    - - - - - - - - - - - - {% for m in modifications %} - - - - - - - - - {% endfor %} - {% if next %} - - - - - - - + + + + + + + + + + + + {% for m in modifications %} + + + + + + + + + {% endfor %} + {% if next %} + + + + + + + {% endif %} - +
    {% if modifications.0.when.0 == modifications.0.when.1 %}Date{% else %}Semaine{% endif %}ModérationsCopies localesCréations manuellesImports manuelsImports automatiques
    {{ m.when.0|date:'D j b' }}{% if modifications.0.when.0 != modifications.0.when.1 %} - {{ m.when.1|date:'D j b' }}{% endif %}{% if forloop.first %}{% endif %}{{ m.nb_moderated }}{% if forloop.first %}{% endif %}{{ m.nb_local_copies }}{{ m.nb_manual_creation }}{% if forloop.first %}{% endif %}{{ m.nb_manual_import }}{% if forloop.first %}{% endif %}{% if forloop.first %}{% endif %}{{ m.nb_first_import }}{% if forloop.first %}{% endif %}
    ...............
    + {% if modifications.0.when.0 == modifications.0.when.1 %} + Date + {% else %} + Semaine + {% endif %} + ModérationsCopies localesCréations manuellesImports manuelsImports automatiques
    + {{ m.when.0|date:'D j b' }} + {% if modifications.0.when.0 != modifications.0.when.1 %}- {{ m.when.1|date:'D j b' }}{% endif %} + + {% if forloop.first %} + + {% endif %} + {{ m.nb_moderated }} + {% if forloop.first %}{% endif %} + {{ m.nb_local_copies }}{{ m.nb_manual_creation }} + {% if forloop.first %} + + {% endif %} + {{ m.nb_manual_import }} + {% if forloop.first %}{% endif %} + + {% if forloop.first %} + + {% endif %} + {{ m.nb_first_import }} + {% if forloop.first %}{% endif %} +
    + ... + + ... + + ... + + ... + + ... +
    -
    +
    {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/recent.html b/src/agenda_culturel/templates/agenda_culturel/recent.html index c71b5b0..3109152 100644 --- a/src/agenda_culturel/templates/agenda_culturel/recent.html +++ b/src/agenda_culturel/templates/agenda_culturel/recent.html @@ -1,54 +1,52 @@ {% extends "agenda_culturel/page-admin.html" %} - {% load utils_extra %} -{% block title %}{% block og_title %}Derniers événements{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Derniers événements{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - - {% block content %} -
    -
    -
    +
    +
    +
    -

    Derniers événements

    -
    - {{ filter.form.as_div }}
    -
    + {{ filter.form.as_div }} +
    + +
    {% if filter.form.import_sources.value %} - -
    + +
    {% endif %} - - {% include 'agenda_culturel/paginator_filter.html' %} -
    - -
    -{% for obj in paginator_filter %} - {% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %} -{% endfor %} -
    -
    - {% include 'agenda_culturel/paginator_filter.html' %} -
    -
    - -{% include "agenda_culturel/side-nav.html" with current="recent" %} -
    - + {% include "agenda_culturel/paginator_filter.html" %} +
    +
    + {% for obj in paginator_filter %} + {% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %} + {% endfor %} +
    +
    + {% include "agenda_culturel/paginator_filter.html" %} +
    +
    + {% include "agenda_culturel/side-nav.html" with current="recent" %} +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/recurrentimport_confirm_delete.html b/src/agenda_culturel/templates/agenda_culturel/recurrentimport_confirm_delete.html index b6d269f..78ae3fe 100644 --- a/src/agenda_culturel/templates/agenda_culturel/recurrentimport_confirm_delete.html +++ b/src/agenda_culturel/templates/agenda_culturel/recurrentimport_confirm_delete.html @@ -1,21 +1,22 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Supprimer {{ object.title }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Supprimer {{ object.title }}{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - {% block configurer-bouton %}{% endblock %} - {% block content %} - -

    Suppression de l'import récurrent {{ object.pk }}

    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir supprimer l'import récurrent « {{ object.name }} ({{ object.pk }}) » correspondant à la source {{ object.source }} ?

    +

    Suppression de l'import récurrent {{ object.pk }}

    + + {% csrf_token %} +

    + Êtes-vous sûr·e de vouloir supprimer l'import récurrent « {{ object.name }} ({{ object.pk }}) » correspondant à la source {{ object.source }} ? +

    {{ form }}
    - Annuler - + Annuler +
    -
    - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/recurrentimport_form.html b/src/agenda_culturel/templates/agenda_culturel/recurrentimport_form.html index 9e12b9f..9f48a82 100644 --- a/src/agenda_culturel/templates/agenda_culturel/recurrentimport_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/recurrentimport_form.html @@ -1,34 +1,34 @@ {% extends "agenda_culturel/page.html" %} {% load static %} - -{% block title %}{% block og_title %}Importation récurrente{% endblock %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block entete_header %} - - - - - - +{% block title %} + {% block og_title %}Importation récurrente{% endblock %} +{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block entete_header %} + + + + + {% endblock %} - {% block content %} - -

    Importation récurrente

    - -
    -
    {% csrf_token %} - {{ form.as_p }} -
    - Annuler - -
    +

    Importation récurrente

    +
    + + {% csrf_token %} + {{ form.as_p }} +
    + Annuler + +
    -
    - - - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/rimports-info-inc.html b/src/agenda_culturel/templates/agenda_culturel/rimports-info-inc.html index e62386d..a515f0a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/rimports-info-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/rimports-info-inc.html @@ -1,26 +1,29 @@ {% if status or all == 1 %} - tous : {{ nb_all }} + tous : {{ nb_all }} {% else %} - tous : {{ nb_all }} + tous : {{ nb_all }} {% endif %} -{% if nb_failed > 0 or all == 1 %}— - {% if not status or status != "failed" %} - échoués : {{ nb_failed }} - {% else %} - échoués : {{ nb_failed }} - {% endif %} +{% if nb_failed > 0 or all == 1 %} + — + {% if not status or status != "failed" %} + échoués : {{ nb_failed }} + {% else %} + échoués : {{ nb_failed }} + {% endif %} {% endif %} -{% if nb_canceled > 0 or all == 1 %}— - {% if not status or status != "canceled" %} - annulés : {{ nb_canceled }} - {% else %} +{% if nb_canceled > 0 or all == 1 %} + — + {% if not status or status != "canceled" %} + annulés : {{ nb_canceled }} + {% else %} annulés : {{ nb_canceled }} - {% endif %} + {% endif %} {% endif %} -{% if nb_running > 0 or all == 1 %}— - {% if not status or status != "running" %} +{% if nb_running > 0 or all == 1 %} + — + {% if not status or status != "running" %} en cours : {{ nb_running }} - {% else %} - en cours : {{ nb_running }} - {% endif %} + {% else %} + en cours : {{ nb_running }} + {% endif %} {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/rimports.html b/src/agenda_culturel/templates/agenda_culturel/rimports.html index 89e980a..8400c03 100644 --- a/src/agenda_culturel/templates/agenda_culturel/rimports.html +++ b/src/agenda_culturel/templates/agenda_culturel/rimports.html @@ -1,104 +1,121 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Importations récurrentes -{% if status %}{{ status }}{% endif %}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %} + Importations récurrentes + {% if status %}{{ status }}{% endif %} + {% endblock %} +{% endblock %} {% load utils_extra %} {% load rimports_extra %} {% load cat_extra %} {% load static %} - {% block entete_header %} - {% css_categories %} - + {% css_categories %} + {% endblock %} {% block configurer-bouton %}{% endblock %} - {% block sidemenu-bouton %} -
  • {% picto_from_name "chevron-up" %}
  • -
  • {% picto_from_name "chevron-down" %}
  • +
  • + {% picto_from_name "chevron-up" %} +
  • +
  • + {% picto_from_name "chevron-down" %} +
  • {% endblock %} - {% block content %} -
    -
    -
    +
    +
    +
    -

    Importations récurrentes {% if status %}{{ status }}{% endif %}

    -

    Résumé : {% include "agenda_culturel/rimports-info-inc.html" with all=0 %}

    - +

    + Importations récurrentes + {% if status %}{{ status }}{% endif %} +

    +

    + Résumé : + {% include "agenda_culturel/rimports-info-inc.html" with all=0 %} +

    Filtrer

    - {{ filter.form.as_div }}
    - + {{ filter.form.as_div }} +
    +
    - -
    - - + +
    - - - - - - - - + + + + + + + + - {% for obj in paginator_filter %} - - - - - - + + {{ obj.name }} + + + + + - {% endfor %} - -
    IdNomRécurrenceNb d'importsDernierActions
    IdNomRécurrenceNb d'importsDernierActions
    {{ obj.pk }}{{ obj.name }}{{ obj.get_recurrence_display }}{{ obj.nb_imports }} - {% if obj.nb_imports > 0 %} - {% with imp=obj.last_import %} - - {% if imp.status == "running" %}{{ imp.status }}{% else %}{{ imp.status }} {% if imp.status == "success" %} ({{ imp.nb_initial }}){% endif %}{% endif %} - - {% endwith %} - {% endif %} + {% for obj in paginator_filter %} +
    + {{ obj.pk }} -
    - {% if not obj.last_import or obj.last_import.status != "running" %} - Exécuter - {% else %} - Annuler - {% endif %} - Consulter - Modifier -
    -
    {{ obj.get_recurrence_display }}{{ obj.nb_imports }} + {% if obj.nb_imports > 0 %} + {% with imp=obj.last_import %} + + {% if imp.status == "running" %} + {{ imp.status }} + {% else %} + {{ imp.status }} + {% if imp.status == "success" %}({{ imp.nb_initial }}){% endif %} + {% endif %} + + {% endwith %} + {% endif %} + +
    + {% if not obj.last_import or obj.last_import.status != "running" %} + Exécuter + {% else %} + Annuler + {% endif %} + Consulter + Modifier +
    +
    - -
    - - {% include 'agenda_culturel/paginator.html' %} - -
    + {% endfor %} + + +
    + {% include "agenda_culturel/paginator.html" %} +
    - {% include "agenda_culturel/side-nav.html" with current="rimports" %}
    - - - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/run_all_fb_rimports_confirm.html b/src/agenda_culturel/templates/agenda_culturel/run_all_fb_rimports_confirm.html index 963de70..94e7829 100644 --- a/src/agenda_culturel/templates/agenda_culturel/run_all_fb_rimports_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/run_all_fb_rimports_confirm.html @@ -1,28 +1,26 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Lancer tous les imports facebook{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block content %} - -
    -
    -

    Lancement de tous les imports

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent depuis facebook ?

    - {{ form }} - - -
    -
    - +{% block title %} + {% block og_title %}Lancer tous les imports facebook{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block content %} +
    +
    +

    Lancement de tous les imports

    +
    +
    + {% csrf_token %} +

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent depuis facebook ?

    + {{ form }} + +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/run_all_rimports_confirm.html b/src/agenda_culturel/templates/agenda_culturel/run_all_rimports_confirm.html index 55c114e..d339e93 100644 --- a/src/agenda_culturel/templates/agenda_culturel/run_all_rimports_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/run_all_rimports_confirm.html @@ -1,28 +1,26 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Lancer tous les imports{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block content %} - -
    -
    -

    Lancement de tous les imports

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent ?

    - {{ form }} - - -
    -
    - +{% block title %} + {% block og_title %}Lancer tous les imports{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block content %} +
    +
    +

    Lancement de tous les imports

    +
    +
    + {% csrf_token %} +

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent ?

    + {{ form }} + +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/run_canceled_rimports_confirm.html b/src/agenda_culturel/templates/agenda_culturel/run_canceled_rimports_confirm.html index cae796f..299dd5b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/run_canceled_rimports_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/run_canceled_rimports_confirm.html @@ -1,28 +1,26 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Lancer tous les imports annulés{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block content %} - -
    -
    -

    Lancement des imports en annulés

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent ayant été annulés lors du dernier import ?

    - {{ form }} - - -
    -
    - +{% block title %} + {% block og_title %}Lancer tous les imports annulés{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block content %} +
    +
    +

    Lancement des imports en annulés

    +
    +
    + {% csrf_token %} +

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent ayant été annulés lors du dernier import ?

    + {{ form }} + +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/run_failed_rimports_confirm.html b/src/agenda_culturel/templates/agenda_culturel/run_failed_rimports_confirm.html index 45f2015..46e961f 100644 --- a/src/agenda_culturel/templates/agenda_culturel/run_failed_rimports_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/run_failed_rimports_confirm.html @@ -1,28 +1,26 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Lancer tous les imports échoués{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Lancer tous les imports échoués{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} {% block configurer-bouton %}{% endblock %} - - {% block content %} - -
    +
    -

    Lancement des imports en échec

    +

    Lancement des imports en échec

    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent ayant échoué lors du dernier import ?

    - {{ form }} - - + + {% csrf_token %} +

    Êtes-vous sûr·e de vouloir lancer tous les imports récurrent ayant échoué lors du dernier import ?

    + {{ form }} +
    -
    - +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/run_orphan_imports_confirm.html b/src/agenda_culturel/templates/agenda_culturel/run_orphan_imports_confirm.html index 4816654..15a98eb 100644 --- a/src/agenda_culturel/templates/agenda_culturel/run_orphan_imports_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/run_orphan_imports_confirm.html @@ -1,27 +1,27 @@ {% extends "agenda_culturel/page-admin.html" %} - - {% block fluid %}{% endblock %} - {% block content %} - -
    +
    -

    {% block title %}{% block og_title %}Mettre à jour les événements singletons{% endblock %}{% endblock %}

    +

    + {% block title %} + {% block og_title %}Mettre à jour les événements singletons{% endblock %} + {% endblock %} +

    -
    {% csrf_token %} -

    Il y a actuellement {{ nb_in_orphan_import }} événements singletons, c'est-à-dire importés depuis une source mais non inclus dans un import récurrent. - Souhaitez-vous les mettre à jour ? -

    - {{ form }} - - + + {% csrf_token %} +

    + Il y a actuellement {{ nb_in_orphan_import }} événements singletons, c'est-à-dire importés depuis une source mais non inclus dans un import récurrent. + Souhaitez-vous les mettre à jour ? +

    + {{ form }} +
    -
    - +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/run_rimport_confirm.html b/src/agenda_culturel/templates/agenda_culturel/run_rimport_confirm.html index e16c31d..670c13e 100644 --- a/src/agenda_culturel/templates/agenda_culturel/run_rimport_confirm.html +++ b/src/agenda_culturel/templates/agenda_culturel/run_rimport_confirm.html @@ -1,28 +1,28 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Lancer l'import #{{ object.pk }}{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block content %} - -
    -
    -

    Lancement de l'import #{{ object.pk }}

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir lancer l'import récurrent « {{ object.name }} ({{ object.pk }}) » correspondant à la source {{ object.source }} ?

    - {{ form }} - - -
    -
    - +{% block title %} + {% block og_title %}Lancer l'import #{{ object.pk }}{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block content %} +
    +
    +

    Lancement de l'import #{{ object.pk }}

    +
    +
    + {% csrf_token %} +

    + Êtes-vous sûr·e de vouloir lancer l'import récurrent « {{ object.name }} ({{ object.pk }}) » correspondant à la source {{ object.source }} ? +

    + {{ form }} + +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/search.html b/src/agenda_culturel/templates/agenda_culturel/search.html index f244e30..ea58770 100644 --- a/src/agenda_culturel/templates/agenda_culturel/search.html +++ b/src/agenda_culturel/templates/agenda_culturel/search.html @@ -1,116 +1,104 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Rechercher un événement{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Rechercher un événement{% endblock %} +{% endblock %} {% load utils_extra %} {% load tag_extra %} - {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} +{% endblock %} +{% block rechercher-bouton %} + {% block rechercher-menu %}{% endblock %} {% endblock %} - -{% block rechercher-bouton %}{% block rechercher-menu %}{% endblock %}{% endblock %} - {% block fluid %}{% endblock %} {% block content %} - - - {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/set_duplicate.html b/src/agenda_culturel/templates/agenda_culturel/set_duplicate.html index db036e4..ff6667e 100644 --- a/src/agenda_culturel/templates/agenda_culturel/set_duplicate.html +++ b/src/agenda_culturel/templates/agenda_culturel/set_duplicate.html @@ -1,29 +1,41 @@ {% extends "agenda_culturel/page.html" %} - {% load utils_extra %} {% load event_extra %} - -{% block title %}{% block og_title %}{% if user.is_authenticated %}Marquer comme doublon{% else %}Signaler comme doublon{% endif %}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %} + {% if user.is_authenticated %} + Marquer comme doublon + {% else %} + Signaler comme doublon + {% endif %} + {% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block content %} -
    +
    -

    {% if user.is_authenticated %}Marquer comme doublon{% else %}Signaler comme doublon{% endif %}

    -

    De quel événement listé ci-dessous l'événement sélectionné est-il un doublon ?

    - -
    {% csrf_token %} - {{ form.as_p }} -
    - Annuler - -
    -
    +

    + {% if user.is_authenticated %} + Marquer comme doublon + {% else %} + Signaler comme doublon + {% endif %} +

    +

    De quel événement listé ci-dessous l'événement sélectionné est-il un doublon ?

    +
    + {% csrf_token %} + {{ form.as_p }} +
    + Annuler + +
    +
    {% include "agenda_culturel/single-event/event-single-inc.html" with event=event %} -
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/side-nav.html b/src/agenda_culturel/templates/agenda_culturel/side-nav.html index 12bded6..667e382 100644 --- a/src/agenda_culturel/templates/agenda_culturel/side-nav.html +++ b/src/agenda_culturel/templates/agenda_culturel/side-nav.html @@ -3,82 +3,126 @@ {% load duplicated_extra %} {% load utils_extra %} diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html index 5d95403..e92a4e3 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html @@ -3,115 +3,123 @@ {% load utils_extra %} {% load event_extra %} {% load tag_extra %} - -
    -
    - {% if day == 0 %} -
    - {% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %} -
    - {% else %} - {% if event|can_show_start_time:day %} - {% if event.start_time %} -
    - {{ event.start_time }} -
    - {% endif %} - {% endif %} - {% if event|can_show_end_time:day %} - {% if event.end_time %} -
    - jusqu'à {{ event.end_time }} -
    - {% endif %} - {% endif %} +
    +
    + {% if day == 0 %} +
    {% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %}
    + {% else %} + {% if event|can_show_start_time:day %} + {% if event.start_time %} +
    + {{ event.start_time }} +
    {% endif %} -
    - {{ event.category | small_cat_recurrent:event.has_recurrences }} - - {% if event.location or event.exact_location %}
    {% endif %} -

    - {{ event|picto_status }} - {{ event.title }} - {{ event|picto_visibility:user.is_authenticated }} -

    - {% if event.location or event.exact_location %} - {% if not no_location %} -
    - {% picto_from_name "map-pin" %} - - {% if event.exact_location %} - {{ event.exact_location.name }}, {{ event.exact_location.city }} - {% else %} - {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} - {{ event.location }} - {% else %} - {{ event.location }} - {% endif %} - {% endif %} -
    - {% endif %} -
    + {% endif %} + {% if event|can_show_end_time:day %} + {% if event.end_time %} +
    + jusqu'à {{ event.end_time }} +
    + {% endif %} + {% endif %} {% endif %} - - - - {% if event|need_complete_display:True %}

    - {% picto_from_name "calendar" %} - - {% if event.end_day and event.end_day != event.start_day %}Cet événement dure du {% else %}Cet événement a lieu le{% endif %} - {{ event.start_day|date|frdate }} - {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %} - {{ event.start_time }} +

    + {{ event.category | small_cat_recurrent:event.has_recurrences }} + {% if event.location or event.exact_location %}
    {% endif %} +

    + {{ event|picto_status }} + {{ event.title }} + {{ event|picto_visibility:user.is_authenticated }} +

    + {% if event.location or event.exact_location %} + {% if not no_location %} +
    + {% picto_from_name "map-pin" %} + {% if event.exact_location %} + {{ event.exact_location.name }}, {{ event.exact_location.city }} + {% else %} + {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} + {{ event.location }} + {% else %} + {{ event.location }} {% endif %} - {% if event.end_day and event.end_day != event.start_day %} - au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} + {% endif %} +
    + {% endif %} +
    + {% endif %} + {% if event|need_complete_display:True %} +

    + {% picto_from_name "calendar" %} + + {% if event.end_day and event.end_day != event.start_day %} + Cet événement dure du + {% else %} + Cet événement a lieu le + {% endif %} + {{ event.start_day|date|frdate }} + {% if event.start_time %} + {% if not event.end_day or event.end_day == event.start_day %} + {% if event.end_time %} + de + {% else %} + à {% endif %} - {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %} -

    - {% endif %} -
    -

    - {% for tag in event.sorted_tags %} - {{ tag|tw_highlight }} - {% endfor %} -

    - - {% if event.has_recurrences %} -
    + {% endif %} +
    +

    + {% for tag in event.sorted_tags %} + {{ tag|tw_highlight }} + {% endfor %} +

    + {% if event.has_recurrences %} + - {% endif %} -
    + {{ r.to_text }} + {% if not forloop.first %},{% endif %} + {% endfor %} + , depuis le {{ event.recurrences.dtstart.date }} +

    + {% endif %} +
    - -
    - {% if perms.agenda_culturel.change_event %} - {% include "agenda_culturel/edit-buttons-inc.html" with event=event details=0 %} - {% endif %} -
    -
    - -
    -
    - {{ event.description |linebreaks2 | truncatewords:60 }} -
    - +
    + {% if perms.agenda_culturel.change_event %} + {% include "agenda_culturel/edit-buttons-inc.html" with event=event details=0 %} + {% endif %}
    - - {% if event.image or event.local_image %} +
    +
    +
    {{ event.description |linebreaks2 | truncatewords:60 }}
    + +
    + {% if event.image or event.local_image %}
    -
    - {{ event.image_alt }} -
    +
    + {{ event.image_alt }} +
    -
    - {% endif %} - +
    + {% endif %}
    diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html index 0dda5cd..b9b5553 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html @@ -2,74 +2,105 @@ {% load cat_extra %} {% load tag_extra %} {% load event_extra %} -
    -

    {{ event.category | small_cat_recurrent:event.has_recurrences }} - {{ event|picto_status }} - {% if event.title_hl %}{{ event.title_hl | safe }}{% else %}{{ event.title }}{% endif %} - {{ event|picto_visibility:user.is_authenticated }} -

    - -
    - {% if event.has_recurrences %} - +
    +

    + {{ event.category | small_cat_recurrent:event.has_recurrences }} + {{ event|picto_status }} + {% if event.title_hl %} + {{ event.title_hl | safe }} + {% else %} + {{ event.title }} + {% endif %} + + {{ event|picto_visibility:user.is_authenticated }} +

    + - {% endif %} -
    - {% if event.description_hl %}{{ event.description_hl | safe }} [...]{% else %}{% if event.description %}{{ event.description |truncatewords:60 }}{% else %}pas de description{% endif %}{% endif %} - -
    - {% if perms.agenda_culturel.change_event %} -
    -
    - {% include "agenda_culturel/event-date-info-inc.html" %} - {% include "agenda_culturel/edit-buttons-inc.html" with event=event details=0 %} -
    -
    + {% endif %} + {{ event.start_time }} + {% endif %} + {% if event.end_day and event.end_day != event.start_day %} + au + {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} + {% endif %} + {% if event.end_time %} + {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} + {{ event.end_time }} + {% endif %} +

    + +
    +{% if event.has_recurrences %} + +{% endif %} +{% if event.tags %} + +{% endif %} +
    + {% if event.description_hl %} + {{ event.description_hl | safe }} [...] + {% else %} + {% if event.description %} + {{ event.description |truncatewords:60 }} + {% else %} + pas de description + {% endif %} + {% endif %} +
    +{% if perms.agenda_culturel.change_event %} +
    +
    + {% include "agenda_culturel/event-date-info-inc.html" %} + {% include "agenda_culturel/edit-buttons-inc.html" with event=event details=0 %} +
    +
    +{% endif %}
    diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html index 89c0132..9d854d4 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html @@ -2,70 +2,90 @@ {% load cat_extra %} {% load event_extra %} {% load tag_extra %} -
    -
    - +
    + - - -

    {{ event.category | small_cat_recurrent:event.has_recurrences }} +

    +

    + {{ event.category | small_cat_recurrent:event.has_recurrences }} {{ event|picto_status }} - - {{ event.title }} - {{ event|picto_visibility:user.is_authenticated }}

    - - {% picto_from_name "map-pin" %} - - {% if event.exact_location %} - {{ event.exact_location.name }}, {{ event.exact_location.city }} - {% else %} - {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} - {{ event.location }} - {% else %} - {{ event.location }} - {% endif %} - {% endif %} - -

    {% picto_from_name "calendar" %} - {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %} - {{ event.start_day|date|frdate }} - {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %} - {{ event.start_time }} - {% endif %} - {% if event.end_day and event.end_day != event.start_day %} - au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} - {% endif %} - {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %} - {% if event.has_recurrences %} -

    - {% picto_from_name "repeat" %} - - {% for r in event.recurrences.rrules %} - {{ r.to_text }}{% if not forloop.first %}, {% endif %}{% endfor %}, depuis le - {% if event.recurrences.dtstart.date %} - {{ event.recurrences.dtstart.date }} - {% else %} - {{ event.start_day }} - {% endif %} -

    + {{ event.title }} + {{ event|picto_visibility:user.is_authenticated }} + +

    + {% picto_from_name "map-pin" %} + {% if event.exact_location %} + {{ event.exact_location.name }}, {{ event.exact_location.city }} + {% else %} + {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} + {{ event.location }} + {% else %} + {{ event.location }} + {% endif %} {% endif %} - {% if event.tags and event.tags|length > 0 %} +

    +

    + {% picto_from_name "calendar" %} + {% if event.end_day and event.end_day != event.start_day %} + du + {% else %} + le + {% endif %} + {{ event.start_day|date|frdate }} + {% if event.start_time %} + {% if not event.end_day or event.end_day == event.start_day %} + {% if event.end_time %} + de + {% else %} + à + {% endif %} + {% endif %} + {{ event.start_time }} + {% endif %} + {% if event.end_day and event.end_day != event.start_day %} + au + {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} + {% endif %} + {% if event.end_time %} + {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} + {{ event.end_time }} + {% endif %} +

    + {% if event.has_recurrences %}

    - {% picto_from_name "tag" %} - {% for tag in event.sorted_tags %} - {{ tag|tw_highlight }} - {% if not forloop.last %}, {% endif %} - {% endfor %} + {% picto_from_name "repeat" %} + + {% for r in event.recurrences.rrules %} + {{ r.to_text }} + {% if not forloop.first %},{% endif %} + {% endfor %} + , depuis le + {% if event.recurrences.dtstart.date %} + {{ event.recurrences.dtstart.date }} + {% else %} + {{ event.start_day }} + {% endif %}

    - {% endif %} + {% endif %} + {% if event.tags and event.tags|length > 0 %} +

    + {% picto_from_name "tag" %} + {% for tag in event.sorted_tags %} + {{ tag|tw_highlight }} + {% if not forloop.last %},{% endif %} + {% endfor %} +

    + {% endif %}
    - {% if event.description %}{{ event.description |truncatewords:60 }}{% else %}pas de description{% endif %} - -
    + {% if event.description %} + {{ event.description |truncatewords:60 }} + {% else %} + pas de description + {% endif %} +
    - {% include "agenda_culturel/event-date-info-inc.html" %} + {% include "agenda_culturel/event-date-info-inc.html" %}
    diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html index 8f71169..27e49bc 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html @@ -3,172 +3,222 @@ {% load utils_extra %} {% load event_extra %} {% load tag_extra %} - - {% if user.is_authenticated %} - -{% if event.other_versions %} + {% if event.other_versions %} {% with poss_dup=event.get_other_versions %} - {% if poss_dup|length > 0 and event.masked %} + {% if poss_dup|length > 0 and event.masked %}
    - {% if event.other_versions.representative %} - {% if event.pure_import %}Cette version de l'événement est fidèle à la source, mais l'événement existe en{% else %} - Cette version de l'événement existe en - {% endif %} - en plusieurs versions.
    - {% if event == event.other_versions.get_one_event %} - Tu consultes la version mise en avant. - {% else %} - Tu peux consulter la version mise en avant. - {% endif%} + {% if event.other_versions.representative %} + {% if event.pure_import %} + Cette version de l'événement est fidèle à la source, mais l'événement existe en {% else %} - Cet événement existe en plusieurs versions, et aucune n'a encore été choisie pour être mise en avant. + Cette version de l'événement existe en {% endif %} + en plusieurs versions. +
    + {% if event == event.other_versions.get_one_event %} + Tu consultes la version mise en avant. + {% else %} + Tu peux consulter la version mise en avant. + {% endif %} + {% else %} + Cet événement existe en plusieurs versions, et aucune n'a encore été choisie pour être mise en avant. + {% endif %}
    - {% endif %} + {% endif %} {% endwith %} -{% endif %} + {% endif %} {% else %} -{% if event.other_versions.representative and event.masked %} -
    - Cette version de l'événement n'est pas dans sa forme la plus avantageuse. - L'équipe de modération a préparé pour toi une version à jour. -
    + {% if event.other_versions.representative and event.masked %} +
    + Cette version de l'événement n'est pas dans sa forme la plus avantageuse. + L'équipe de modération a préparé pour toi une version à jour. +
    + {% endif %} {% endif %} -{% endif %} -
    -
    - {% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %} +
    + {% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %}
    - {{ event.category | small_cat_recurrent:event.has_recurrences }} - {% if h %}{% else %}

    {% endif %}{{ event|picto_status }} {% if permalink %}{% endif %}{{ event.title }}{% if permalink %}{% endif %} {{ event|picto_visibility:user.is_authenticated }}{% if h %}{% else %}

    {% endif %} -

    - {% picto_from_name "calendar" %} - {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %} - {{ event.start_day|date|frdate }} - {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %} - {{ event.start_time }} - {% endif %} - {% if event.end_day and event.end_day != event.start_day %} - au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} - {% endif %} - {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %} -

    - - - {% if event.exact_location %} -

    {% picto_from_name "map-pin" %} - {{ event.exact_location.name }}, {{ event.exact_location.city }}

    + {{ event.category | small_cat_recurrent:event.has_recurrences }} + {% if h %} + + {% else %} +

    + {% endif %} + {{ event|picto_status }} + {% if permalink %}{% endif %} + {{ event.title }} + {% if permalink %}{% endif %} + {{ event|picto_visibility:user.is_authenticated }} + {% if h %} + + {% else %} +

    + {% endif %} +

    + {% picto_from_name "calendar" %} + {% if event.end_day and event.end_day != event.start_day %} + du + {% else %} + le + {% endif %} + {{ event.start_day|date|frdate }} + {% if event.start_time %} + {% if not event.end_day or event.end_day == event.start_day %} + {% if event.end_time %} + de {% else %} - {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} -

    {% picto_from_name "map-pin" %} - {% if event.location %}{{ event.location }}{% else %}sans lieu{% endif %}

    - {% else %} - {% if event.location %}

    {% picto_from_name "map-pin" %} {{ event.location }}

    {% endif %} - {% endif %} + à {% endif %} + {% endif %} + {{ event.start_time }} + {% endif %} + {% if event.end_day and event.end_day != event.start_day %} + au + {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} + {% endif %} + {% if event.end_time %} + {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} + {{ event.end_time }} + {% endif %} +

    + {% if event.exact_location %} +

    + {% picto_from_name "map-pin" %} + {{ event.exact_location.name }}, {{ event.exact_location.city }}

    - - {% with event.get_shown_organisers as organisers %} + {% else %} + {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} +

    + {% picto_from_name "map-pin" %} + + {% if event.location %} + {{ event.location }} + {% else %} + sans lieu + {% endif %} + +

    + {% else %} + {% if event.location %} +

    {% picto_from_name "map-pin" %} {{ event.location }}

    + {% endif %} + {% endif %} + {% endif %} + {% with event.get_shown_organisers as organisers %} {% if organisers and organisers|length > 0 %} -

    {% picto_from_name "users" %} organisé par - {% for o in organisers %} - {{ o }}{% if not forloop.last %}, {% endif %} - {% endfor %} -

    - {% endif %} - {% endwith %} - - {% if user.is_authenticated %} - {% if event.other_versions %} - {% with poss_dup=event.get_other_versions %} - {% if poss_dup|length > 0 and event.other_versions.representative and not event.masked %} -

    Cette version est celle mise en avant, cependant il en existe en plusieurs versions.

    - {% endif %} - {% endwith %} - {% endif %} - {% endif %} - - {% if perms.agenda_culturel.change_message %} - {% if event.message_set.all.count > 0 %} -

    Cet événement a été l'objet {% if event.message_set.all.count == 1 %}d'un message{% else %}de messages{% endif %} - {% for cm in event.message_set.all %} - le {{ cm.date.date }} à {{ cm.date.time }}{% if not forloop.last %}, {% endif %} +

    + {% picto_from_name "users" %} organisé par + {% for o in organisers %} + {{ o }} + {% if not forloop.last %},{% endif %} {% endfor %} -

    +

    {% endif %} - {% endif %} -
    -
    -
    - - - {% if event.has_image_url %} -
    - {{ event.image_alt }} -
    - {% endif %} - - {{ event.description |linebreaks | robust_urlize }} -
    - -
    -
    - -

    - {% for tag in event.sorted_tags %} - {{ tag|tw_highlight }} - {% endfor %} -

    - - - {% include "agenda_culturel/event-sources-inc.html" %} - - {% if event.exact_location and event.location %} - - {% endif %} - {% if event.has_recurrences %} - - {% endif %} - - {% include "agenda_culturel/event-date-info-inc.html" %} -
    - {% if not nobuttons %} -
    - {% if onlyedit %} - {% if event.pure_import %} - {% with event.get_local_version as local %} - {% if local %} - voir la version locale {% picto_from_name "eye" %} - {% else %} - modifier {% picto_from_name "edit-3" %} - {% endif %} - {% endwith %} - {% else %} - modifier {% picto_from_name "edit-3" %} - {% endif %} - - {% else %} - exporter ical {% picto_from_name "calendar" %} - {% if perms.agenda_culturel.change_event and not noedit %} - {% include "agenda_culturel/edit-buttons-inc.html" with event=event details=1 %} - {% endif %} + {% endwith %} + {% if user.is_authenticated %} + {% if event.other_versions %} + {% with poss_dup=event.get_other_versions %} + {% if poss_dup|length > 0 and event.other_versions.representative and not event.masked %} +

    + Cette version est celle mise en avant, cependant il en existe en plusieurs versions. +

    {% endif %} -
    + {% endwith %} {% endif %} -
    + {% endif %} + {% if perms.agenda_culturel.change_message %} + {% if event.message_set.all.count > 0 %} +

    + Cet événement a été l'objet + {% if event.message_set.all.count == 1 %} + d'un message + {% else %} + de messages + {% endif %} + {% for cm in event.message_set.all %} + le {{ cm.date.date }} à {{ cm.date.time }} + {% if not forloop.last %},{% endif %} + {% endfor %} +

    + {% endif %} + {% endif %} + +
    +
    + {% if event.has_image_url %} +
    + {{ event.image_alt }} +
    + {% endif %} + {{ event.description |linebreaks | robust_urlize }} +
    +
    +
    +

    + {% for tag in event.sorted_tags %} + {{ tag|tw_highlight }} + {% endfor %} +

    + {% include "agenda_culturel/event-sources-inc.html" %} + {% if event.exact_location and event.location %} + + {% endif %} + {% if event.has_recurrences %} + + {% endif %} + {% include "agenda_culturel/event-date-info-inc.html" %} +
    + {% if not nobuttons %} +
    + {% if onlyedit %} + {% if event.pure_import %} + {% with event.get_local_version as local %} + {% if local %} + voir la version locale {% picto_from_name "eye" %} + {% else %} + modifier {% picto_from_name "edit-3" %} + {% endif %} + {% endwith %} + {% else %} + modifier {% picto_from_name "edit-3" %} + {% endif %} + {% else %} + exporter ical {% picto_from_name "calendar" %} + {% if perms.agenda_culturel.change_event and not noedit %} + {% include "agenda_culturel/edit-buttons-inc.html" with event=event details=1 %} + {% endif %} + {% endif %} +
    + {% endif %} +
    diff --git a/src/agenda_culturel/templates/agenda_culturel/static_content.html b/src/agenda_culturel/templates/agenda_culturel/static_content.html index 4fd7f99..7c89185 100644 --- a/src/agenda_culturel/templates/agenda_culturel/static_content.html +++ b/src/agenda_culturel/templates/agenda_culturel/static_content.html @@ -1,14 +1,19 @@ {% load static_content_extra %} - {% get_static_content_by_name name as content %} {% if content %} - {% if user.is_authenticated %} - Modifier le texte - {% endif %} - {{ content.text|safe }} + {% if user.is_authenticated %} + Modifier le texte + {% endif %} + {{ content.text|safe }} {% else %} - {% if user.is_authenticated %} - Créer le texte -

    Le contenu statique {{ name }} n'a pas encore été défini.

    -{% endif %} + {% if user.is_authenticated %} + Créer le texte +

    + Le contenu statique {{ name }} n'a pas encore été défini. +

    + {% endif %} {% endif %} diff --git a/src/agenda_culturel/templates/agenda_culturel/staticcontent_form.html b/src/agenda_culturel/templates/agenda_culturel/staticcontent_form.html index 73a54ab..9edf827 100644 --- a/src/agenda_culturel/templates/agenda_culturel/staticcontent_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/staticcontent_form.html @@ -1,16 +1,15 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Modifier {{ object.name }}{% endblock %}{% endblock %} - - +{% block title %} + {% block og_title %}Modifier {{ object.name }}{% endblock %} +{% endblock %} {% block content %} - -

    Édition du contenu statique {{ object.name }}

    - -
    {% csrf_token %} +

    + Édition du contenu statique {{ object.name }} +

    + + {% csrf_token %} {{ form.as_p }} -
    -{{ form.media }} - + + {{ form.media }} {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/statistics.html b/src/agenda_culturel/templates/agenda_culturel/statistics.html index f526752..c1bbf1b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/statistics.html +++ b/src/agenda_culturel/templates/agenda_culturel/statistics.html @@ -1,56 +1,54 @@ {% extends "agenda_culturel/page.html" %} - {% load utils_extra %} {% load static %} - -{% block title %}{% block og_title %}Statistiques{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Statistiques{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} - - - - - - - + {% css_categories %} + + + + + + {% endblock %} - {% block content %} -
    -

    Statistiques

    +
    +
    +

    Statistiques

    +

    On retrouve sur cette page une synthèse des événements publiés sur l'agenda culturel pommes de lune.

    -

    Par date de l'événement

    Pour chaque date, on retrouve le nombre d'événements qui débutent à cette date (sauf événements récurrents).

    -
    +
    - -

    Par jour de création sur l'agenda

    -

    Pour chaque date, on retrouve le nombre d'événements qui ont été créé ce jour-là, par import automatique ou par création manuelle. - Ce nombre ne tient pas en compte les événements qui sont des doublons d'événements déjà importés, ni des événements que l'équipe de - modération a choisi de ne pas conserver. +

    + Pour chaque date, on retrouve le nombre d'événements qui ont été créé ce jour-là, par import automatique ou par création manuelle. + Ce nombre ne tient pas en compte les événements qui sont des doublons d'événements déjà importés, ni des événements que l'équipe de + modération a choisi de ne pas conserver.

    -
    +
    -

    Par ville

    Nombre d'événements référencés par ville.

      - {% for v in nb_by_city %} -
    • {{ v.city }} : {{ v.total }}
    • - {% endfor %} + {% for v in nb_by_city %} +
    • + {{ v.city }} : {{ v.total }} +
    • + {% endfor %}
    -
    - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/tag.html b/src/agenda_culturel/templates/agenda_culturel/tag.html index 3974c23..6feacf3 100644 --- a/src/agenda_culturel/templates/agenda_culturel/tag.html +++ b/src/agenda_culturel/templates/agenda_culturel/tag.html @@ -1,97 +1,102 @@ {% extends "agenda_culturel/page.html" %} - {% load tag_extra %} - -{% block title %}{% block og_title %}Étiquette {{ tag }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Étiquette {{ tag }}{% endblock %} +{% endblock %} {% load cat_extra %} {% load utils_extra %} - {% block fluid %}{% endblock %} - {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block body-class %}tag{% endblock %} - - {% block content %} -
    +
    - - < Toutes les étiquettes - -
    - {% if object %} - {% if perms.agenda_culturel.change_tag %} + < Toutes les étiquettes +
    + {% if object %} + {% if perms.agenda_culturel.change_tag %} Modifier {% picto_from_name "edit" %} - {% endif %} - {% if perms.agenda_culturel.delete_tag %} - Supprimer les informations {% picto_from_name "trash-2" %} - {% endif %} + {% endif %} + {% if perms.agenda_culturel.delete_tag %} + Supprimer les informations {% picto_from_name "trash-2" %} + {% endif %} {% else %} - {% if perms.agenda_culturel.add_tag %} + {% if perms.agenda_culturel.add_tag %} Renseigner {% picto_from_name "edit" %} + {% endif %} {% endif %} - {% endif %} - {% if perms.agenda_culturel.change_tag %} - Renommer {% picto_from_name "edit-3" %} - Supprimer {% picto_from_name "trash-2" %} - {% endif %} -
    -

    Étiquette {{ tag }}

    - {% if user.is_authenticated and object %} + {% if perms.agenda_culturel.change_tag %} + Renommer {% picto_from_name "edit-3" %} + Supprimer {% picto_from_name "trash-2" %} + {% endif %} +
    +

    + Étiquette {{ tag }} +

    + {% if user.is_authenticated and object %} {% if object.in_excluded_suggestions %} -

    Cette étiquette fait partie des étiquettes suggérées pour l'exclusion.

    +

    Cette étiquette fait partie des étiquettes suggérées pour l'exclusion.

    {% endif %} {% if object.in_included_suggestions %} -

    Cette étiquette fait partie des étiquettes suggérées pour l'inclusion.

    +

    Cette étiquette fait partie des étiquettes suggérées pour l'inclusion.

    {% endif %} {% if object.principal %} -

    Cette étiquette fait partie des étiquettes principales mises en avant.

    +

    Cette étiquette fait partie des étiquettes principales mises en avant.

    {% endif %} - {% endif %} -
    -
    - - -{% if object %} -

    {{ object.description|safe }}

    -

    {% if object.category %}Cette étiquette est une sous-catégorie de {{ object.category| small_cat:object.category.get_absolute_url }}{% endif %}

    -{% endif %} - -
    - {% if user.is_authenticated and rimports %} -

    Cette étiquette est ajoutée par défaut {% if rimports.count == 1 %}à l'import récurrent{% else %}aux imports récurrents :{% endif %} - {% for ri in rimports %} - {{ ri.name }}{% if not forloop.last %}, {% endif %} - {% endfor %}

    - {% endif %} - {% include 'agenda_culturel/paginator.html' %} -
    -
    - -
    -
    - {% if past %} - Voir les événements à venir - {% else %} - Voir les événements passés + {% endif %} +
    + + {% if object %} +

    {{ object.description|safe }}

    +

    + {% if object.category %} + Cette étiquette est une sous-catégorie de {{ object.category| small_cat:object.category.get_absolute_url }} {% endif %} -

    - -

    {% if past %}Événements passés{% else %}Événements à venir{% endif %}

    -
    -
    -{% for event in paginator_filter %} - {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event day=0 %} -{% endfor %} - -
    +

    + {% endif %}
    - {% include 'agenda_culturel/paginator.html' %} + {% if user.is_authenticated and rimports %} +

    + Cette étiquette est ajoutée par défaut + {% if rimports.count == 1 %} + à l'import récurrent + {% else %} + aux imports récurrents : + {% endif %} + {% for ri in rimports %} + {{ ri.name }} + {% if not forloop.last %},{% endif %} + {% endfor %} +

    + {% endif %} + {% include "agenda_culturel/paginator.html" %}
    -
    - +
    +
    +
    + {% if past %} + Voir les événements à venir + {% else %} + Voir les événements passés + {% endif %} +
    +

    + {% if past %} + Événements passés + {% else %} + Événements à venir + {% endif %} +

    +
    +
    + {% for event in paginator_filter %} + {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event day=0 %} + {% endfor %} +
    +
    + {% include "agenda_culturel/paginator.html" %} +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete.html b/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete.html index 0132a29..7e3e53f 100644 --- a/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete.html +++ b/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete.html @@ -1,21 +1,22 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Supprimer les informations de l'étiquette {{ object.name }}{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Supprimer les informations de l'étiquette {{ object.name }}{% endblock %} +{% endblock %} {% block fluid %}{% endblock %} - {% block configurer-bouton %}{% endblock %} - {% block content %} - -

    Supprimer les informations de l'étiquette {{ object.name }}

    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir supprimer les informations de l'étiquette « {{ object.name }} ({{ object.pk }}) » correspondant à la source {{ object.source }} ?

    +

    Supprimer les informations de l'étiquette {{ object.name }}

    + + {% csrf_token %} +

    + Êtes-vous sûr·e de vouloir supprimer les informations de l'étiquette « {{ object.name }} ({{ object.pk }}) » correspondant à la source {{ object.source }} ? +

    {{ form }}
    - Annuler - + Annuler +
    -
    - + {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete_by_name.html b/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete_by_name.html index 09b34f3..4a01b77 100644 --- a/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete_by_name.html +++ b/src/agenda_culturel/templates/agenda_culturel/tag_confirm_delete_by_name.html @@ -1,41 +1,50 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Suppression de l'étiquette {{ tag }}{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block configurer-bouton %}{% endblock %} - -{% block content %} - -
    -
    -

    Suppression de l'étiquette {{ yag }}

    -
    -
    {% csrf_token %} -

    Êtes-vous sûr·e de vouloir supprimer l'étiquette « {{ tag }} » ?

    - {% if nb > 0 %} -

    Remarquez qu'elle est associée à {{ nb }} événement{{ nb|pluralize }}, qui - {% if nb > 1 %} seront bien sûr conservés, mais perdront cette étiquette. - {% else %} sera bien sûr conservé, mais perdra cette étiquette. - {% endif %}

    - {% endif %} - {% if nbi > 0 %} -

    Remarquez qu'elle est associée à {{ nbi }} import{{ nbs|pluralize }} récurrent{{ nbs|pluralize }}, qui - {% if nbi > 1 %} seront bien sûr conservés, mais perdront cette étiquette. - {% else %} sera bien sûr conservé, mais perdra cette étiquette. - {% endif %}

    - {% endif %} - {% if obj %} -

    Différentes informations sont associées à cette étiquette (description, suggestion d'inclusion, etc) - seront également perdues lors de cette suppression.

    - {% endif %} - {{ form }} -
    - Annuler - -
    -
    -
    - +{% block title %} + {% block og_title %}Suppression de l'étiquette {{ tag }}{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block configurer-bouton %}{% endblock %} +{% block content %} +
    +
    +

    Suppression de l'étiquette {{ yag }}

    +
    +
    + {% csrf_token %} +

    Êtes-vous sûr·e de vouloir supprimer l'étiquette « {{ tag }} » ?

    + {% if nb > 0 %} +

    + Remarquez qu'elle est associée à {{ nb }} événement{{ nb|pluralize }}, qui + {% if nb > 1 %} + seront bien sûr conservés, mais perdront cette étiquette. + {% else %} + sera bien sûr conservé, mais perdra cette étiquette. + {% endif %} +

    + {% endif %} + {% if nbi > 0 %} +

    + Remarquez qu'elle est associée à {{ nbi }} import{{ nbs|pluralize }} récurrent{{ nbs|pluralize }}, qui + {% if nbi > 1 %} + seront bien sûr conservés, mais perdront cette étiquette. + {% else %} + sera bien sûr conservé, mais perdra cette étiquette. + {% endif %} +

    + {% endif %} + {% if obj %} +

    + Différentes informations sont associées à cette étiquette (description, suggestion d'inclusion, etc) + seront également perdues lors de cette suppression. +

    + {% endif %} + {{ form }} +
    + Annuler + +
    +
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/tag_form.html b/src/agenda_culturel/templates/agenda_culturel/tag_form.html index 4fe4906..93a65de 100644 --- a/src/agenda_culturel/templates/agenda_culturel/tag_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/tag_form.html @@ -1,29 +1,37 @@ {% extends "agenda_culturel/page-admin.html" %} {% load static %} - {% block entete_header %} - - - - + + + + +{% endblock %} +{% block title %} + {% block og_title %} + {% if form.name.value != None %} + Renseignement de l'étiquette {{ form.name.value }} + {% else %} + Création d'une étiquette + {% endif %} + {% endblock %} {% endblock %} - -{% block title %}{% block og_title %}{% if form.name.value != None %}Renseignement de l'étiquette {{ form.name.value }}{% else %}Création d'une étiquette{% endif %}{% endblock %}{% endblock %} - {% block fluid %}{% endblock %} - {% block content %} - -
    +
    -

    {% if form.name.value != None %}Renseignement de l'étiquette {{ form.name.value }}{% else %}Création d'une étiquette{% endif %}

    +

    + {% if form.name.value != None %} + Renseignement de l'étiquette {{ form.name.value }} + {% else %} + Création d'une étiquette + {% endif %} +

    - -
    {% csrf_token %} - {{ form.media }} - {{ form.as_p }} - + + {% csrf_token %} + {{ form.media }} + {{ form.as_p }} +
    -
    - +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/tag_rename_form.html b/src/agenda_culturel/templates/agenda_culturel/tag_rename_form.html index 1b9abe7..58110dd 100644 --- a/src/agenda_culturel/templates/agenda_culturel/tag_rename_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/tag_rename_form.html @@ -1,34 +1,33 @@ {% extends "agenda_culturel/page-admin.html" %} {% load static %} - {% block entete_header %} - - - - + + + + +{% endblock %} +{% block title %} + {% block og_title %}Renommer l'étiquette {{ tag }}{% endblock %} {% endblock %} - -{% block title %}{% block og_title %}Renommer l'étiquette {{ tag }}{% endblock %}{% endblock %} - {% block fluid %}{% endblock %} - {% block content %} - -
    +
    -

    Renommer l'étiquette {{ tag }}

    -

    En renommant l'étiquette {{ tag }}, vous remplacerez cette étiquette par la nouvelle pour tous les événements et tous les imports récurrents concernés.

    +

    + Renommer l'étiquette {{ tag }} +

    +

    + En renommant l'étiquette {{ tag }}, vous remplacerez cette étiquette par la nouvelle pour tous les événements et tous les imports récurrents concernés. +

    - - -
    {% csrf_token %} - {{ form.media }} - {{ form.as_p }} -
    - Annuler - -
    + + {% csrf_token %} + {{ form.media }} + {{ form.as_p }} +
    + Annuler + +
    -
    - +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/tags.html b/src/agenda_culturel/templates/agenda_culturel/tags.html index bc8ec0d..55abd06 100644 --- a/src/agenda_culturel/templates/agenda_culturel/tags.html +++ b/src/agenda_culturel/templates/agenda_culturel/tags.html @@ -1,62 +1,63 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Les étiquettes des événements{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Les étiquettes des événements{% endblock %} +{% endblock %} {% load cat_extra %} {% load utils_extra %} {% load tag_extra %} {% load cache %} - {% block fluid %}{% endblock %} - {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - - {% block content %} -{% with cache_timeout=user.is_authenticated|yesno:"30,600" %} -{% cache cache_timeout alltags %} - -
    -
    + {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} + {% cache cache_timeout alltags %} +
    +
    {% if user.is_authenticated %} - {% endif %} - -

    Les étiquettes des événements

    -
    - -{% if tags %} - {% for tag in tags %} -
    - -
    - {% if tag.obj %} - {% if not tag.obj.description|html_vide %}{{ tag.obj.description|safe }}{% endif %} - {% if tag.obj.principal or tag.obj.in_included_suggestions or tag.obj.in_excluded_suggestions %} -

    Cette étiquette - {% if tag.obj.principal %}est mise en avant parmi les étiquettes principales{% endif %}{% if tag.obj.principal and tag.obj.in_included_suggestions %}, - {% endif %}{% if tag.obj.in_included_suggestions %}fait partie des étiquettes suggérées à inclure{% endif %}{% if tag.obj.in_excluded_suggestions %}{% if tag.obj.in_included_suggestions or tag.obj.principal %} et - {% endif %}{% endif %}{% if tag.obj.in_excluded_suggestions %}fait partie des étiquettes suggérées à exclure{% endif %}.

    - - {% endif %} - {% else %} -

    -

    - {% endif %} -
    -
    - {% endfor %} - -{% else %} -

    Il n'y a aucune étiquette.

    -{% endif %} -
    - -{% endcache %} +

    Les étiquettes des événements

    +
    + {% if tags %} + {% for tag in tags %} +
    + +
    + {% if tag.obj %} + {% if not tag.obj.description|html_vide %}{{ tag.obj.description|safe }}{% endif %} + {% if tag.obj.principal or tag.obj.in_included_suggestions or tag.obj.in_excluded_suggestions %} +

    + Cette étiquette + {% if tag.obj.principal %}est mise en avant parmi les étiquettes principales{% endif %} + {% if tag.obj.principal and tag.obj.in_included_suggestions %},{% endif %} + {% if tag.obj.in_included_suggestions %}fait partie des étiquettes suggérées à inclure{% endif %} + {% if tag.obj.in_excluded_suggestions %} + {% if tag.obj.in_included_suggestions or tag.obj.principal %}et{% endif %} + {% endif %} + {% if tag.obj.in_excluded_suggestions %}fait partie des étiquettes suggérées à exclure{% endif %} + . +

    + {% endif %} + {% else %} +

    -

    + {% endif %} +
    +
    + {% endfor %} + {% else %} +

    + Il n'y a aucune étiquette. +

    + {% endif %} +
    + {% endcache %} {% endwith %} {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/thank_you.html b/src/agenda_culturel/templates/agenda_culturel/thank_you.html index 615e300..28629ed 100644 --- a/src/agenda_culturel/templates/agenda_culturel/thank_you.html +++ b/src/agenda_culturel/templates/agenda_culturel/thank_you.html @@ -1,31 +1,29 @@ {% extends "agenda_culturel/page.html" %} - {% load utils_extra %} {% load static %} - -{% block title %}{% block og_title %}Merci !{% endblock %}{% endblock %} -{% block og_image %}{% static 'images/merci.svg' %}{% endblock %} - - +{% block title %} + {% block og_title %}Merci !{% endblock %} +{% endblock %} +{% block og_image %} + {% static 'images/merci.svg' %} +{% endblock %} {% block fluid %}{% endblock %} - - {% block content %} - -
    +
    -

    Merci !

    - {% url 'thank_you' as local_url %} +

    Merci !

    + {% url 'thank_you' as local_url %}
    -
    quelques pommes et leur pépins
    -
    - {% include "agenda_culturel/static_content.html" with name="thank-you" url_path=local_url %} -
    +
    + quelques pommes et leur pépins +
    +
    {% include "agenda_culturel/static_content.html" with name="thank-you" url_path=local_url %}
    -
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/update_duplicate.html b/src/agenda_culturel/templates/agenda_culturel/update_duplicate.html index 38135d4..50c472b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/update_duplicate.html +++ b/src/agenda_culturel/templates/agenda_culturel/update_duplicate.html @@ -1,31 +1,32 @@ {% extends "agenda_culturel/page.html" %} - {% load utils_extra %} {% load event_extra %} - -{% block title %}{% block og_title %}Mise à jour par sélection de champs{% endblock %}{% endblock %} - +{% block title %} + {% block og_title %}Mise à jour par sélection de champs{% endblock %} +{% endblock %} {% load cat_extra %} {% block entete_header %} - {% css_categories %} + {% css_categories %} {% endblock %} - {% block content %} -
    +
    -

    Mise à jour par sélection de champs

    -

    Vous allez mettre à jour la version {{ event_id|int_to_abc }} en sélectionnant - pour chaque champ les valeurs des autres versions.

    -

    La version ainsi créée mise à jour deviendra la version représentative.

    - +

    Mise à jour par sélection de champs

    +

    + Vous allez mettre à jour la version {{ event_id|int_to_abc }} en sélectionnant + pour chaque champ les valeurs des autres versions. +

    +

    La version ainsi créée mise à jour deviendra la version représentative.

    - {% csrf_token %} - {{ form.as_grid }} -
    - Annuler - -
    + {% csrf_token %} + {{ form.as_grid }} +
    + Annuler + +
    -
    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/agenda_culturel/widgets/widget-tags.html b/src/agenda_culturel/templates/agenda_culturel/widgets/widget-tags.html index 2cdfa70..2567a33 100644 --- a/src/agenda_culturel/templates/agenda_culturel/widgets/widget-tags.html +++ b/src/agenda_culturel/templates/agenda_culturel/widgets/widget-tags.html @@ -1,22 +1,25 @@ {% load static %} {% load i18n %} - {% spaceless %} - {% endspaceless %} diff --git a/src/agenda_culturel/templates/agenda_culturel/widgets/widget-urls.html b/src/agenda_culturel/templates/agenda_culturel/widgets/widget-urls.html index ca9c742..fffbf5d 100644 --- a/src/agenda_culturel/templates/agenda_culturel/widgets/widget-urls.html +++ b/src/agenda_culturel/templates/agenda_culturel/widgets/widget-urls.html @@ -1,22 +1,25 @@ {% load static %} {% load i18n %} - {% spaceless %} - {% endspaceless %} diff --git a/src/agenda_culturel/templates/location_field/map_widget.html b/src/agenda_culturel/templates/location_field/map_widget.html index 1ab9dc2..b9fb2bb 100644 --- a/src/agenda_culturel/templates/location_field/map_widget.html +++ b/src/agenda_culturel/templates/location_field/map_widget.html @@ -1 +1 @@ -{{field_input}} +{{ field_input }} diff --git a/src/agenda_culturel/templates/page-erreur.html b/src/agenda_culturel/templates/page-erreur.html index 2f12fc0..5fde09f 100644 --- a/src/agenda_culturel/templates/page-erreur.html +++ b/src/agenda_culturel/templates/page-erreur.html @@ -1,32 +1,30 @@ {% extends "agenda_culturel/page.html" %} - - - {% load i18n %} - {% load static %} - {% load static_content_extra %} - - -{% block title %}{% block og_title %}Y'a un pépin ({{ error }}){% endblock %}{% endblock %} -{% block og_description %}On a rencontré un pépin en cherchant la page que tu as demandée !{% endblock %} -{% block og_image %}{% static 'images/pommes.svg' %}{% endblock %} - - {% block content %} - -
    +{% block title %} + {% block og_title %}Y'a un pépin ({{ error }}){% endblock %} +{% endblock %} +{% block description %} + {% block og_description %}On a rencontré un pépin en cherchant la page que tu as demandée !{% endblock %} +{% endblock %} +{% block og_image %} + {% static 'images/pommes.svg' %} +{% endblock %} +{% block content %} +
    -

    Y'a un pépin (erreur {{ error }})

    +

    Y'a un pépin (erreur {{ error }})

    -

    On a rencontré un pépin en cherchant la page que tu as demandée ! N'hésites pas à nous signaler - tout ça si tu penses qu'il y a un bug dans la compote.

    -
    quelques pommes et leur pépins
    +

    + On a rencontré un pépin en cherchant la page que tu as demandée ! N'hésites pas à nous signaler + tout ça si tu penses qu'il y a un bug dans la compote. +

    +
    + quelques pommes et leur pépins +
    -
    - - - - - {% endblock %} +
    +{% endblock %} diff --git a/src/agenda_culturel/templates/registration/login.html b/src/agenda_culturel/templates/registration/login.html index f42758d..3721d9c 100644 --- a/src/agenda_culturel/templates/registration/login.html +++ b/src/agenda_culturel/templates/registration/login.html @@ -1,42 +1,45 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Connexion{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block content %} -

    Connexion

    - -{% if form.errors %} -

    Vos identifiants sont incorrects. Veuillez réessayer.

    -{% endif %} - -{% if next %} -{% if user.is_authenticated %} -

    Vous n'avez pas l'autorisation d'accéder à cette page. - Pour y accéder, veuillez vous connecter avec un compte autorisé.

    -{% else %} -

    Veuillez vous identifier pour consulter cette page.

    -{% endif %} -{% else %} -

    Veuillez vous identifier pour consulter cette page.

    -{% endif %} - -
    -{% csrf_token %} - - - - - - - - - -
    {{ form.username.label_tag }}{{ form.username }}
    {{ form.password.label_tag }}{{ form.password }}
    - - -
    -

    Mot de passe oublié ? Réinitialiser son mot de passe

    - +{% block title %} + {% block og_title %}Connexion{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block content %} +

    Connexion

    + {% if form.errors %}

    Vos identifiants sont incorrects. Veuillez réessayer.

    {% endif %} + {% if next %} + {% if user.is_authenticated %} +

    + Vous n'avez pas l'autorisation d'accéder à cette page. + Pour y accéder, veuillez vous connecter avec un compte autorisé. +

    + {% else %} +

    Veuillez vous identifier pour consulter cette page.

    + {% endif %} + {% else %} +

    Veuillez vous identifier pour consulter cette page.

    + {% endif %} +
    + {% csrf_token %} + + + + + + + + + +
    {{ form.username.label_tag }} + {{ form.username }} +
    +
    {{ form.password.label_tag }} + {{ form.password }} +
    +
    + + +
    +

    + Mot de passe oublié ? Réinitialiser son mot de passe +

    {% endblock %} diff --git a/src/agenda_culturel/templates/registration/password_reset_complete.html b/src/agenda_culturel/templates/registration/password_reset_complete.html index f163c3c..2bbb78e 100644 --- a/src/agenda_culturel/templates/registration/password_reset_complete.html +++ b/src/agenda_culturel/templates/registration/password_reset_complete.html @@ -1,14 +1,16 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Nouveau mot de passe enregistré{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block content %} -
    -

    Nouveau mot de passe enregistré

    -

    Votre mot de passe a été modifié. Vous pouvez maintenant continuer et vous connecter.

    -

    Connexion

    - -
    +{% block title %} + {% block og_title %}Nouveau mot de passe enregistré{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block content %} +
    +
    +

    Nouveau mot de passe enregistré

    +
    +

    Votre mot de passe a été modifié. Vous pouvez maintenant continuer et vous connecter.

    +

    + Connexion +

    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/registration/password_reset_confirm.html b/src/agenda_culturel/templates/registration/password_reset_confirm.html index cbbb152..972b58d 100644 --- a/src/agenda_culturel/templates/registration/password_reset_confirm.html +++ b/src/agenda_culturel/templates/registration/password_reset_confirm.html @@ -1,46 +1,54 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Nouveau mot de passe{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block content %} - -
    - {% if validlink %} -
    -

    Définition d'un nouveau mot de passe

    -
    -

    Entrez votre mot de passe deux fois pour que nous vérifiions que vous l'avez - saisi correctement.

    -
    -
    - -
    - - - - - - - - - - - - - -
    {{ form.new_password1.errors }} - {{ form.new_password1 }}
    {{ form.new_password2.errors }} - {{ form.new_password2 }}
    -
    - {% else %} -
    -

    Réinitialisation de mot de passe échoué

    -
    -

    Le lien de réinitialisation de mot de passe était invalide, - possiblement parce qu'il a déjà été utilisé.

    -

    Veuillez demander une nouvelle réinitialisation.

    - {% endif %} -
    +{% block title %} + {% block og_title %}Nouveau mot de passe{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block content %} +
    + {% if validlink %} +
    +

    Définition d'un nouveau mot de passe

    +
    +

    + Entrez votre mot de passe deux fois pour que nous vérifiions que vous l'avez + saisi correctement. +

    +
    + + + + + + + + + + + + + + +
    + {{ form.new_password1.errors }} + + {{ form.new_password1 }}
    + {{ form.new_password2.errors }} + + {{ form.new_password2 }}
    + +
    +
    + {% else %} +
    +

    Réinitialisation de mot de passe échoué

    +
    +

    + Le lien de réinitialisation de mot de passe était invalide, + possiblement parce qu'il a déjà été utilisé. +

    +

    Veuillez demander une nouvelle réinitialisation.

    + {% endif %} +
    {% endblock %} diff --git a/src/agenda_culturel/templates/registration/password_reset_done.html b/src/agenda_culturel/templates/registration/password_reset_done.html index 31817ba..99257d4 100644 --- a/src/agenda_culturel/templates/registration/password_reset_done.html +++ b/src/agenda_culturel/templates/registration/password_reset_done.html @@ -1,16 +1,16 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Succès de la réinitialisation du mot de passe{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block content %} - -
    -

    Succès de la réinitialisation du mot de passe

    -

    Nous venons de vous envoyer un courrier électronique avec les instructions pour modifier - votre mot de passe. Vous devriez le recevoir très vite ! -

    -
    - +{% block title %} + {% block og_title %}Succès de la réinitialisation du mot de passe{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block content %} +
    +
    +

    Succès de la réinitialisation du mot de passe

    +
    +

    + Nous venons de vous envoyer un courrier électronique avec les instructions pour modifier + votre mot de passe. Vous devriez le recevoir très vite ! +

    +
    {% endblock %} diff --git a/src/agenda_culturel/templates/registration/password_reset_form.html b/src/agenda_culturel/templates/registration/password_reset_form.html index 0ce350b..2c538bd 100644 --- a/src/agenda_culturel/templates/registration/password_reset_form.html +++ b/src/agenda_culturel/templates/registration/password_reset_form.html @@ -1,20 +1,24 @@ {% extends "agenda_culturel/page.html" %} - -{% block title %}{% block og_title %}Réinitialisation du mot de passe{% endblock %}{% endblock %} - -{% block fluid %}{% endblock %} - -{% block content %} -
    -

    Réinitialisation du mot de passe

    -

    Indiquez votre adresse électronique, puis suivez les instructions de réinitialisation.

    - -
    -
    - -
    - {{ form.email.errors }} -

    {{ form.email }}

    -
    -
    +{% block title %} + {% block og_title %}Réinitialisation du mot de passe{% endblock %} +{% endblock %} +{% block fluid %}{% endblock %} +{% block content %} +
    +
    +

    Réinitialisation du mot de passe

    +
    +

    Indiquez votre adresse électronique, puis suivez les instructions de réinitialisation.

    +
    + + {{ form.email.errors }} +

    + + {{ form.email }} + +

    +
    +
    {% endblock %}