|
|
|
@ -25,14 +25,16 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="go__title">Вернуться</div> |
|
|
|
<div class="go__title">Вернуться</div> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<button |
|
|
|
{% if not paid or not pending %} |
|
|
|
|
|
|
|
<a |
|
|
|
class="go__btn btn btn_md" |
|
|
|
class="go__btn btn btn_md" |
|
|
|
{% if user.is_authenticated %} |
|
|
|
{% if user.is_authenticated %} |
|
|
|
data-popup=".js-popup-buy" |
|
|
|
href="{% url 'course-checkout' course.id %}" |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
data-popup=".js-popup-auth" |
|
|
|
data-popup=".js-popup-auth" |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
>КУПИТЬ КУРС</button> |
|
|
|
>КУПИТЬ КУРС</a> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="course" |
|
|
|
class="course" |
|
|
|
@ -156,7 +158,7 @@ |
|
|
|
<img class="video__pic" src="{{ course.cover.image.url }}"/> |
|
|
|
<img class="video__pic" src="{{ course.cover.image.url }}"/> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<img class="video__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
<img class="video__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if course.is_deferred_start %} |
|
|
|
{% if course.is_deferred_start %} |
|
|
|
<div class="video__soon"> |
|
|
|
<div class="video__soon"> |
|
|
|
<div class="video__title">Курс начнется:</div> |
|
|
|
<div class="video__title">Курс начнется:</div> |
|
|
|
@ -306,7 +308,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="course course_promo" |
|
|
|
class="course course_promo" |
|
|
|
style="background-image: url({% if course.cover %}{{ course.cover.image.url }}{% else %}{% static 'img/no_cover.png' %}{% endif %});" |
|
|
|
style="background-image: url({% if course.cover %}{{ course.cover.image.url }}{% else %}{% static 'img/no_cover.png' %}{% endif %});" |
|
|
|
> |
|
|
|
> |
|
|
|
@ -383,7 +385,7 @@ |
|
|
|
<div class="meta__title">{{ course.price|floatformat:"-2" }}₽</div> |
|
|
|
<div class="meta__title">{{ course.price|floatformat:"-2" }}₽</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<button |
|
|
|
<button |
|
|
|
class="course__buy btn btn_md" |
|
|
|
class="course__buy btn btn_md" |
|
|
|
{% if user.is_authenticated %} |
|
|
|
{% if user.is_authenticated %} |
|
|
|
data-popup=".js-popup-buy" |
|
|
|
data-popup=".js-popup-buy" |
|
|
|
@ -459,4 +461,4 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endblock content %} |
|
|
|
{% endblock content %} |
|
|
|
|