1.1.9 funcs for raise and highlight routes

This commit is contained in:
SDE
2024-06-03 02:46:58 +03:00
parent a83ff0e080
commit e319a8af46
11 changed files with 249 additions and 114 deletions

View File

@@ -1,3 +1,3 @@
<div>
{% include 'widgets/w_route_info.html' %}
{% include 'blocks/routes/b_my_routes_list.html' %}
</div>

View File

@@ -0,0 +1,102 @@
{% for route in routes %}
{% include "widgets/routes/w_my_route.html" %}
{% endfor %}
{#<div class="my_route">#}
{# <div class="route_info">#}
{# <div class="route_info_about">#}
{# <span>#}
{# Тип:{{ route.get_cargo_type_display }}#}
{# </span>#}
{##}
{# <span>#}
{# Вес:{{ route.weight }} кг#}
{# </span>#}
{##}
{# <span>#}
{##}
{# {{ route.get_type_transport_display }}#}
{# </span>#}
{##}
{# </div>#}
{##}
{# <div class="route_info_point">#}
{##}
{# <div>#}
{# <div>#}
{# <span>#}
{# {{ route.from_country.name }}/{{ route.from_city.name }}#}
{# </span>#}
{##}
{# <div></div>#}
{# </div>#}
{##}
{##}
{# <span>#}
{# {{ route.to_country.name }}/{{ route.to_city.name }}#}
{# </span>#}
{# </div>#}
{# </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 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 onclick="editRoute({{ route.id }})"#}
{# id="edit_route">#}
{# Редактировать#}
{# </button>#}
{# </div>#}
{# <div class="button_remove_route">#}
{# <button#}
{# onclick="confirmRemove(this)"#}
{# id="remove_route">#}
{# Удалить#}
{# </button>#}
{# </div>#}
{##}
{# </div>#}
{# </div>#}

View File

@@ -1,8 +1,5 @@
{% for route in routes %}
{% load static %}
{% load i18n %}
{% load static %}
{% load i18n %}
<div class="carrier-card" data-number-of-route="{{ route.id }}">
@@ -144,103 +141,4 @@
</div>
<div class="clear_both"></div>
</div>
{% endfor %}
{#<div class="my_route">#}
{# <div class="route_info">#}
{# <div class="route_info_about">#}
{# <span>#}
{# Тип:{{ route.get_cargo_type_display }}#}
{# </span>#}
{##}
{# <span>#}
{# Вес:{{ route.weight }} кг#}
{# </span>#}
{##}
{# <span>#}
{##}
{# {{ route.get_type_transport_display }}#}
{# </span>#}
{##}
{# </div>#}
{##}
{# <div class="route_info_point">#}
{##}
{# <div>#}
{# <div>#}
{# <span>#}
{# {{ route.from_country.name }}/{{ route.from_city.name }}#}
{# </span>#}
{##}
{# <div></div>#}
{# </div>#}
{##}
{##}
{# <span>#}
{# {{ route.to_country.name }}/{{ route.to_city.name }}#}
{# </span>#}
{# </div>#}
{# </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 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 onclick="editRoute({{ route.id }})"#}
{# id="edit_route">#}
{# Редактировать#}
{# </button>#}
{# </div>#}
{# <div class="button_remove_route">#}
{# <button#}
{# onclick="confirmRemove(this)"#}
{# id="remove_route">#}
{# Удалить#}
{# </button>#}
{# </div>#}
{##}
{# </div>#}
{# </div>#}
</div>