hacking
This commit is contained in:
parent
abf6da60a8
commit
c62c1b2c1b
6 changed files with 131 additions and 5 deletions
|
|
@ -5,6 +5,7 @@
|
|||
{% load cms_tags %}
|
||||
{% load follow_tags %}
|
||||
{% load govplan %}
|
||||
{% load form_helper %}
|
||||
{% load content_helper %}
|
||||
{% load thumbnail %}
|
||||
{% block title %}
|
||||
|
|
@ -25,7 +26,7 @@
|
|||
{% for cat in object.categories.all %}
|
||||
<li>
|
||||
<a href="{{ section.get_absolute_url }}"
|
||||
class="badge text-bg-light text-decoration-none">{{ cat.name }}</a>
|
||||
class="badge text-bg-light text-decoration-none me-2">{{ cat.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
@ -174,7 +175,12 @@
|
|||
aria-label="{% translate "Close" %}"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<b>FIXME FORM SUBMIT</b>>
|
||||
<form method="post"
|
||||
action="{% url 'govplan:propose_planupdate' gov=object.government.slug plan=object.slug %}">
|
||||
{% csrf_token %}
|
||||
{% render_form update_proposal_form %}
|
||||
<button type="submit" class="btn btn-primary">Neue Entwicklung melden</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,53 @@
|
|||
</style>
|
||||
|
||||
<div class="album py-5">
|
||||
|
||||
|
||||
<div style="margin-left: auto; max-width: 700px; margin-bottom: 1rem;">
|
||||
<form method="get" action="/search/" class="ajaxified" data-container="#govplan-searchresult-275111" data-modalcontainer="#govplan-searchmodal-275111">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" aria-label="Suchbegriff" placeholder="Suchbegriff">
|
||||
<select name="status" class="form-select" style="max-width: 300px;">
|
||||
<option value="">Status filtern</option>
|
||||
|
||||
<option value="not_started">nicht begonnen</option>
|
||||
|
||||
<option value="started">begonnen</option>
|
||||
|
||||
<option value="partially_implemented">teilweise umgesetzt</option>
|
||||
|
||||
<option value="implemented">umgesetzt</option>
|
||||
|
||||
<option value="deferred">zurückgestellt</option>
|
||||
|
||||
</select>
|
||||
<button class="btn btn-outline-secondary" type="submit">
|
||||
Suchen
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="government" value="1"/>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="modal fade" id="govplan-searchmodal-275111">
|
||||
<div class="modal-dialog modal-dialog-centered modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Suchergebnisse</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Schließen">
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="govplan-searchresult-275111"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
|
||||
|
||||
{% for section in sections %}
|
||||
<div class="col">
|
||||
<a href="{{ section.get_absolute_url }}" class="text-decoration-none text-reset">
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<h1 class="text-body-emphasis">{{ object.title }}</h1>
|
||||
<p class="fs-5 col-md-8">
|
||||
{% blocktranslate with section=object.title %}
|
||||
Here you can find all plans of the section “{{ section }}”, which the coalition constituted in their agreement. On the curresponding detail pages, you'll get more information, stay up to date with news or submit changes.
|
||||
Hier finden Sie alle Vorhaben aus dem Bereich „{{ section }}“, welche die Stadtverwaltung festgelegt hat. Auf den jeweiligen Detailseiten erhalten Sie mehr Informationen, können Neuigkeiten abonnieren oder Änderungen einreichen.
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
|
||||
|
|
@ -37,7 +37,6 @@
|
|||
<span class="text-nowrap me-1"><i class="fa fa-circle text-success"></i> umgesetzt</span>
|
||||
<span class="text-nowrap me-1"><i class="fa fa-circle text-danger"></i> verschoben</span>
|
||||
</p>
|
||||
{% include "froide_govplan/plugins/time_used.html" with instance=object %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue