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

Loading…
Cancel
Save