From 63e8bbb5a2afc5b7598dcb763467c6cde6e0328d Mon Sep 17 00:00:00 2001 From: krmax44 Date: Tue, 15 Mar 2022 15:17:21 +0100 Subject: [PATCH] change foirequest section in detail view --- .../templates/froide_govplan/detail.html | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/froide_govplan/templates/froide_govplan/detail.html b/froide_govplan/templates/froide_govplan/detail.html index 10b8902..42fa2b7 100644 --- a/froide_govplan/templates/froide_govplan/detail.html +++ b/froide_govplan/templates/froide_govplan/detail.html @@ -82,34 +82,22 @@ {% endif %}
- - {% if object.responsible_publicbody %} -
- {% if not object.has_recent_foirequest %} - - Anfrage zum Vorhaben stellen - - {% else %} - {% with foirequest=object.get_recent_foirequest %} - {% include "foirequest/snippets/request_item.html" with object=foirequest %} - {% endwith %} - {% endif %} -
- {% endif %} -
{% if object.rating %}
Bewertung
{{ object.get_rating_display }}
{% endif %} + {% if object.measure %}
Art der Umsetzung
{{ object.measure }}
{% endif %} + {% if object.due_date %}
Frist
{{ object.due_date|date:"SHORT_DATE_FORMAT" }}
{% endif %} + {% if object.responsible_publicbody %}
Federführung
@@ -118,6 +106,23 @@
{% endif %} + + {% if object.responsible_publicbody %} + {% if not object.has_recent_foirequest %} + + Anfrage zum Vorhaben stellen + + {% else %} + {% with foirequest=object.get_recent_foirequest %} +
Anfrage
+
+ + {% include "foirequest/snippets/request_item_mini.html" with object=foirequest %} +
+ {% endwith %} + {% endif %} + {% endif %} + {% if object.organization %}
Beobachtet von