43 lines
1.8 KiB
HTML
43 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ _('Notifications') }} · {{ appearance.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<p><a href="/account">← {{ _('My account') }}</a></p>
|
|
<section class="card narrow">
|
|
<h1>{{ _('Notifications') }}</h1>
|
|
<p>{{ _('Emails go to %(address)s in the language of your profile.', address=user.email) }}</p>
|
|
<form method="post" action="/account/notifications" class="form">
|
|
{{ csrf_field(request) }}
|
|
{% for audience, title in (('participant', _('When I take part')), ('manager', _('For forms I manage'))) %}
|
|
<fieldset class="options-editor">
|
|
<legend>{{ title }}</legend>
|
|
{% for key, event in events.items() if event.audience == audience %}
|
|
<label class="check"><input type="checkbox" name="event_{{ key }}" {% if key in enabled %}checked{% endif %}> {{ _(event.label) }}</label>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{% endfor %}
|
|
<p class="hint">{{ _('Messages about your account (invitation, password reset) are always sent. For anonymous forms you get no emails about your participation.') }}</p>
|
|
<button type="submit">{{ _('Save') }}</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="card narrow">
|
|
<h2>{{ _('Unsubscribed forms') }}</h2>
|
|
{% if muted %}
|
|
<p>{{ _('You get no notifications about these forms:') }}</p>
|
|
<ul class="plain-list">
|
|
{% for f in muted %}
|
|
<li>
|
|
{{ f.title }}
|
|
<form method="post" action="/account/notifications/unmute/{{ f.public_id }}" class="inline">
|
|
{{ csrf_field(request) }}<button type="submit" class="link">{{ _('Receive again') }}</button>
|
|
</form>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p class="hint">{{ _('None. You can unsubscribe from a single form with the link at the end of each notification.') }}</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endblock %}
|