Update school buy popup

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 67f8e8a104
commit d47a09bf9e
  1. 23
      project/templates/blocks/popup_buy.html

@ -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">

Loading…
Cancel
Save