This commit is contained in:
2023-08-30 13:04:18 +03:00
parent c3163a8571
commit 44b1b8ac56
4 changed files with 58 additions and 38 deletions

View File

@@ -148,6 +148,7 @@
type="checkbox"
name="type_transport"
id="id_cargo_type_car_{{ forloop.counter }}"
onchange="filters_func_find_route_main(this)"
value="{{ item.0 }}"
/>
@@ -173,7 +174,7 @@
</div>
<div class="methods_transportation_form_filters">
<div class="title_el_methods_transportation">Откуда забрать посылку</div>
<select class="select_form_filters_find_route el_form_find_route" name="from_place">
<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 }}">{{ item.1 }}</option>
@@ -185,7 +186,7 @@
</div>
<div class="methods_transportation_form_filters">
<div class="title_el_methods_transportation">Куда доставить посылку</div>
<select class="select_form_filters_find_route el_form_find_route" name="to_place">
<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 }}">{{ item.1 }}</option>
@@ -195,7 +196,7 @@
<div class="methods_transportation_form_filters">
<label for="weight">Вес посылки (кг)</label>
<div class="range-slider">
<input type="text" class="range_slider_form_filters el_form_find_route" name="weight" value="{{ form.fields.weight.initial }}" />
<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" />
@@ -206,13 +207,14 @@
</div>
<div class="methods_transportation_form_filters">
<div class="title_el_methods_transportation">Сортировать по:</div>
<select name="sort" class="select_form_filters_find_route el_form_find_route">
<select onchange="filters_func_find_route_main(this)" name="sort" class="select_form_filters_find_route el_form_find_route">
<option value="last">По последним</option>
</select>
</div>
</div>
<div class="block-finded-routes">
<img class="loader_filters_routes" src="{% static "img/svg/loader.svg" %}">
<div class="page_routes_1">
{% include "blocks/b_search_routes.html" %}
</div>