From 8179f38063d4ab6e7ed34f0333000eb2827f0787 Mon Sep 17 00:00:00 2001 From: Jens-Erik Weber Date: Thu, 26 Sep 2024 00:43:27 +0200 Subject: [PATCH] Add a ui container to the app hook template This addresses the new structure necessary for django CMS 4.1 in order to avoid having placeholders in app hook templates. --- src/djangocms_events/__about__.py | 2 +- .../djangocms_events/event_list.html | 135 +++++++++--------- 2 files changed, 69 insertions(+), 68 deletions(-) diff --git a/src/djangocms_events/__about__.py b/src/djangocms_events/__about__.py index 661ce31..846c9e8 100644 --- a/src/djangocms_events/__about__.py +++ b/src/djangocms_events/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2023-present Jens-Erik Weber # # SPDX-License-Identifier: MIT -__version__ = "0.1.9dev1" +__version__ = "0.1.9dev2" diff --git a/src/djangocms_events/templates/djangocms_events/event_list.html b/src/djangocms_events/templates/djangocms_events/event_list.html index 6187701..d5fc353 100644 --- a/src/djangocms_events/templates/djangocms_events/event_list.html +++ b/src/djangocms_events/templates/djangocms_events/event_list.html @@ -14,80 +14,81 @@ {% endaddtoblock %} -

{% translate "Calendar" %}

+
+

{% translate "Calendar" %}

-
-
- - - -
- {% if show_month_week_day_control %} -
- - - -
- {% endif %} -
+
+
+ + + +
+ {% if show_month_week_day_control %} +
+ + + +
+ {% endif %} +
-
+
- + -
- {% for event in event_list|slice:nr_initially_shown %} - {% include "./include/event_item.html" %} - {% endfor %} -
+
+ {% for event in event_list|slice:nr_initially_shown %} + {% include "./include/event_item.html" %} + {% endfor %} +
-{% if event_list.count > nr_initially_shown %} -
-
- - -
-
-
- {% for event in event_list|slice:slice_2 %} - {% include "./include/event_item.html" %} - {% endfor %} -
-
-
-{% endif %} + {% if event_list.count > nr_initially_shown %} +
+
+ + +
+
+
+ {% for event in event_list|slice:slice_2 %} + {% include "./include/event_item.html" %} + {% endfor %} +
+
+
+ {% endif %} - + -{% include "./include/calendar-js.html" %} -{% include "./include/event-list-js.html" %} + + {% include "./include/calendar-js.html" %} + {% include "./include/event-list-js.html" %} +
{% endblock content %} \ No newline at end of file