|
|
|
|
@ -20,6 +20,28 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="buy__col"> |
|
|
|
|
<div class="buy__list"> |
|
|
|
|
{% if all_school_schedules %} |
|
|
|
|
{% for school_schedule in all_school_schedules %} |
|
|
|
|
<label class="switch switch_lesson"> |
|
|
|
|
<input |
|
|
|
|
class="switch__input" |
|
|
|
|
type="checkbox" |
|
|
|
|
data-day="{{school_schedule.weekday}}" |
|
|
|
|
data-price="{{school_schedule.month_price}}" |
|
|
|
|
autocomplete="off" |
|
|
|
|
{% if school_schedule.weekday in school_schedules_purchased or not is_purchased %} |
|
|
|
|
checked |
|
|
|
|
{% endif %}> |
|
|
|
|
<span class="switch__content"> |
|
|
|
|
<span class="switch__cell">{{ school_schedule }}</span> |
|
|
|
|
{% comment %} dont delete {% endcomment %} |
|
|
|
|
<span class="switch__cell"></span> |
|
|
|
|
<span class="switch__cell">{{ school_schedule.title }}</span> |
|
|
|
|
<span class="switch__cell">{{school_schedule.month_price}}р</span> |
|
|
|
|
</span> |
|
|
|
|
</label> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% else %} |
|
|
|
|
{% for school_schedule in school_schedules %} |
|
|
|
|
<label class="switch switch_lesson"> |
|
|
|
|
<input |
|
|
|
|
@ -40,6 +62,7 @@ |
|
|
|
|
</span> |
|
|
|
|
</label> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="buy__col"> |
|
|
|
|
|