36 lines
1.9 KiB
HTML
36 lines
1.9 KiB
HTML
{% load static %}
|
|
{% load i18n %}
|
|
<link rel="stylesheet" href="{% static "v2/css/blocks/b_search_routes.css" %}">
|
|
|
|
<div class="b_search_routes">
|
|
<form name="search_routes" onsubmit="searchRoutes(this)">
|
|
<div class="field_container" data-type="location" data-name="from_city">
|
|
<label for="id_from_city">
|
|
{% if owner_type == 'mover' %}
|
|
{% trans "Выезжает из" %}
|
|
{% else %}
|
|
{% trans "Забрать из" %}
|
|
{% endif %}
|
|
</label>
|
|
{% include 'v2/widgets/w_select_country.html' with name='from_city' placeholder='' initial=form.initial.from_city %}
|
|
{% if form.errors.from_city %}<div class="error_container">{{ form.errors.from_city.0 }}</div>{% endif %}
|
|
</div>
|
|
<div class="field_container" data-type="location" data-name="to_city">
|
|
<label for="id_from_city">
|
|
{% if owner_type == 'mover' %}
|
|
{% trans "Прибывает в" %}
|
|
{% else %}
|
|
{% trans "Доставить в" %}
|
|
{% endif %}
|
|
</label>
|
|
{% include 'v2/widgets/w_select_country.html' with name='to_city' placeholder='' initial=form.initial.to_city %}
|
|
{% if form.errors.to_city %}<div class="error_container">{{ form.errors.to_city.0 }}</div>{% endif %}
|
|
</div>
|
|
<div class="field_container" data-type="date" data-name="arrival_DT">
|
|
<label for="id_arrival_DT">{% trans "Дата (период) доставки" %}</label>
|
|
{% include 'v2/widgets/w_daterangepicker.html' with name='arrival_DT' range='true' initial=form.initial.arrival_DT %}
|
|
{% if form.errors.arrival_DT %}<div class="error_container">{{ form.errors.arrival_DT.0 }}</div>{% endif %}
|
|
</div>
|
|
<button type="submit">{% trans "Найти посылку" %}</button>
|
|
</form>
|
|
</div> |