0.0.204
This commit is contained in:
@@ -103,18 +103,18 @@
|
||||
</div>
|
||||
<div class="cont-el-form-search-carrier">
|
||||
<label for="id_departure_DT">Дата отправки</label>
|
||||
<input class="el_form_find_route" name="departure_DT" id="id_departure_DT" type="date" {% if form.fields.departure_DT.required %} {% endif %} {% %}>
|
||||
<input class="el_form_find_route" name="departure_DT" id="id_departure_DT" type="date" {% if form.fields.departure_DT.required %} {% endif %} {% if form.initial.departure_DT %} value="{{ form.initial.departure_DT }}"{% endif %} >
|
||||
</div>
|
||||
<div class="cont-el-form-search-carrier">
|
||||
<label for="id_arrival_DT">Дата прибытия</label>
|
||||
<input class="el_form_find_route" name="arrival_DT" id="id_arrival_DT" type="date" {% if form.fields.arrival_DT.required %} {% endif %}>
|
||||
<input class="el_form_find_route" name="arrival_DT" id="id_arrival_DT" type="date" {% if form.initial.arrival_DT %} {% endif %} {% if form.initial.arrival_DT %} value="{{ form.initial.arrival_DT }}"{% endif %}>
|
||||
</div>
|
||||
<div class="cont-el-form-search-carrier last">
|
||||
<label>test</label>
|
||||
<select class="el_form_find_route" name="cargo_type" id="id_cargo_type" {% if form.fields.cargo_type.required %} {% endif %}>
|
||||
<option value="" selected="selected">--не имеет значения--</option>
|
||||
{% for item in form.fields.cargo_type.choices %}
|
||||
<option value="{{ item.0 }}">{{ item.1 }}</option>
|
||||
<option value="{{ item.0 }}" {% if form.initial.cargo_type == item.0 %} selected{% endif %}>{{ item.1 }}</option>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
<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>
|
||||
<option value="{{ item.0 }}" {% if form.initial.from_place == item.0 %} selected{% endif %}>{{ item.1 }}</option>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
<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>
|
||||
<option value="{{ item.0 }}" {% if form.initial.to_place == item.0 %} selected{% endif %}>{{ item.1 }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
@@ -208,13 +208,13 @@
|
||||
<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">По последним</option>
|
||||
<option value="last" {% if form.initial.sort == item.0 %} selected{% endif %}>По последним</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="block-finded-routes">
|
||||
{# <img class="loader_filters_routes" src="{% static "img/svg/loader.svg" %}">#}
|
||||
<img class="loader_filters_routes" src="{% static "img/svg/loader.svg" %}">
|
||||
<div class="page_routes_1">
|
||||
{% include "blocks/b_search_routes.html" %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user