From c5fd83b4075aefca66dc62c6b792aacd32e66be7 Mon Sep 17 00:00:00 2001 From: eclipse Date: Sun, 11 May 2025 16:19:00 +0200 Subject: [PATCH] added custom dropdown components for Genre and Herausgeber form fields --- the_works/templates/views/text.html | 4 +- the_works/templates/views/text_detail.html | 44 +++++--- the_works/templates/views/werk.html | 10 +- the_works/templates/views/werk_detail.html | 120 +++++++++------------ the_works/views/text.py | 2 +- the_works/views/werk.py | 4 +- 6 files changed, 89 insertions(+), 95 deletions(-) diff --git a/the_works/templates/views/text.html b/the_works/templates/views/text.html index 863f4a4..525de9f 100644 --- a/the_works/templates/views/text.html +++ b/the_works/templates/views/text.html @@ -46,8 +46,8 @@ {% endblock script %} diff --git a/the_works/templates/views/text_detail.html b/the_works/templates/views/text_detail.html index bef9df1..82034dc 100644 --- a/the_works/templates/views/text_detail.html +++ b/the_works/templates/views/text_detail.html @@ -9,10 +9,8 @@ Text bearbeiten {% endif %} {% endblock title %} -{% block script %} - -{% endblock script %} +{% block head %} +{% endblock head %} {% block heading %} {% if create_mode %} @@ -44,6 +42,25 @@ Text bearbeiten {% for r in reihen %}{% endfor %} +
-
-
-
- Genre(s) - {% for g in genres %} - - - {% endfor %} -
-
-{% endblock content %} \ No newline at end of file +{% endblock content %} + +{% block script %} + + +{% endblock script %} diff --git a/the_works/templates/views/werk.html b/the_works/templates/views/werk.html index e36ed71..298f10d 100644 --- a/the_works/templates/views/werk.html +++ b/the_works/templates/views/werk.html @@ -45,13 +45,9 @@ {% endblock script %} diff --git a/the_works/templates/views/werk_detail.html b/the_works/templates/views/werk_detail.html index 8436757..dcfa195 100644 --- a/the_works/templates/views/werk_detail.html +++ b/the_works/templates/views/werk_detail.html @@ -53,16 +53,6 @@ Werk bearbeiten Reihennummer - - -
+
+
+ + +

-
-
- Herausgeber:in(nen) -
- {% for column in hrsg | slice(4) %} -
- {% for h in column %} - - {% endfor %} -
- {% endfor %} -
-
-
-
-
-
- Genre(s) -
- {% for column in genres | slice(4) %} -
- {% for g in column %} - - {% endfor %} -
- {% endfor %} -
-
-
-