{{ snippet("header") }}

  <table>
{% for element_id, element in elements %}
{% if element.element_type == constant("FORM_SEPARATOR") %}
<tr>
    <td colspan="2"><hr width="100%" /></td>
</tr>
{% elseif element.element_type == constant("FORM_HEADER") %}
<tr>
    <td colspan="2"><b>{{ element.description }}</b></td>
</tr>
{% elseif element.element_type != constant("FORM_FILE") %}
<tr>
    <td>{{ element.description }}:&nbsp;</td>
    <td>
        {% set value=form_values[element_id] %}

        {% if element.element_type == constant("FORM_SELECT") or element.element_type == constant("FORM_RADIO") %}
            {{ element.variants[value].description }}
        {% elseif element.element_type == constant("FORM_CHECKBOX") %}
            {% if value == 'Y' %}{{ __("yes") }}{% else %}{{ __("no") }}{% endif %}
        {% elseif element.element_type == constant("FORM_TEXTAREA") %}
            {{ value|nl2br }}
        {% elseif element.element_type == constant("FORM_DATE") %}
            {{ value|date(settings.Appearance.date_format) }}
        {% else %}
            {{ value }}
        {% endif %}
    </td>
</tr>
{% endif %}
{% endfor %}
</table>

{{ snippet("footer") }}