{% load static %}
{% csrf_token %}
<div class="menu_profile {% if not page_type == 'profile' %}background{% endif %}">
    {% if user_subscribe %}<div class="subscribe_type_txt"><span class="f-l">Подписка:</span> <span class="f-r">{{ user_subscribe.subscribe.name }}</span><div class="clear_both"></div></div>{% endif %}
    {% with sel_page_name='create_route_for_mover' sel_page_name='dashboard' ajax_url="dashboard" title="Профиль" img_path="/static/img/svg/User.svg"%}
        {% include "widgets/profile/w_button_for_profile_menu.html" %}
    {% endwith %}
    {% with sel_page_name='create_route_for_customer' dom_id="customer" ajax_url="new_route_view" owner_type="customer" title="Разместить объявление как отправитель" 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="Разместить объявление как перевозчик" img_path="/static/img/svg/PushPin.svg"%}
        {% include "widgets/profile/w_button_for_profile_menu.html" %}
    {% endwith %}
    {% with sel_page_name='my_routes' dom_id="my_routes_id" ajax_url="get_routes" title="Мои объявления" 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="Написать сообщение" 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="Тех. поддержка" 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="Моя подписка" 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="Мой профиль" 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="Выход"%}
        {% 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.svg">#}
{#          <a href="{% url "profile_page" "change_profile" %}">Мой профиль</a>#}
{#        </div>#}
{#        <div>#}
{#            <a href="/profile/logout">Выйти из профиля</a>#}
{#        </div>#}
</div>