0.0.220
This commit is contained in:
@@ -23,122 +23,9 @@
|
||||
<div class="text-align-center">
|
||||
<h1 class="title_page">Поиск перевозчика</h1>
|
||||
</div>
|
||||
<form name="find_route">
|
||||
{% csrf_token %}
|
||||
|
||||
{% include "blocks/b_find_route_form.html" %}
|
||||
{% include "blocks/b_find_route_form.html" %}
|
||||
|
||||
<div class="block-find-route">
|
||||
<div class="block-filters-find-route">
|
||||
<div class="title_filters_find_route">Все фильтры</div>
|
||||
<div class="methods_transportation_form_filters">
|
||||
<div class="title_el_methods_transportation">Способ перевозки</div>
|
||||
{# <div>#}
|
||||
{# <div class="method_transport">#}
|
||||
{# <input class="method_transport_inp_hide" type="checkbox">#}
|
||||
{# <div class="method_transport_inp"></div>#}
|
||||
{# </div>#}
|
||||
{# <label>#}
|
||||
{# <img>#}
|
||||
{# <text></text>#}
|
||||
{# </label>#}
|
||||
{# </div>#}
|
||||
{% for item in form.fields.type_transport.choices %}
|
||||
{% if forloop.counter0 > 0 %}
|
||||
<div>
|
||||
<input
|
||||
class="custom-checkbox el_form_find_route"
|
||||
type="checkbox"
|
||||
name="type_transport"
|
||||
id="id_cargo_type_car_{{ forloop.counter }}"
|
||||
onchange="filters_func_find_route_main(this)"
|
||||
value="{{ item.0 }}"
|
||||
/>
|
||||
|
||||
<label for="id_cargo_type_car_{{ forloop.counter }}" >
|
||||
<img style="display: inline-block;padding-top: 11px;" src="{% static "img/svg/Car.svg" %}">
|
||||
<span style="display: inline-block;width: 80%;">{{ item.1 }}</span>
|
||||
</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{# <div>#}
|
||||
{# <input#}
|
||||
{# class="custom-checkbox"#}
|
||||
{# type="checkbox"#}
|
||||
{# name="type_transport"#}
|
||||
{# id="id_cargo_type_plane"#}
|
||||
{# />#}
|
||||
{##}{# <img style="display: inline-block;padding-top: 11px;" src="{% static "img/svg/Airplane.svg" %}">#}
|
||||
{# <label for="id_cargo_type_plane" >#}
|
||||
{# <span style="display: inline-block;width: 80%;">{{ form.fields.type_transport.choices }}</span>#}
|
||||
{# </label>#}
|
||||
{# </div>#}
|
||||
</div>
|
||||
<div class="methods_transportation_form_filters">
|
||||
<div class="title_el_methods_transportation">Откуда забрать посылку</div>
|
||||
<select onchange="filters_func_find_route_main(this)" class="select_form_filters_find_route el_form_find_route" name="from_place">
|
||||
<option value="" selected="selected">--не имеет значения--</option>
|
||||
{% for item in form.fields.from_place.choices %}
|
||||
<option value="{{ item.0 }}" {% if form.initial.from_place == item.0 %} selected{% endif %}>{{ item.1 }}</option>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="methods_transportation_form_filters">
|
||||
<div class="title_el_methods_transportation">Куда доставить посылку</div>
|
||||
<select onchange="filters_func_find_route_main(this)" class="select_form_filters_find_route el_form_find_route" name="to_place">
|
||||
<option value="" selected="selected">--не имеет значения--</option>
|
||||
{% for item in form.fields.to_place.choices %}
|
||||
<option value="{{ item.0 }}" {% if form.initial.to_place == item.0 %} selected{% endif %}>{{ item.1 }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="methods_transportation_form_filters">
|
||||
<label for="weight">Вес посылки (кг)</label>
|
||||
<div class="range-slider">
|
||||
<input oninput="filters_func_find_route_main(this)" type="text" class="range_slider_form_filters el_form_find_route" name="weight" value="{{ form.fields.weight.initial }}" />
|
||||
</div>
|
||||
<div class="inputs_for_slider_cont">
|
||||
<input type="text" class="input_f_slider_start" value="100" />
|
||||
<input type="text" class="input_f_slider_end" value="900" />
|
||||
<div class="clear_both"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="methods_transportation_form_filters">
|
||||
<div class="title_el_methods_transportation">Сортировать по:</div>
|
||||
<select onchange="filters_func_find_route_main(this)" name="sort" class="select_form_filters_find_route el_form_find_route">
|
||||
<option value="last" {% if form.initial.sort == item.0 %} selected{% endif %}>По последним</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="block-finded-routes">
|
||||
{% if not routes %}
|
||||
<span style='color: #ff0000;font-weight: 800;font-size: 18px;padding: 10px;'>Нечего не найдено!</span>
|
||||
{% endif %}
|
||||
<img class="loader_filters_routes" src="{% static "img/svg/loader.svg" %}">
|
||||
<div class="page_routes_1">
|
||||
{% include "blocks/b_search_routes.html" %}
|
||||
</div>
|
||||
<div class="page_routes_2">
|
||||
|
||||
</div>
|
||||
{% if last_block_routes == false %}
|
||||
<div class="text-align-center">
|
||||
<button class="button-find-more-routes" id="25" onclick="load_routes(this)">Показать ещё 10</button>
|
||||
<img class="loader_f_loading_routes" src="{% static "img/svg/loader.svg" %}">
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear_both"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user