This commit is contained in:
2023-09-03 15:06:56 +03:00
parent 1f330f3660
commit aef46d5d9c

View File

@@ -22,7 +22,7 @@
type="checkbox"
name="type_transport"
id="id_cargo_type_car_{{ forloop.counter }}"
onchange="filters_func_find_route_main(this)"
onchange="filters_func_find_route_main(this,'{{ owner_type }}')"
value="{{ item.0 }}"
/>
@@ -48,7 +48,7 @@
</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">
<select onchange="filters_func_find_route_main(this,'{{ owner_type }}')" class="select_form_filters_find_route el_form_find_route" name="from_place">
<option value="" selected="selected">--не имеет значения--</option>
{% for item in route_form.fields.from_place.choices %}
<option value="{{ item.0 }}" {% if route_form.initial.from_place == item.0 %} selected{% endif %}>{{ item.1 }}</option>
@@ -60,7 +60,7 @@
</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">
<select onchange="filters_func_find_route_main(this,'{{ owner_type }}')" class="select_form_filters_find_route el_form_find_route" name="to_place">
<option value="" selected="selected">--не имеет значения--</option>
{% for item in route_form.fields.to_place.choices %}
<option value="{{ item.0 }}" {% if route_form.initial.to_place == item.0 %} selected{% endif %}>{{ item.1 }}</option>
@@ -70,7 +70,7 @@
<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="{{ route_form.fields.weight.initial }}" />
<input oninput="filters_func_find_route_main(this,'{{ owner_type }}')" type="text" class="range_slider_form_filters el_form_find_route" name="weight" value="{{ route_form.fields.weight.initial }}" />
</div>
<div class="inputs_for_slider_cont">
<input type="text" class="input_f_slider_start" value="100" />
@@ -81,7 +81,7 @@
</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">
<select onchange="filters_func_find_route_main(this,'{{ owner_type }}')" name="sort" class="select_form_filters_find_route el_form_find_route">
<option value="last" {% if route_form.initial.sort == item.0 %} selected{% endif %}>По последним</option>
</select>
</div>