From 7f4693d8cb545a54dfed36a67570ba9ca9fa4fbf Mon Sep 17 00:00:00 2001 From: Sanasol Date: Sat, 9 Jun 2018 20:29:05 +0300 Subject: [PATCH] _schedule_purchased_item.html --- .../summer/_schedule_purchased_item.html | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 apps/school/templates/summer/_schedule_purchased_item.html diff --git a/apps/school/templates/summer/_schedule_purchased_item.html b/apps/school/templates/summer/_schedule_purchased_item.html new file mode 100644 index 00000000..7bc7e6d7 --- /dev/null +++ b/apps/school/templates/summer/_schedule_purchased_item.html @@ -0,0 +1,78 @@ +{% load static %} {% load thumbnail %} +
+
+
+
+ {{ school_schedule }} +
+ {% if live_lesson %} +
{{ live_lesson.date }}
+ {% endif %} +
+
+
{{ school_schedule.start_at }} (МСК)
+ {% if school_schedule.weekday in school_schedules_purchased %} + {% if live_lesson and school_schedule.is_online or live_lesson and is_previous and live_lesson in live_lessons %} + {% include './open_lesson.html' %} + {% endif %} + {% else %} + {% include './day_pay_btn.html' %} + {% endif %} +
+ {% comment %} + + {% endcomment %} + {% if school_schedule.weekday in school_schedules_purchased %} + + {% endif %} +
+
+
+ {% thumbnail live_lesson.cover.image "70x70" crop="center" as im %} + + {% empty %} + + {% endthumbnail %} +
+
+
+
{{ school_schedule.title }}{% if live_lesson %}, + {{ live_lesson.title }} + {% endif %} +
+
+ {% if live_lesson %} + {{ live_lesson.short_description }} + {% else %} + {{ school_schedule.description }} + {% endif %} +
+
+
Материалы
+
+
+ {{ school_schedule.materials }} +
+
+ {% if school_schedule.schoolschedule_images.exists %} +
Результаты прошлых уроков
+ + {% endif %} +
+
+
+ +
+