feat: Restructure search and add blocks
This commit is contained in:
parent
5f576896b7
commit
d3f7274e92
@ -9,7 +9,8 @@
|
|||||||
<div class="column">
|
<div class="column">
|
||||||
{% include "fellchensammlung/partials/bulma-partial-map.html" %}
|
{% include "fellchensammlung/partials/bulma-partial-map.html" %}
|
||||||
</div>
|
</div>
|
||||||
<form class="column" method="post">
|
<div class="column">
|
||||||
|
<form class="block" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="longitude" maxlength="200" id="longitude">
|
<input type="hidden" name="longitude" maxlength="200" id="longitude">
|
||||||
<input type="hidden" name="latitude" maxlength="200" id="latitude">
|
<input type="hidden" name="latitude" maxlength="200" id="latitude">
|
||||||
@ -17,7 +18,6 @@
|
|||||||
<!--- https://docs.djangoproject.com/en/5.2/topics/forms/#reusable-form-templates -->
|
<!--- https://docs.djangoproject.com/en/5.2/topics/forms/#reusable-form-templates -->
|
||||||
{{ search_form }}
|
{{ search_form }}
|
||||||
<ul id="results"></ul>
|
<ul id="results"></ul>
|
||||||
<div class="container-edit-buttons">
|
|
||||||
<button class="button is-primary" type="submit" value="search" name="search">
|
<button class="button is-primary" type="submit" value="search" name="search">
|
||||||
<i class="fas fa-search"></i> {% trans 'Suchen' %}
|
<i class="fas fa-search"></i> {% trans 'Suchen' %}
|
||||||
</button>
|
</button>
|
||||||
@ -33,13 +33,16 @@
|
|||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</form>
|
||||||
|
<div class="block">
|
||||||
{% if place_not_found %}
|
{% if place_not_found %}
|
||||||
<p class="error">
|
<div class="block notification is-warning">
|
||||||
|
<p>
|
||||||
{% trans 'Ort nicht gefunden' %}
|
{% trans 'Ort nicht gefunden' %}
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include "fellchensammlung/lists/bulma-list-adoption-notices.html" %}
|
{% include "fellchensammlung/lists/bulma-list-adoption-notices.html" %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user