0.0.58 upd route_info

This commit is contained in:
2023-07-29 17:50:32 +03:00
parent 12b97c1f61
commit d3a4539305
11 changed files with 174 additions and 61 deletions

View File

@@ -123,6 +123,7 @@
<label for="id_from_place">{{ form.fields.from_place.label }}</label>
<select
name="from_place"
{# onchange="hideErrorMsg(this)"#}
id="id_from_place"
{% if form.fields.from_place.required %} required{% endif %}>
{% for item in form.fields.from_place.choices %}

View File

@@ -1,47 +1,69 @@
{% for route in routes %}
<div class="my_route">
<div class="route_info">
{{ route.get_cargo_type_display }}
{{ route.weight }}
{{ route.get_type_transport_display }}
<div class="route_info_point">
{{ route.from_country.name }}/{{ route.from_city.name }}
<br>
{{ route.to_country.name }}/{{ route.to_city.name }}
</div>
<div class="route_info_date">
Отправка: {{route.departure_DT }}
Прибытие: {{route.arrival_DT }}
</div>
<div class="route_info_ft_place">
Откуда заберёт:{{ route.from_place }}
Куда доставит:{{ route.to_place }}
</div>
</div>
</div>
<div class="route_info_about">
<span>
Тип:{{ route.get_cargo_type_display }}
</span>
<div class="route_contact">
<h2>Контакты перевозчика:</h2>
<span>
Вес:{{ route.weight }} кг
</span>
<div class="route_contact_name">
{{ route.owner.last_name }} {{ route.owner.first_name }}
</div>
<span>
{{ route.get_type_transport_display }}
</span>
</div>
<div class="route_info_point">
{{ route.from_country.name }}/{{ route.from_city.name }}
<br>
{{ route.to_country.name }}/{{ route.to_city.name }}
</div>
<div class="route_info_date">
Отправка: {{route.departure_DT }}
Прибытие: {{route.arrival_DT }}
</div>
<div class="route_info_ft_place">
Откуда заберёт:{{ route.from_place }}
Куда доставит:{{ route.to_place }}
</div>
<div class="route_contact_phone_email">
{{ route.phone }}
<br>
{{ route.extra_phone }}
<br>
{{ route.owner.email }}
</div>
<div class="route_contact">
<h2>Контакты перевозчика:</h2>
<div class="route_contact_name">
{{ route.owner.last_name }} {{ route.owner.first_name }}
</div>
<div class="route_contact_phone_email">
{{ route.phone }}
<br>
{{ route.extra_phone }}
<br>
{{ route.owner.email }}
</div>
<div class="button_edit_route">
<button
id="edit_route">
Редактировать
</button>
</div>
<div class="button_remove_route">
<button
onclick="confirmRemove(this)"
id="remove_route">
Удалить
</button>
</div>
</div>
</div>