feat: further restructure search
This commit is contained in:
parent
5624f59258
commit
23e154bce6
@ -6,45 +6,50 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% get_current_language as LANGUAGE_CODE_CURRENT %}
|
{% get_current_language as LANGUAGE_CODE_CURRENT %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column">
|
<div class="column is-two-thirds">
|
||||||
{% include "fellchensammlung/partials/bulma-partial-map.html" %}
|
<div style="height: 50vh">
|
||||||
</div>
|
{% include "fellchensammlung/partials/bulma-partial-map.html" %}
|
||||||
<div class="column">
|
</div>
|
||||||
<form class="block" method="post">
|
</div>
|
||||||
{% csrf_token %}
|
<div class="column">
|
||||||
<input type="hidden" name="longitude" maxlength="200" id="longitude">
|
<form class="block" method="post">
|
||||||
<input type="hidden" name="latitude" maxlength="200" id="latitude">
|
{% csrf_token %}
|
||||||
<input type="hidden" id="place_id" name="place_id">
|
<input type="hidden" name="longitude" maxlength="200" id="longitude">
|
||||||
<!--- https://docs.djangoproject.com/en/5.2/topics/forms/#reusable-form-templates -->
|
<input type="hidden" name="latitude" maxlength="200" id="latitude">
|
||||||
{{ search_form }}
|
<input type="hidden" id="place_id" name="place_id">
|
||||||
<ul id="results"></ul>
|
<!--- https://docs.djangoproject.com/en/5.2/topics/forms/#reusable-form-templates -->
|
||||||
<button class="button is-primary" type="submit" value="search" name="search">
|
{{ search_form }}
|
||||||
<i class="fas fa-search"></i> {% trans 'Suchen' %}
|
<ul id="results"></ul>
|
||||||
</button>
|
<button class="button is-primary" type="submit" value="search" name="search">
|
||||||
{% if searched %}
|
<i class="fas fa-search"></i> {% trans 'Suchen' %}
|
||||||
{% if subscribed_search %}
|
</button>
|
||||||
<button class="button" type="submit" value="{{ subscribed_search.pk }}"
|
{% if searched %}
|
||||||
name="unsubscribe_to_search">
|
{% if subscribed_search %}
|
||||||
<i class="fas fa-bell-slash"></i> {% trans 'Suche nicht mehr abonnieren' %}
|
<button class="button" type="submit" value="{{ subscribed_search.pk }}"
|
||||||
</button>
|
name="unsubscribe_to_search">
|
||||||
{% else %}
|
<i class="fas fa-bell-slash"></i> {% trans 'Suche nicht mehr abonnieren' %}
|
||||||
<button class="button" type="submit" name="subscribe_to_search">
|
</button>
|
||||||
<i class="fas fa-bell"></i> {% trans 'Suche abonnieren' %}
|
{% else %}
|
||||||
</button>
|
<button class="button" type="submit" name="subscribe_to_search">
|
||||||
|
<i class="fas fa-bell"></i> {% trans 'Suche abonnieren' %}
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
</form>
|
||||||
</form>
|
<div class="block">
|
||||||
<div class="block">
|
{% if place_not_found %}
|
||||||
{% if place_not_found %}
|
<div class="block notification is-warning">
|
||||||
<div class="block notification is-warning">
|
<p>
|
||||||
<p>
|
{% trans 'Ort nicht gefunden' %}
|
||||||
{% trans 'Ort nicht gefunden' %}
|
</p>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="">
|
||||||
{% include "fellchensammlung/lists/bulma-list-adoption-notices.html" %}
|
{% include "fellchensammlung/lists/bulma-list-adoption-notices.html" %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const locationInput = document.getElementById('id_location_string');
|
const locationInput = document.getElementById('id_location_string');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user