{% extends 'Admin/layout.html.twig' %}
{%- import 'Admin/Form/macros.html.twig' as m -%}

{% block body %}
    <header>
        <ul class="btns">
            <li class="btns-back">
                {{ m.step_back() }}
            </li>
        </ul>
        
        <h1>
            {{ 'action.preview.contact'|trans({'%fullname%':contact.fullname,'%created_time%':contact.created|date("H:i"),'%created_date%':contact.created|date("d/m/Y")}, 'action') }}
        </h1>
    </header>

    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.firstname.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ contact.firstname|striptags|raw }}</p>
        </div>
    </div>
    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.lastname.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ contact.lastname|striptags|raw }}</p>
        </div>
    </div>
    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.company.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ contact.company|striptags|raw }}</p>
        </div>
    </div>
    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.email.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ contact.email|striptags|raw }}</p>
        </div>
    </div>
    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.category.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ ('form.contact.category.' ~ contact.category)|trans({}, 'form') }}</p>
        </div>
    </div>
    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.subject.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ ('form.contact.subject.' ~ contact.subject)|trans({}, 'form') }}</p>
        </div>
    </div>
    <div class="form-row">
        <div class="form-row-label">
            <label>{{ 'form.contact.message.label'|trans({}, 'form') }}</label>
        </div>
        <div class="form-row-field">
            <p>{{ contact.message|striptags|raw }}</p>
        </div>
    </div>
{% endblock %}
