Fix school payment buttons text

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 6f29341658
commit 8335829b42
  1. 28
      project/templates/blocks/arts.html
  2. 12
      project/templates/blocks/promo.html
  3. 1
      project/views.py

@ -34,15 +34,27 @@
</div>
</div>
<div class="letsgo">
<a
{% if not user.is_authenticated %}
data-popup=".js-popup-auth"
{% else %}
data-popup=".js-popup-buy"
{% endif %}
class="letsgo__btn btn"
href="#"
{% if is_purchased %}
<a
{% if not user.is_authenticated %}
data-popup=".js-popup-auth"
{% else %}
data-popup=".js-popup-buy"
{% endif %}
class="main__btn btn"
href="#"
>ваша подписка истекает {{ subscription_ends_humanize }}<br/>перейти к оплате</a>
{% else %}
<a
{% if not user.is_authenticated %}
data-popup=".js-popup-auth"
{% else %}
data-popup=".js-popup-buy"
{% endif %}
class="main__btn btn"
href="#"
>купить доступ от {{ min_school_price }} руб./месяц</a>
{% endif %}
</div>
</div>
</div>

@ -11,6 +11,17 @@
<div class="main__title">
<span class="main__bold">Lil City School</span> — первая образовательная онлайн-платформа креативного мышления для детей</div>
<div class="main__actions">
{% if is_purchased %}
<a
{% if not user.is_authenticated %}
data-popup=".js-popup-auth"
{% else %}
data-popup=".js-popup-buy"
{% endif %}
class="main__btn btn"
href="#"
>ваша подписка истекает {{ subscription_ends_humanize }}<br/>перейти к оплате</a>
{% else %}
<a
{% if not user.is_authenticated %}
data-popup=".js-popup-auth"
@ -20,6 +31,7 @@
class="main__btn btn"
href="#"
>купить доступ от {{ min_school_price }} руб./месяц</a>
{% endif %}
<a class="main__btn btn btn_white" href="{% url 'school:school' %}">подробнее</a>
</div>
<div class="main__foot">

@ -53,6 +53,7 @@ class IndexView(TemplateView):
'school_schedules_purchased': school_schedules_purchased,
'teachers': User.objects.filter(role=User.TEACHER_ROLE, show_in_mainpage=True),
'subscription_ends': school_payment.first().date_end if school_payment_exists else None,
'subscription_ends_humanize': school_payment.first().date_end_humanize if school_payment_exists else None,
})
return context

Loading…
Cancel
Save