From c1c4eac14749a8ec4e77fa4e72be25ebb0b5252b Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 11 Nov 2023 14:41:12 +0100 Subject: [PATCH] =?UTF-8?q?On=20ajoute=20une=20page=20de=20mentions=20l?= =?UTF-8?q?=C3=A9gales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../locale/fr/LC_MESSAGES/django.po | 8 ++++- .../agenda_culturel/page-single.html | 29 +++++++++++++++++++ .../templates/agenda_culturel/page.html | 2 +- .../agenda_culturel/staticcontent_form.html | 2 +- src/agenda_culturel/urls.py | 5 ++-- src/agenda_culturel/views.py | 5 ++++ 6 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 src/agenda_culturel/templates/agenda_culturel/page-single.html diff --git a/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po b/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po index 74c274c..7a97c7b 100644 --- a/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po +++ b/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po @@ -211,4 +211,10 @@ msgid "Add another" msgstr "Ajouter une autre" msgid "Search" -msgstr "Rechercher" \ No newline at end of file +msgstr "Rechercher" + +msgid "Text as shown to the visitors" +msgstr "Text tel que présenté aux visiteureuses" + +msgid "Content" +msgstr "Contenu" \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page-single.html b/src/agenda_culturel/templates/agenda_culturel/page-single.html new file mode 100644 index 0000000..f1220a4 --- /dev/null +++ b/src/agenda_culturel/templates/agenda_culturel/page-single.html @@ -0,0 +1,29 @@ +{% extends "agenda_culturel/page.html" %} + + + +{% load i18n %} + +{% load static %} + +{% load static_content_extra %} + + +{% block title %} +{{ title }} +{% endblock %} + + + {% block content %} + +
+
+

{{ title }}

+
+ {% include "agenda_culturel/static_content.html" with name=static_content url_path=url_path %} +
+ + + + + {% endblock %} \ 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 126e60b..6dd0c30 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -74,7 +74,7 @@