{% extends "users/settings_base.html" %} {% block title %} {{ _("Email and Notifications - %(username)s", username=user.username) }} {% endblock %} {% block pane %}

{{ _("Email and Notifications") }}

{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
{{ form.hidden_tag() }}

{{ _("Email Address") }}

{{ render_field(form.email, tabindex=100) }}

{{ _("Your email is needed to recover your account if you forget your password, and to send (configurable) notifications.") }} {{ _("Your email will never be shared with a third-party.") }}

{% if user.email_verifications.filter_by(is_password_reset=False).count() > 0 %}

{{ _("There is at least one verification pending.") }}

{% endif %}

{{ _("Notification Settings") }}

{% if is_new %}

{{ _("Email notifications are currently turned off. Click 'save' to enable.") }}

{% endif %}

{{ _("Configure whether certain types of notifications are sent immediately, or as part of a daily digest.") }}

{% for type in types %} {% endfor %}
{{ _("Event") }} {{ _("Description") }} {{ _("Immediately") }} {{ _("In digest") }}
{{ type.getTitle() }} {{ type.get_description() }} {{ render_checkbox_field(form["pref_" + type.toName()]) }} {{ render_checkbox_field(form["pref_" + type.toName() + "_digest"]) }}

{{ render_submit_field(form.submit, tabindex=280) }}

{% endblock %}