|
|
|
|
@ -28,8 +28,7 @@ |
|
|
|
|
<div>{{ package.options_html|safe }}</div> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<a class="package__btn btn {% if forloop.counter == 2 %}btn_light{% endif %} |
|
|
|
|
{% if school_months_left < package.duration %}btn_disabled{% endif %}" |
|
|
|
|
<a class="package__btn btn {% if forloop.counter == 2 %}btn_light{% endif %}" |
|
|
|
|
{% if forloop.counter == 1 %} |
|
|
|
|
style="background-image: linear-gradient(104deg, #f8f8f8, #fff2f2)" |
|
|
|
|
{% endif %} |
|
|
|
|
@ -37,20 +36,16 @@ |
|
|
|
|
style="background-image: linear-gradient(to bottom, #ffe790, #f9d055 45%, #f9c155); padding: 12px 9px;" |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{# if school_months_left >= package.duration #} |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
href="{% url 'school-checkout' %}?duration={{ package.duration }}" |
|
|
|
|
{% else %} |
|
|
|
|
href="#" data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
{# else %}href="#"{% endif #} |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
href="{% url 'school-checkout' %}?duration={{ package.duration }}" |
|
|
|
|
{% else %} |
|
|
|
|
href="#" data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
>{% if forloop.counter == 4 %}Вступить в Lil-Клуб{% else %}Купить{% endif %}</a> |
|
|
|
|
</div> |
|
|
|
|
{% if next_buy_date %} |
|
|
|
|
<div style="font-size: 12px; margin-top: 10px; height: 15px;"> |
|
|
|
|
{# if school_months_left >= package.duration #} |
|
|
|
|
на {{ package.duration|rupluralize:"месяц,месяца,месяцев" }} с {{ next_buy_date|date:'j b' }} |
|
|
|
|
{# endif #} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if forloop.counter == 4 %} |
|
|
|
|
|