{% load static %}
{% load i18n %}

{% if route_form %}
    <form name="find_route">
        {% csrf_token %}

        {% include "forms/f_find_route_form_main_find_routes.html" %}

        {% if show_filter_and_results %}
            <div class="block-find-route">

                {% include "forms/f_find_route_filters_form.html" %}

                <div class="block_w_paging routes">

                    {% include "blocks/b_finded_routes.html" %}


                    <div class="clear_both"></div>

                    {% if last_block == False %}
                        <div class="text-align-center">
                            <button class="button-find-more-routes" id="{{ last_el }}" onclick="load_routes(this)">{% trans "Показать ещё 10" %}</button>
                            <div class="width-100 text-align-center mb-10">
                                <img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
                            </div>
                        </div>
                    {% endif %}

                </div>
                <div class="clear_both"></div>
            </div>
        {% endif %}
    </form>
{% endif %}