{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}{{ page_title }}{% endblock %} {% block content %}
{# En-tête #}

Email #{{ emailLog.id }}

{{ emailLog.recipient }}

{% if emailLog.isFailed and emailLog.attemptCount < 5 %}
{% endif %}
{# Contenu principal #}
{# Informations email #}

Informations

Destinataire
{{ emailLog.recipient }}
Sujet
{{ emailLog.subject }}
Statut
{% if emailLog.isSent %} Envoyé {% elseif emailLog.isFailed %} Échoué {% else %} En attente {% endif %}
Tentatives
{{ emailLog.attemptCount }}
Créé le
{{ emailLog.createdAt|date('d/m/Y à H:i:s') }}
{% if emailLog.sentAt %}
Envoyé le
{{ emailLog.sentAt|date('d/m/Y à H:i:s') }}
{% endif %} {% if emailLog.lastAttemptAt %}
Dernière tentative
{{ emailLog.lastAttemptAt|date('d/m/Y à H:i:s') }}
{% endif %} {% if emailLog.templateName %}
Template
{{ emailLog.templateName }}
{% endif %} {% if emailLog.fromEmail %}
Expéditeur
{% if emailLog.fromName %} {{ emailLog.fromName }} <{{ emailLog.fromEmail }}> {% else %} {{ emailLog.fromEmail }} {% endif %}
{% endif %}
{# Erreur si échec #} {% if emailLog.isFailed and emailLog.failureReason %}

Raison de l'échec

{{ emailLog.failureReason }}
{% endif %} {# Preview du contenu #}

Aperçu du Contenu

{# Tabs #}
{# Tab contents #} {% if emailLog.htmlBody %}
{% endif %}
{{ emailLog.body }}
{# Sidebar #}
{# Config SMTP #} {% if emailLog.smtpConfiguration %}

Config SMTP

Nom
{{ emailLog.smtpConfiguration.name }}
Hôte
{{ emailLog.smtpConfiguration.host }}:{{ emailLog.smtpConfiguration.port }}
{% endif %} {# Métadonnées template #} {% if emailLog.templateData %}

Données Template

{{ emailLog.templateData|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% endif %} {# Actions #}
{# Scripts pour tabs #} {% endblock %}