0.3.4 contacts page

This commit is contained in:
SDE
2023-12-09 21:03:09 +03:00
parent 470914f431
commit 28a00680e5
4 changed files with 43 additions and 1 deletions

View File

@@ -249,9 +249,10 @@ class Admin_Office(Admin_Trans_BaseModelViewPage):
# 'main_office',
'city',
'address',
'picture',
(
'work_time_from', 'work_time_to',
# 'workTime',
'workTime',
),
# ('legal_name', 'unp', 'legal_address', 'urInfo'),
# 'fullContactInfo',

View File

@@ -6,6 +6,7 @@ from .views import *
urlpatterns = [
path('', MainPage, name='main'),
path('contacts/', contacts_view, name='contacts'),
path('page/<str:url>/', StaticPageView, name='static_page'),
path('test_code', test_code, name='test_code'),
]

View File

@@ -92,3 +92,14 @@ def StaticPageView(request, url):
# return HttpResponse(t.render(Dict, request))
def contacts_view(request):
# from RoutesApp.forms import RouteForm
# from SubscribesApp.funcs import get_subsribes_w_options
Dict = {
'offices': Office.objects.filter(enable=True)
}
t = loader.get_template('pages/p_contacts.html')
return get_inter_http_respose(t, Dict, request)
# return HttpResponse(t.render(Dict, request))