From 5dd1125a68947107dda80aa4954bae4b71eaf884 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Fri, 10 Nov 2023 22:45:17 +0100 Subject: [PATCH] Ajout d'une fonction de recherche (perfectible) --- .../locale/fr/LC_MESSAGES/django.po | 5 +- .../templates/agenda_culturel/page.html | 4 ++ .../templates/agenda_culturel/search.html | 57 +++++++++++++++++++ .../templatetags/event_extra.py | 9 +-- .../templatetags/utils_extra.py | 9 ++- src/agenda_culturel/urls.py | 3 +- src/agenda_culturel/views.py | 44 ++++++++++++++ 7 files changed, 121 insertions(+), 10 deletions(-) create mode 100644 src/agenda_culturel/templates/agenda_culturel/search.html diff --git a/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po b/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po index ddbffa9..74c274c 100644 --- a/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po +++ b/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po @@ -208,4 +208,7 @@ msgid "next month" msgstr "le mois prochain" msgid "Add another" -msgstr "Ajouter une autre" \ No newline at end of file +msgstr "Ajouter une autre" + +msgid "Search" +msgstr "Rechercher" \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page.html b/src/agenda_culturel/templates/agenda_culturel/page.html index 219548e..126e60b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -23,6 +23,7 @@ {% endblock %} {% load event_extra %} +{% load utils_extra %}