{% extends '@PhpListFrontend/public/base.html.twig' %} {% block title %}{{ language_texts.strSubscribeTitle|default('Subscribe') }}{% endblock %} {% block body %}
{% if success_html %}
{{ success_html|raw }}
{% else %} {% if data['intro'] is defined and data['intro'] is not empty %}
{{ data['intro']|raw }}
{% endif %}
* {{ language_texts.strRequired|default('required fields are marked red') }}
{% if form_errors is not empty %}
{% for error in form_errors %}

{{ error }}

{% endfor %}
{% endif %}
{% if admin is not null %}

You are logged in as administrator ({{ admin.loginName }}) of this phpList system

You are therefore offered the following choice, which your subscribers will not see when they load this page.

Go back to admin area

Please choose

{% endif %}
{% if email_double_entry %}
{% endif %} {% if html_choice == 'textonly' %} {% elseif html_choice == 'htmlonly' %} {% elseif html_choice == 'checkfortext' %}
{% elseif html_choice == 'radiotext' or html_choice == 'radiohtml' %}

{{ language_texts.strPreferredFormat|default('Preferred format') }}

{% else %}
{% endif %} {% for attribute in attributes %} {% set field = 'attribute' ~ attribute.id %} {% set value = form_data.attributes[attribute.id]|default(attribute.default_value|default('')) %} {% if attribute.type == 'checkbox' %}
{% elseif attribute.type == 'radio' %}

{{ attribute.name }}{% if attribute.required %} *{% endif %}

{% for option in attribute.options %} {% endfor %}
{% elseif attribute.type == 'select' %}
{% elseif attribute.type == 'checkboxgroup' %}

{{ attribute.name }}{% if attribute.required %} *{% endif %}

{% set selectedOptions = value is iterable ? value : [] %} {% for option in attribute.options %} {% endfor %}
{% elseif attribute.type == 'textarea' %}
{% elseif attribute.type == 'hidden' %} {% elseif attribute.type == 'date' %}
{% else %}
{% endif %} {% endfor %}
{{ language_texts.strPleaseSelect|default('Please select the newsletters you want to sign up to') }}
{% for list in lists %} {% endfor %}
{% if show_unsubscribe_link %} {{ language_texts.strUnsubscribe|default('Unsubscribe') }} {% endif %}
{% endif %}
{% endblock %}