Add make request button to plan page

This commit is contained in:
Stefan Wehrmeyer 2022-03-15 14:35:16 +01:00
parent 3051ee51f5
commit 0bfceca2e7
5 changed files with 186 additions and 110 deletions

View file

@ -82,6 +82,21 @@
{% endif %}
</div>
<div class="col col-12 col-md-5 col-lg-3 mt-5 mt-md-0">
{% if object.responsible_publicbody %}
<div class="mb-3">
{% if not object.has_recent_foirequest %}
<a href="{{ object.make_request_url }}" target="_blank" class="btn btn-primary">
Anfrage zum Vorhaben stellen
</a>
{% else %}
{% with foirequest=object.get_recent_foirequest %}
{% include "foirequest/snippets/request_item.html" with object=foirequest %}
{% endwith %}
{% endif %}
</div>
{% endif %}
<dl>
{% if object.rating %}
<dt>Bewertung</dt>