You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.5 KiB
58 lines
2.5 KiB
{% load static %} {% load thumbnail %}
|
|
<div class="section" id="schedule">
|
|
<div class="section__center center">
|
|
{% include 'templates/blocks/messages.html' %}
|
|
<div class="casing">
|
|
<div class="casing__col">
|
|
<div class="casing__subscribe">
|
|
{% if is_purchased %}
|
|
<div class="casing__msg">Подписка истекает
|
|
<span class="bold">{{ subscription_ends }}</span>
|
|
</div>
|
|
{% else %}
|
|
<div class="casing__msg">Подписка
|
|
<span class="bold">истекла</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if allow_prolong %}
|
|
{% include './prolong_btn.html' with pink=True %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="casing__col">
|
|
<div class="casing__timing timing js-timing">
|
|
<div class="timing__week">
|
|
<div class="subtitle2">Новые уроки</div>
|
|
{% for school_schedule in school_schedules_sorted %}
|
|
{% if is_drawing_camp %}
|
|
{% include 'blocks/schedule_item.html' with school_schedule=school_schedule live_lesson=school_schedule.current_camp_lesson %}
|
|
{% else %}
|
|
{% include 'blocks/schedule_item.html' with school_schedule=school_schedule live_lesson=school_schedule.current_live_lesson %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if prev_live_lessons_exists %}
|
|
<div class="subtitle2">Прошедшие уроки</div>
|
|
{% for live_lesson in prev_live_lessons %}
|
|
{% if live_lesson.school_schedule and live_lesson.title %}
|
|
{% include 'blocks/schedule_item.html' with school_schedule=live_lesson.school_schedule live_lesson=live_lesson is_previous=True is_purchased=True %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
<div class="timing__week">
|
|
{% comment %} previous week schedules {% endcomment %}
|
|
</div>
|
|
<div class="timing__foot">
|
|
<a target="_blank" class="timing__print" href="{% url 'school:school_schedules-print' %}">Распечатать расписание
|
|
<span class="bold">чтобы не забыть</span>
|
|
<svg class="icon icon-print">
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-print"></use>
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% include './last_courses.html' %}
|
|
|