Открытие школы

remotes/origin/feature/open-school
gzbender 6 years ago
parent 34e8c01c36
commit ca55f8af19
  1. 2
      apps/school/templates/blocks/schedule_item.html
  2. 7
      apps/school/templates/summer/buy.html
  3. 14
      project/templates/blocks/header.html

@ -20,9 +20,11 @@
{% include './open_lesson.html' %}
{% endif %}
{% else %}
{% comment %}
{% if not is_purchased_future and is_drawing_camp %}
{% include './day_pay_btn.html' %}
{% endif %}
{% endcomment %}
{% endif %}
{% if not is_purchased and not request.user_agent.is_mobile and school_schedule.trial_lesson %}
<a class="timing__trial-lesson js-video-modal" href="#" data-trial-lesson="1" data-video-url="{{ school_schedule.trial_lesson|safe }}">Пробный урок</a>

@ -2,12 +2,13 @@
<div class="section__center center text-center">
<a
{% if not is_purchased_future %}
data-popup=".js-popup-buy"
href="{% url 'packages' %}"
{% else %}
href="#"
{% endif %}
class="main__btn btn"
href="#"
>
{% if not is_purchased and not is_purchased_future %}Купить доступ от {{ min_school_price }} руб./месяц{% endif %}
{% if not is_purchased and not is_purchased_future %}Узнать стоимость{% endif %}
{% if is_purchased_future and not is_purchased %}ваша подписка начинается {{school_purchased_future.date_start}}{% endif %}
{% if is_purchased %}ваша подписка истекает {{ subscription_ends_humanize }}<br/>перейти к оплате{% endif %}
</a>

@ -30,13 +30,13 @@
ГЛАВНАЯ
</a>
</div>
<!-- <div class="header__group">
<div class="header__group">
<a class="header__section {% active_link 'school:school' %}" href="{% url 'school:school' %}">
ОНЛАЙН-ШКОЛА {% if online or livelesson.is_online %}
<div class="header__dot"></div>
{% endif %}
</a>
</div> -->
</div>
<!--<div class="header__group">-->
<!--<a class="header__section {% active_link 'school:drawing-camp' %}" href="{% url 'school:drawing-camp' %}">-->
@ -45,11 +45,11 @@
<!--{% endif %}-->
<!--</a>-->
<!--</div>-->
<div class="header__group">
<a class="header__section {% active_link 'school:free-lessons' %}" href="{% url 'school:free-lessons' %}">
БЕСПЛАТНЫЕ УРОКИ
</a>
</div>
<!--<div class="header__group">-->
<!--<a class="header__section {% active_link 'school:free-lessons' %}" href="{% url 'school:free-lessons' %}">-->
<!--БЕСПЛАТНЫЕ УРОКИ-->
<!--</a>-->
<!--</div>-->
<div class="header__group">
<a class="header__section header__section_sub js-header-section {% active_link 'courses' %}" href="{% url 'courses' %}">ВИДЕО-КУРСЫ</a>
<div class="header__list js-header-list">

Loading…
Cancel
Save