<%inherit file="/template.html" /> <%namespace name="components" file="/components.html"/> <%def name="title()">${_("Send mass message")} <%def name="massmessage_form()">

${_('Send mass message')}

${_('Please note that users may not necessarily receive this message ' 'by email. The message will however show up in their dashboards.')}
${h.field_token()|n}
${_("Filter users ...")}
${_('... by instance:')}
%if c.userbadges:
${_('... by badge:')}
${tiles.badge.badge_selector(c.userbadges, 'filter_badges')}
%endif
${_("Subject")}
${_("Body")}
${_('Use {name} and {salutation} to address the user directly.')}
%if lib.auth.authorization.has('global.admin'): %else: ## Just for reference; this will be set to true anyways unless user gains ## global.admin privileges in between rendering this form and submission %endif
${_('Sender identity')}
%for (key, value) in c.sender_options.iteritems(): %endfor
%if lib.auth.authorization.has('global.message'): %endif

${_("Please note that your e-mail address may be included in this message to give the recipient a method to reply to you.")}

${components.savebox(h.base_url("/"), save_text=_("Preview"))}
<%block name="main_content"> ${massmessage_form()}