Add make request button to plan page
This commit is contained in:
parent
3051ee51f5
commit
0bfceca2e7
5 changed files with 186 additions and 110 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue