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

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' %} {% include './open_lesson.html' %}
{% endif %} {% endif %}
{% else %} {% else %}
{% comment %}
{% if not is_purchased_future and is_drawing_camp %} {% if not is_purchased_future and is_drawing_camp %}
{% include './day_pay_btn.html' %} {% include './day_pay_btn.html' %}
{% endif %} {% endif %}
{% endcomment %}
{% endif %} {% endif %}
{% if not is_purchased and not request.user_agent.is_mobile and school_schedule.trial_lesson %} {% 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> <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"> <div class="section__center center text-center">
<a <a
{% if not is_purchased_future %} {% if not is_purchased_future %}
data-popup=".js-popup-buy" href="{% url 'packages' %}"
{% else %}
href="#"
{% endif %} {% endif %}
class="main__btn btn" 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_future and not is_purchased %}ваша подписка начинается {{school_purchased_future.date_start}}{% endif %}
{% if is_purchased %}ваша подписка истекает {{ subscription_ends_humanize }}<br/>перейти к оплате{% endif %} {% if is_purchased %}ваша подписка истекает {{ subscription_ends_humanize }}<br/>перейти к оплате{% endif %}
</a> </a>

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

Loading…
Cancel
Save