129 lines
7.1 KiB
HTML
129 lines
7.1 KiB
HTML
{% load static %}
|
||
{% csrf_token %}
|
||
{% load i18n %}
|
||
{% load subscribes_tags_extra %}
|
||
|
||
{%trans "Профиль" as t_prof %}
|
||
{%trans "Разместить объявление как отправитель" as t_customer %}
|
||
{%trans "Разместить объявление как перевозчик" as t_mover %}
|
||
{%trans "Мои объявления" as t_my_routes %}
|
||
{%trans "Написать сообщение" as t_chats %}
|
||
{%trans "Тех. поддержка" as t_support %}
|
||
{%trans "Моя подписка" as t_subscribe %}
|
||
{%trans "Изменить профиль" as t_change_profile %}
|
||
{%trans "Выход" as t_logout %}
|
||
{% check_subscribe_option user 'размещение заявок' as create_routes_allow %}
|
||
|
||
<div class="menu_profile {% if not page_type == 'profile' %}background{% endif %}">
|
||
<div class="subscribe_type_txt"> {% if user_subscribe %}<span class="f-l">{% trans "Подписка" %}:</span> <span class="f-r">{{ user_subscribe.subscribe.name }}</span>{% endif %}<div class="clear_both"></div></div>
|
||
|
||
{% with sel_page_name='create_route_for_mover' sel_page_name='dashboard' ajax_url="dashboard" title=t_prof img_path="/static/img/svg/User.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% if create_routes_allow %}
|
||
{% with sel_page_name='create_route_for_customer' dom_id="customer" ajax_url="new_route_view" owner_type="customer" title=t_customer img_path="/static/img/svg/PushPin.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% with sel_page_name='create_route_for_mover' dom_id="mover" ajax_url="new_route_view" owner_type="mover" title=t_mover img_path="/static/img/svg/PushPin.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% endif %}
|
||
{% with sel_page_name='my_routes' dom_id="my_routes_id" ajax_url="get_routes" title=t_my_routes img_path="/static/img/svg/Cards.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% with sel_page_name='chat' ajax_url="chats" title=t_chats img_path="/static/img/svg/ChatCircleDots.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% with sel_page_name='support' ajax_url="support_tickets" title=t_support img_path="/static/img/svg/Headset.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% with sel_page_name='my_subscribe' ajax_url="show_cur_subscribe" title=t_subscribe img_path="/static/img/svg/CurrencyDollar.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% with sel_page_name='change_profile' ajax_url="change_profile" title=t_change_profile img_path="/static/img/svg/User.svg"%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{% with sel_page_name='create_route_for_mover' sel_page_name='logout' title=t_logout%}
|
||
{% include "widgets/profile/w_button_for_profile_menu.html" %}
|
||
{% endwith %}
|
||
{# <div>#}
|
||
{# <img class="svg" src="/static/img/svg/MagnifyingGlass.svg">#}
|
||
{# <a href="#">Поиск посылки</a>#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# id="customer"#}
|
||
{# onclick="select_tab_profile(this,'new_route_view','customer')"#}
|
||
{# {% if page_name == 'create_route_for_customer' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %} >#}
|
||
{# <img class="svg" src="/static/img/svg/PushPin.svg">#}
|
||
{# {% if page_type and page_type == 'profile' %}#}
|
||
{# <span>Разместить объявление как отправитель</span>#}
|
||
{# {% else %}#}
|
||
{# <a href="{% url "profile_page" "create_route_for_customer" %}">Разместить объявление как отправитель</a>#}
|
||
{# {% endif %}#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# id="mover"#}
|
||
{# onclick="select_tab_profile(this,'new_route_view','mover')"#}
|
||
{# {% if page_name == 'create_route_for_mover' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %}>#}
|
||
{# <img class="svg" src="/static/img/svg/PushPin.svg">#}
|
||
{# {% if page_type and page_type == 'profile' %}#}
|
||
{# <span>Разместить объявление как перевозчик</span>#}
|
||
{# {% else %}#}
|
||
{# <a href="{% url "profile_page" "create_route_for_mover" %}">Разместить объявление как перевозчик</a>#}
|
||
{# {% endif %}#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# id="my_routes_id"#}
|
||
{# onclick="select_tab_profile(this,'get_routes')"#}
|
||
{# {% if page_name == 'my_routes' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %}>#}
|
||
{# <img class="svg" src="/static/img/svg/Cards.svg">#}
|
||
{# <a href="{% url "profile_page" "my_routes" %}">Мои объявления</a>#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# onclick="select_tab_profile(this,'chats')"#}
|
||
{# {% if page_name == 'chat' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %}>#}
|
||
{# <img class="svg" src="/static/img/svg/ChatCircleDots.svg">#}
|
||
{# <a href="{% url "profile_page" "chat" %}">Написать сообщение#}
|
||
{# <div class="icon_unread_messages" style="padding-top: 0;">#}
|
||
{# <div class="cost-messages-in-user-tab-messenger">#}
|
||
{# <span class="unredmessages_value_text" style="padding-top: 2px;padding-left: 0;"></span>#}
|
||
{# </div>#}
|
||
{# </div>#}
|
||
{# </a>#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# onclick="select_tab_profile(this,'support_tickets')"#}
|
||
{# {% if page_name == 'support' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %}>#}
|
||
{# <img class="svg" src="/static/img/svg/Headset.svg">#}
|
||
{# <a href="{% url "profile_page" "support" %}">Тех. поддержка</a>#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# onclick="select_tab_profile(this,'show_cur_subscribe')"#}
|
||
{# {% if page_name == 'my_subscribe' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %}>#}
|
||
{# <img class="svg" src="/static/img/svg/CurrencyDollar.svg">#}
|
||
{# <a href="'{% url "profile_page" "my_subscribe" %}'">Моя подписка</a>#}
|
||
{# </div>#}
|
||
{# <div#}
|
||
{# onclick="select_tab_profile(this,'change_profile')"#}
|
||
{# {% if page_name == 'change_profile' %}#}
|
||
{# class="selected"#}
|
||
{# {% endif %}>#}
|
||
{# <img class="svg" src="/static/img/svg/user_icon_standart.png">#}
|
||
{# <a href="{% url "profile_page" "change_profile" %}">Мой профиль</a>#}
|
||
{# </div>#}
|
||
{# <div>#}
|
||
{# <a href="/profile/logout">Выйти из профиля</a>#}
|
||
{# </div>#}
|
||
</div> |