From 114a65746cb29e8e0b67fc75590a8e15151aa809 Mon Sep 17 00:00:00 2001 From: SDE Date: Sun, 5 Nov 2023 18:48:58 +0300 Subject: [PATCH] 0.7.73 profile curtain reformat --- AuthApp/views.py | 3 +- .../profile/b_buttons_menu_profile.html | 170 +++++++++++------- .../profile/w_button_for_profile_menu.html | 27 +++ 3 files changed, 130 insertions(+), 70 deletions(-) create mode 100644 templates/widgets/profile/w_button_for_profile_menu.html diff --git a/AuthApp/views.py b/AuthApp/views.py index 22ddeff..ab41fc0 100644 --- a/AuthApp/views.py +++ b/AuthApp/views.py @@ -40,7 +40,8 @@ def registration_View(request): def profile_page_View(request, page_name, id=None): Dict = { 'page_html': get_profile_page_content_html(request, page_name, id), - 'page_name': page_name + 'page_name': page_name, + 'page_type': 'profile' } t = loader.get_template('pages/profile/p_user_profile.html') diff --git a/templates/blocks/profile/b_buttons_menu_profile.html b/templates/blocks/profile/b_buttons_menu_profile.html index 35de840..8c9e319 100644 --- a/templates/blocks/profile/b_buttons_menu_profile.html +++ b/templates/blocks/profile/b_buttons_menu_profile.html @@ -1,75 +1,107 @@ {% load static %} {% csrf_token %} #} +{# #} +{# #} +{# {% if page_type and page_type == 'profile' %}#} +{# Разместить объявление как перевозчик#} +{# {% else %}#} +{# Разместить объявление как перевозчик#} +{# {% endif %}#} +{# #} +{# #} +{# #} +{# Мои объявления#} +{# #} +{# #} +{# #} +{# Написать сообщение#} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{#
#} +{# #} +{# #} +{# #} +{# Тех. поддержка#} +{# #} +{# #} +{# #} +{# Моя подписка#} +{# #} +{# #} +{# #} +{# Мой профиль#} +{# #} {# #} diff --git a/templates/widgets/profile/w_button_for_profile_menu.html b/templates/widgets/profile/w_button_for_profile_menu.html new file mode 100644 index 0000000..7bb126c --- /dev/null +++ b/templates/widgets/profile/w_button_for_profile_menu.html @@ -0,0 +1,27 @@ + \ No newline at end of file