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.
72 lines
3.1 KiB
72 lines
3.1 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 %}
|
|
{% if not school_purchased_future %}
|
|
<div class="casing__msg">Подписка истекает
|
|
<span class="bold">{{ subscription_ends }}</span>
|
|
</div>
|
|
{% endif %}
|
|
{% else %}
|
|
<div class="casing__msg">Подписка
|
|
<span class="bold">истекла</span>
|
|
</div>
|
|
{% include './prolong_btn.html' with pink=True %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="casing__col">
|
|
{% if not profile %}
|
|
<div class="casing__head">
|
|
{% if is_previous %}
|
|
<div class="casing__title title">Запись уроков</div>
|
|
{% else %}
|
|
<div class="casing__title title">Новые уроки</div>
|
|
{% endif %}
|
|
<label class="casing__switcher switcher">
|
|
<span class="switcher__wrap">
|
|
<a href="{% url 'school:school' %}?is_previous=true" class="switcher__item{% if is_previous %} active{% endif %}">запись уроков</a>
|
|
<a href="{% url 'school:school' %}" class="switcher__item{% if not is_previous %} active{% endif %}">новые уроки</a>
|
|
</span>
|
|
</label>
|
|
</div>
|
|
{% endif %}
|
|
<div class="casing__timing timing js-timing">
|
|
<div class="timing__week">
|
|
{% if is_previous and not live_lessons_exists %}
|
|
Записей уроков пока нет
|
|
{% else %}
|
|
{% for school_schedule in school_schedules %}
|
|
{% if is_previous %}
|
|
{% if school_schedule.previous_live_lesson in live_lessons %}
|
|
{% include 'blocks/schedule_item.html' with school_schedule=school_schedule
|
|
live_lesson=school_schedule.previous_live_lesson purchased=True %}
|
|
{% endif %}
|
|
{% else %}
|
|
{% include 'blocks/schedule_item.html' with school_schedule=school_schedule
|
|
live_lesson=school_schedule.current_live_lesson 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' %}
|
|
|