0.0.147 routes

This commit is contained in:
SBD
2025-02-04 20:06:22 +03:00
parent eff021b4e2
commit 3c08686f21
4 changed files with 28 additions and 13 deletions

View File

@@ -5,12 +5,24 @@
<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">{% trans "Выезжает из" %}</label>
<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">{% trans "Прибывает в" %}</label>
<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>

View File

@@ -86,7 +86,7 @@
<img src="{{ route.from_city.country.flag.url }}" alt="">
<div class="country_code">{{ route.from_city.country.code }}</div>
</div>
<div class="place_title{% if route.to_city.name|length > 14 %} gradient{% endif %}">
<div class="place_title gradient">
{{ route.from_city.name }}
</div>
</div>
@@ -127,7 +127,7 @@
<img src="{{ route.to_city.country.flag.url }}" alt="">
<div class="country_code">{{ route.to_city.country.code }}</div>
</div>
<div class="place_title{% if route.to_city.name|length > 14 %} gradient{% endif %}">
<div class="place_title gradient">
{{ route.to_city.name }}
</div>
</div>