|
|
|
|
@ -25,15 +25,17 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="go__title">Вернуться</div> |
|
|
|
|
</a> |
|
|
|
|
{% if not paid or not pending %} |
|
|
|
|
{% if not paid %} |
|
|
|
|
<a |
|
|
|
|
class="go__btn btn btn_md" |
|
|
|
|
class="go__btn btn{% if pending %} btn_gray{% endif %} btn_md" |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
{% if not pending %} |
|
|
|
|
href="{% url 'course-checkout' course.id %}" |
|
|
|
|
{% endif %} |
|
|
|
|
{% else %} |
|
|
|
|
data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
>КУПИТЬ КУРС</a> |
|
|
|
|
>{% if pending %}ОЖИДАЕТСЯ ПОДТВЕРЖДЕНИЕ ОПЛАТЫ{% else %}КУПИТЬ КУРС{% endif %}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
@ -385,14 +387,18 @@ |
|
|
|
|
<div class="meta__title">{{ course.price|floatformat:"-2" }}₽</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<button |
|
|
|
|
class="course__buy btn btn_md" |
|
|
|
|
{% if not paid %} |
|
|
|
|
<a |
|
|
|
|
class="go__btn btn{% if pending %} btn_gray{% endif %} btn_md" |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
data-popup=".js-popup-buy" |
|
|
|
|
{% if not pending %} |
|
|
|
|
href="{% url 'course-checkout' course.id %}" |
|
|
|
|
{% endif %} |
|
|
|
|
{% else %} |
|
|
|
|
data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
>КУПИТЬ КУРС</button> |
|
|
|
|
>{% if pending %}ОЖИДАЕТСЯ ПОДТВЕРЖДЕНИЕ ОПЛАТЫ{% else %}КУПИТЬ КУРС{% endif %}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|