{% if external %}
{% extends 'email_layout_external.html' %}
{% else %}
{% extends 'email_layout_internal.html' %}
{% endif %}
{% block body %}
{% trans %}User: {% endtrans %} {{ user.name }} <{{ user.email }}>
{% trans %}Date: {% endtrans %} {{ request_date | format_datetime("long") }}
{% trans %}Service: {% endtrans %} {{ form.service | d("undefined") }}
{% for field in form %}
{# Include a line break between each field. #}
{{ field.label }}:
{# For TextArea widget make a clear separation. #}
{% if field.widget.__class__.__name__ == 'TextArea' %}
{{ field.data }}
{% elif field.choices is defined %} {# Form select field, provide the key and display name #} {% set ns = namespace(label='') %} {% for choice in field.choices %} {% if choice[0] == field.data %} {% set ns.label = choice[1] %} {% endif %} {% endfor %} {{ ns.label }} ({{ field.data }}) {% else %} {{ field.data }} {% endif %} {% endfor %} {# If form contains note (failed execution) format it properly #} {% if form.note %}
{% trans %}Note: {% endtrans %}
{% for line in form.note.split('\n') %}
{{ line }}
{% if loop.nextitem %}
{% endif %}
{% endfor %}
You can access and track the status of your ticket here: Ticket#{{ ticket_number }}
{% endif %} {% endblock %}