diff --git a/project/templates/lilcity/main.html b/project/templates/lilcity/main.html
index 817a23f6..f0af1cd6 100644
--- a/project/templates/lilcity/main.html
+++ b/project/templates/lilcity/main.html
@@ -367,7 +367,7 @@
{% endfor %}
+ Распечатать расписание чтобы не забыть
{% if course_items %}
diff --git a/project/templates/lilcity/school_schedules.html b/project/templates/lilcity/school_schedules.html
new file mode 100644
index 00000000..88601188
--- /dev/null
+++ b/project/templates/lilcity/school_schedules.html
@@ -0,0 +1,52 @@
+{% load static %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Расписание
+
+
+ {% for school_schedule in school_schedules %}
+
+
{{ school_schedule }}
+
+
{{ school_schedule.title }}
+
{{ school_schedule.description }}
+
+
+
{{ school_schedule.materials }}
+
+
+
+ {% endfor %}
+
+ {% comment %}
{% endcomment %}
+
+
+
+
+
+
diff --git a/project/urls.py b/project/urls.py
index b7f3dde3..b0c6ddb8 100644
--- a/project/urls.py
+++ b/project/urls.py
@@ -36,7 +36,7 @@ from apps.payment.views import (
SchoolBuyView,
)
-from .views import IndexView
+from .views import IndexView, SchoolSchedulesView
urlpatterns = [
path('admin/', admin.site.urls),
@@ -71,6 +71,7 @@ urlpatterns = [
path('privacy', TemplateView.as_view(template_name='templates/lilcity/privacy_policy.html'), name='privacy'),
path('terms', TemplateView.as_view(template_name='templates/lilcity/terms.html'), name='terms'),
path('refund-policy', TemplateView.as_view(template_name='templates/lilcity/refund_policy.html'), name='refund_policy'),
+ path('school-schedules', SchoolSchedulesView.as_view(), name='school_schedules'),
path('', IndexView.as_view(), name='index'),
path('api/v1/', include(('api.v1.urls', 'api_v1'))),
path('test', TemplateView.as_view(template_name='templates/lilcity/test.html'), name='test'),
diff --git a/project/views.py b/project/views.py
index 9dafb0a4..fcedb726 100644
--- a/project/views.py
+++ b/project/views.py
@@ -14,3 +14,12 @@ class IndexView(TemplateView):
'school_schedules': SchoolSchedule.objects.all(),
})
return context
+
+
+class SchoolSchedulesView(TemplateView):
+ template_name = 'templates/lilcity/school_schedules.html'
+
+ def get_context_data(self):
+ context = super().get_context_data()
+ context['school_schedules'] = SchoolSchedule.objects.all()
+ return context