{# The payment reminder dialog. A near-copy of core's `events/registration/management/email.html`, and it has to be a copy rather than a reuse: that template builds the preview URL with the relative endpoint `.email_registrants_preview`, which resolves against whichever blueprint is handling the request -- so rendering it from this plugin's blueprint asks Flask for `plugin_stsa.email_registrants_preview` and raises `BuildError`. The preview button keeps core's `preview-email` id, because core's own delegated click handler is what drives it. #} {% from 'forms/_form.html' import form_header, form_rows, form_footer %} {% from 'message_box.html' import message_box %} {% if not form %} {% call message_box('success') %} {% trans %}Nobody on this registration form owes anything right now.{% endtrans %} {% endcall %}
{% else %} {# Two paragraphs rather than two sentences: the box is as wide as the dialog, so run together they come out as one line of small print that nobody finishes reading. `

` is the idiom the message box is built for -- `_messageboxes.scss` already trims the margin off its first and last child paragraph, which is why neither needs a class here. #} {% call message_box('info') %}

{%- trans count=count, outstanding=outstanding -%} One registrant has not paid, and owes {{ outstanding }}. {%- pluralize -%} {{ count }} registrants have not paid, and owe {{ outstanding }} between them. {%- endtrans -%}

{%- trans %}Everybody listed below gets this e-mail. Registrations that were paid while this dialog was open are dropped when you send.{% endtrans -%}

{% endcall %} {{ form_header(form) }} {{ form_rows(form) }} {% call form_footer(form) %} {% endcall %} {% endif %}