LIL-298. Fix notification settings template

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 2b17eafb86
commit f7ac50afd9
  1. 41
      apps/user/templates/user/notification-settings.html

@ -24,42 +24,25 @@
{% endif %}
<div class="section section_gray">
<div class="section__center center center_xs">
<div class="form">
<form class="form" method="POST">{% csrf_token %}
<div class="form__group">
<div class="form__title">Уведомления и рассылка</div>
{% for category in subscription_categories %}
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox" checked>
<span class="switch__content">Новости школы</span>
</label>
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox" checked>
<span class="switch__content">Новые курсы</span>
</label>
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox">
<span class="switch__content">Бонусы от партнеров</span>
</label>
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox">
<span class="switch__content">Акции</span>
</label>
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox" checked>
<span class="switch__content">Партнерские акции</span>
</label>
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox">
<span class="switch__content">Новости компании</span>
</label>
<label class="form__switch switch switch_blue">
<input class="switch__input" type="checkbox">
<span class="switch__content">Комментарии в которых участвуете</span>
<input
name='category'
value="{{ category.id }}"
class="switch__input"
type="checkbox"
{% if request.user.email_subscription and category in request.user.email_subscription.categories.all %}checked{% endif %}>
<span class="switch__content">{{ category.title }}</span>
</label>
{% endfor %}
</div>
<div class="form__foot">
<button class="form__btn btn btn_md">СОХРАНИТЬ</button>
</div>
</div>
</form>
</div>
</div>
{% endblock content %}
{% endblock content %}

Loading…
Cancel
Save