{% import 'macros_form.html' as form without context %}
{% call form.box(table=True, title=trans('desktop_notifications')) %}
{{ form.tablefield(label=trans('choice_activate_desktop_notifications'),
checked=activate_desktop_notifications,
name='%sactivate_desktop_notifications' % uid,
type='checkbox') }}
{% endcall %}
{% call form.box(table=True, title=trans('e_mail_notifications')) %}
{{ form.tablefield(label=trans('choice_notify_on_invitation'),
checked=notify_on_invitation,
name='%snotify_on_invitation' % uid,
type='checkbox') }}
{% endcall %}
{% call form.box(table=True, title=trans('choice_confirm_events_title')) %}
{{ form.tablefield(label=trans('choice_confirm_events_on_logout'),
checked=confirm_events_on_logout,
name='%sconfirm_events_on_logout' % uid,
type='checkbox') }}
{% if confirm_messages %}
{{ form.tablefield(label=trans('choice_confirm_messages_on_logout'),
checked=confirm_messages_on_logout,
name='%sconfirm_messages_on_logout' % uid,
type='checkbox') }}
{% endif %}
{% endcall %}