feat: Restructure search and add blocks
This commit is contained in:
		@@ -6,10 +6,11 @@
 | 
			
		||||
{% block content %}
 | 
			
		||||
    {% get_current_language as LANGUAGE_CODE_CURRENT %}
 | 
			
		||||
    <div class="columns">
 | 
			
		||||
        <div class="column">
 | 
			
		||||
            {% include "fellchensammlung/partials/bulma-partial-map.html" %}
 | 
			
		||||
        </div>
 | 
			
		||||
        <form class="column" method="post">
 | 
			
		||||
    <div class="column">
 | 
			
		||||
        {% include "fellchensammlung/partials/bulma-partial-map.html" %}
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="column">
 | 
			
		||||
        <form class="block" method="post">
 | 
			
		||||
            {% csrf_token %}
 | 
			
		||||
            <input type="hidden" name="longitude" maxlength="200" id="longitude">
 | 
			
		||||
            <input type="hidden" name="latitude" maxlength="200" id="latitude">
 | 
			
		||||
@@ -17,29 +18,31 @@
 | 
			
		||||
            <!--- https://docs.djangoproject.com/en/5.2/topics/forms/#reusable-form-templates -->
 | 
			
		||||
            {{ search_form }}
 | 
			
		||||
            <ul id="results"></ul>
 | 
			
		||||
            <div class="container-edit-buttons">
 | 
			
		||||
                <button class="button is-primary" type="submit" value="search" name="search">
 | 
			
		||||
                    <i class="fas fa-search"></i> {% trans 'Suchen' %}
 | 
			
		||||
                </button>
 | 
			
		||||
                {% if searched %}
 | 
			
		||||
                    {% if subscribed_search %}
 | 
			
		||||
                        <button class="button" type="submit" value="{{ subscribed_search.pk }}"
 | 
			
		||||
                                name="unsubscribe_to_search">
 | 
			
		||||
                            <i class="fas fa-bell-slash"></i> {% trans 'Suche nicht mehr abonnieren' %}
 | 
			
		||||
                        </button>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        <button class="button" type="submit" name="subscribe_to_search">
 | 
			
		||||
                            <i class="fas fa-bell"></i> {% trans 'Suche abonnieren' %}
 | 
			
		||||
                        </button>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
            <button class="button is-primary" type="submit" value="search" name="search">
 | 
			
		||||
                <i class="fas fa-search"></i> {% trans 'Suchen' %}
 | 
			
		||||
            </button>
 | 
			
		||||
            {% if searched %}
 | 
			
		||||
                {% if subscribed_search %}
 | 
			
		||||
                    <button class="button" type="submit" value="{{ subscribed_search.pk }}"
 | 
			
		||||
                            name="unsubscribe_to_search">
 | 
			
		||||
                        <i class="fas fa-bell-slash"></i> {% trans 'Suche nicht mehr abonnieren' %}
 | 
			
		||||
                    </button>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    <button class="button" type="submit" name="subscribe_to_search">
 | 
			
		||||
                        <i class="fas fa-bell"></i> {% trans 'Suche abonnieren' %}
 | 
			
		||||
                    </button>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </div>
 | 
			
		||||
            {% if place_not_found %}
 | 
			
		||||
                <p class="error">
 | 
			
		||||
                    {% trans 'Ort nicht gefunden' %}
 | 
			
		||||
                </p>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </form>
 | 
			
		||||
        <div class="block">
 | 
			
		||||
            {% if place_not_found %}
 | 
			
		||||
                <div class="block notification is-warning">
 | 
			
		||||
                    <p>
 | 
			
		||||
                        {% trans 'Ort nicht gefunden' %}
 | 
			
		||||
                    </p>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    {% include "fellchensammlung/lists/bulma-list-adoption-notices.html" %}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user