links for footer
This commit is contained in:
SDE
2023-09-01 15:29:41 +03:00
parent 770289f1ae
commit 3015a3e8f2
4 changed files with 27 additions and 9 deletions

View File

@@ -12,6 +12,9 @@ urlpatterns = [
path('chat/<int:user_id>/', chat_w_user_View, name='chat_w_user'),
path('chat/', chat_w_user_View, name='chat_w_user_wo_user_id'),
path('create_route_for_customer/', create_route_for_customer_View, name='create_route_for_customer_View'),
path('create_route_for_mover/', create_route_for_mover_View, name='create_route_for_mover_View'),
path('login/', login_View, name='login_profile'),
path('logout/', logout_View, name='logout_profile'),

View File

@@ -22,6 +22,17 @@ def registration_View(request):
return HttpResponse(t.render(Dict, request))
def create_route_for_customer_View(request):
Dict = {}
t = loader.get_template('pages/profile/p_user_profile.html')
return HttpResponse(t.render(Dict, request))
def create_route_for_mover_View(request):
Dict = {}
t = loader.get_template('pages/profile/p_user_profile.html')
return HttpResponse(t.render(Dict, request))
@login_required(login_url='/profile/login/')
def chat_w_user_View(request, user_id=None):

View File

@@ -12,6 +12,10 @@ from datetime import datetime
from .funcs import *
from .forms import *
def route_search_results_View(request):
Dict = {}

View File

@@ -20,10 +20,10 @@
<div>Информация</div>
<div>
<div>
<div><a href="#">Перевезти посылку</a></div>
<div><a href="#">Отправить посылку</a></div>
<div><a href="#">Для отправителя</a></div>
<div><a href="{% url 'static_page' 'mover_search' %}">Для перевозчика</a></div>
<div><a href="{% url 'create_route_for_mover_View' %}">Перевезти посылку</a></div>
<div><a href="{% url 'create_route_for_customer_View' %}">Отправить посылку</a></div>
<div><a href="{% url 'static_page' 'mover_search' %}">Для отправителя</a></div>
<div><a href="{% url 'static_page' 'customer_search' %}">Для перевозчика</a></div>
</div>
</div>
</div>
@@ -31,12 +31,12 @@
<div class="right-column">
<div class="third-column">
<div><a href="#">О Trip With Bonus</a href="#"></div>
<div><a href="#">Новости</a></div>
<div><a href="#">Партнерам</a></div>
<div><a href="{% url "static_page" "about_service" %}">О Trip With Bonus</a></div>
<div><a href="{% url "articles" %}">Новости</a></div>
<div><a href="{% url "static_page" "partners" %}">Партнерам</a></div>
<div><a href="{% url 'static_page' 'advertisement' %}">Реклама</a></div>
<div><a href="#">Служба поддержки</a></div>
<div><a href="#">Контакты</a></div>
<div><a href="{% url 'static_page' 'customer_service' %}">Служба поддержки</a></div>
<div><a href="{% url 'static_page' 'contacts' %}">Контакты</a></div>
</div>
<div class="four-column">