Set checkbox checked in popup buy if day purchased

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 8d89b56641
commit 70b9b748e2
  1. 11
      project/templates/blocks/popup_buy.html

@ -28,8 +28,15 @@
<div class="buy__list">
{% for school_schedule in 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">
<input
class="switch__input"
type="checkbox"
data-day="{{school_schedule.weekday}}"
data-price="{{school_schedule.month_price}}"
autocomplete="off"
{% if school_schedule.is_purchased %}
checked
{% endif %}>
<span class="switch__content">
<span class="switch__cell">{{ school_schedule }}</span>
{% comment %} dont delete {% endcomment %}

Loading…
Cancel
Save