@ -51,20 +51,15 @@
<div class="main__actions">
{% if not is_purchased and not is_purchased_future %}
<a
{% if not is_purchased_future %}
{% 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>
<a class="main__btn btn btn_white" href="{% url 'school:school' %}">Подробнее</a>
</div>
@ -4,7 +4,8 @@ import isEmpty from 'validator/lib/isEmpty';
import isLength from 'validator/lib/isLength';
$(document).ready(function () {
let popup = $('.js-popup-auth'),
let auth = $('.js-auth'),
popup = $('.js-popup-auth'),
type = auth.find('.js-auth-type'),
tab = auth.find('.js-auth-tab'),
login = auth.find('.js-auth-login'),