{# subject: New submission on your {{ form.name }} form #}
{# fromEmail: __placeholderFromEmail__ #}
{# fromName: __placeholderFromName__ #}
{# replyToName: #}
{# replyToEmail: #}
{# cc: #}
{# bcc: #}
{# includeAttachments: true #}
{# presetAssets: #}
{# templateWrapper: #}
{# description: New submission email notification template. #}

<h2>New submission on your {{ form.name }} form</h2>

<p>Submitted on: {{ dateCreated|date('l, F j, Y \\a\\t g:ia') }}</p>
<ul>
{% for field in allFields %}
    <li>
        {{ field.label }}:
        {% if field.implements('options') %}
            {{ field.labelsAsString }}
        {% else %}
            {{ field.valueAsString }}
        {% endif %}
    </li>
{% endfor %}
</ul>

{# text #}
Submitted on: {{ dateCreated|date('l, F j, Y \\a\\t g:ia') }}

{% for field in allFields %}
- {{ field.label }}: {% if field.implements('options') -%}
        {{- field.labelsAsString }}
    {%- else -%}
        {{- field.valueAsString }}
{% endif %}
{% endfor %}
{# /text #}
