{% extends "base.html" %} {% block title %}{{ _('Follow-up email') }} · {{ form.title }} · {{ appearance.name }}{% endblock %} {% macro val(name, default='') %}{% if values %}{{ (values.get(name) or [''])[0] }}{% else %}{{ default }}{% endif %}{% endmacro %} {% block content %}

← {{ _('Follow-up emails') }}

{% set trigger = (values.get('trigger') or ['manual'])[0] if values else (followup.trigger if followup else 'manual') %}

{% if followup %}{{ _('Follow-up email') }}{% else %}{{ _('New follow-up email') }}{% endif %}

{% if form.anonymous %}

{{ _('This form is anonymous. No addresses are stored with the answers, so follow-up emails cannot be sent.') }}

{% endif %} {% if error %}{% endif %}
{{ csrf_field(request) }}

{{ _('Placeholders: {name} (name of the person; empty for guests) and {form} (title of the form). Plain text; web addresses become links.') }}

{% if not followup %}
{{ _('Documents') }} {% if doc_error %}{% endif %}

{{ _('Documents are not attached to the email. Each recipient gets personal download links at the end of the text instead; this keeps emails small.') }} {{ _('PDF, Office documents, images or ZIP, at most %(n)s MB each. Images are re-encoded without metadata such as location. The email contains personal links, no attachments. Surveybox only counts downloads, without reference to the person.', n=upload_max_mb) }}

{{ _('After saving you can add more documents, give them titles and remove them.') }}

{% else %}

{{ _('The documents below are not attached; each recipient gets personal download links at the end of the text.') }} {{ _('Documents') }}

{% endif %}
{{ _('When is the email sent?') }} {% for key, label in trigger_names.items() %} {% endfor %}

{{ _('Each person gets each follow-up email at most once, also after changing their answer. With “Right after taking part”, guests get it once they have confirmed their address.') }}

{% set catch_up = (values.get('catch_up') or [''])[0] if values else ('' if not followup or followup.catch_up is none else ('yes' if followup.catch_up else 'no')) %} {% set only = (values.get('only_confirmed') or [''])[0] == 'on' if values else (followup.only_confirmed if followup else false) %}

{{ _('Recipients are all participants with a known address: their account or a confirmed guest address. People who have switched off follow-up emails are left out.') }}

{% if followup %}

{{ _('Documents') }}

{% if doc_error %}{% endif %} {% if documents %} {% endif %}
{{ csrf_field(request) }}

{{ _('PDF, Office documents, images or ZIP, at most %(n)s MB each. Images are re-encoded without metadata such as location. The email contains personal links, no attachments. Surveybox only counts downloads, without reference to the person.', n=upload_max_mb) }}

{{ _('Preview and sending') }}

{% if sent is defined and sent is not none %}

{{ ngettext('Sent to %(num)d person.', 'Sent to %(num)d people.', sent) }}

{% endif %}

{{ ngettext('Already sent to %(num)d person.', 'Already sent to %(num)d people.', stats.delivered) }} {% if followup.sent_at %}{{ _('Scheduled sending done on %(date)s.', date=followup.sent_at | datetime) }}{% endif %}

{% if not form.anonymous %}

{{ _('Show recipients and send to individual people') }}

{% endif %} {% if preview %}

{{ _('Subject') }}: {{ preview.subject }}

{{ preview.text }}
{% endif %} {% if send_error %}{% endif %} {% if not form.anonymous %}
{{ csrf_field(request) }}
{% endif %}

{{ _('Delete follow-up email') }}

{{ csrf_field(request) }}

{{ _('Download links in emails already sent stop working.') }}

{% endif %} {% endblock %}