{% extends 'page.html.twig' %} {% block content %} {% if preferences.pref_mail_method == constant('Galette\\Core\\Mailing::METHOD_DISABLED') and constant('GALETTE_MODE') != 'DEMO' %}

{{ _T("- ERROR -") }}

{{ _T("Email sent is disabled in the preferences. Ask galette admin") }}

{% elseif mailing_saved is not defined %}
{{ _T("Mailing information") }}
{% include "elements/mailing_recipients.html.twig" %} {% if mailing.current_step == constant('Galette\\Core\\Mailing::STEP_SENT') %} {% set path = url_for('members') %} {% set text = _T("Go back to members list") %} {% else %} {% set path = '#' %} {% set text = _T("Manage selected members") %} {% endif %} {{ text }}
{% if mailing.current_step == constant('Galette\\Core\\Mailing::STEP_START') %}
{% if attachments|length > 0 %}
{{ _T("Existing attachments:") }}
{% for attachment in attachments %}
{{ _T("Remove attachment") }} {{ attachment.getFileName() }}
{% endfor %}
{% else %}
{{ _T("Attachments") }}
{% endif %}
Multiple file selection using 'ctrl' or 'shift' keys are only available on compatible browsers.") }}">
{% endif %}
{% if mailing.current_step == constant('Galette\\Core\\Mailing::STEP_START') %}
{{ _T("Write your mailing") }}
{% endif %} {% if mailing.current_step == constant('Galette\\Core\\Mailing::STEP_PREVIEW') %}
{{ _T("Preview your mailing") }}
{{ _T("Subject:") }} {{ mailing.subject }}
{{ _T("Message:") }} {% if mailing.html %} {{ mailing.message }} {% else %}
{{ mailing.wrapped_message }}
{% endif %}
{% endif %} {% include "components/forms/csrf.html.twig" %}
{% endif %} {% endblock %} {% block javascripts %} {% if (preferences.pref_mail_method != constant('Galette\\Core\\Mailing::METHOD_DISABLED') or constant('GALETTE_MODE') != 'DEMO') and mailing_saved is not defined %} {% if mailing.current_step != constant('Galette\\Core\\Mailing::STEP_SENT') %} {% endif %} {% endif %} {% endblock %}