diff --git a/apps/school/templates/blocks/schedule_purchased.html b/apps/school/templates/blocks/schedule_purchased.html new file mode 100644 index 00000000..7f49f2d7 --- /dev/null +++ b/apps/school/templates/blocks/schedule_purchased.html @@ -0,0 +1,122 @@ +{% load static %} {% load thumbnail %} +
+
+
+
+ +
+
+
+
Новые уроки
+ +
+
+
+ {% for school_schedule in school_schedules %} {% with current_live_lesson=school_schedule.current_live_lesson %} +
+
+ {% if school_schedule.is_purchased %} +
+
+ {{ school_schedule }} +
+ {% if current_live_lesson %} +
{{ current_live_lesson.date }}
+ {% endif %} +
+
+
{{ school_schedule.start_at }} (МСК)
+ {% if current_live_lesson %} + {% include './open_lesson.html' %} + {% endif %} +
+ {% else %} + + {% endif %} +
+
+
+ {% thumbnail current_live_lesson.cover.image "70x70" crop="center" as im %} + {% empty %} + {% endthumbnail %} +
+
+
+
{{ school_schedule.title }}{% if current_live_lesson %}, + {{ current_live_lesson.title }} + {% endif %} +
+ {% if current_live_lesson %} +
{{ current_live_lesson.short_description }}
+ {% endif %} +
+
Материалы
+
+
+
+

{{ school_schedule.description }}

+
+
+
+
+ {{ school_schedule.materials }} +
+
+
+ {% if school_schedule.schoolschedule_images.exists %} +
Результаты прошлых уроков
+
+ {% for image in school_schedule.schoolschedule_images.all %} + + {% thumbnail image.img.image "48x48" crop="center" as im %} + {% endthumbnail %} + + {% endfor %} +
+ {% endif %} +
+
+
+ +
+
+ {% endwith %} {% endfor %} +
+ +
+
+
+
+