From 31c45cce7e5618d83d3f577c6f699e890e223feb Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Wed, 5 Jan 2022 22:46:36 +0000 Subject: [PATCH] add options in news form --- fet2020/posts/views.py | 1 + fet2020/templates/posts/index.html | 153 +++++++++++------------------ 2 files changed, 60 insertions(+), 94 deletions(-) diff --git a/fet2020/posts/views.py b/fet2020/posts/views.py index 79bb920c..d801155a 100644 --- a/fet2020/posts/views.py +++ b/fet2020/posts/views.py @@ -54,6 +54,7 @@ def index(request): if year == "": year = None + month = None if not year and month: messages.info( diff --git a/fet2020/templates/posts/index.html b/fet2020/templates/posts/index.html index fdcecef8..d2088cc3 100644 --- a/fet2020/templates/posts/index.html +++ b/fet2020/templates/posts/index.html @@ -27,18 +27,18 @@ x-transition:leave-start="scale-100 opacity-100" x-transition:leave-end="scale-110 opacity-0" > -
-

- - - - Auswahl einschränken -

-
- -
-
-
+
+

+ + + + Auswahl einschränken +

+
+ +
+
+ {% csrf_token %} {% for message in messages %} @@ -49,54 +49,56 @@ {% endfor %} - - - + + + + +
- - - - - - -