{% extends '@IGACoreBundle/layout.html.twig' %} {% block title %}{{ 'SMS'|phrase|lower|capitalize }}{% endblock title %} {% block head_style %} {{ parent() }} {% endblock head_style %} {% block page_header_h1 %}{{ 'Show SMS'|phrase|lower|capitalize }}{% endblock page_header_h1 %} {% block content %}

 

{% if pagination|length > 0 %} {% for recipient in pagination %} {% endfor %}
{{ knp_pagination_sortable(pagination, 'To Name'|phrase, 'mr.to_name') }} {{ knp_pagination_sortable(pagination, 'To Number'|phrase, 'mr.to_e_mail') }} {{ knp_pagination_sortable(pagination, 'Date Sent'|phrase, 'mr.date_sent') }} {{ 'Stats'|phrase }}
{{ recipient.toName }} {{ recipient.toEMail }} {{ recipient.dateSent.format('d F Y H:i:s') }} {{ 'Delivered'|phrase }}: {{ recipient.isDelivered|yes_no }} - {{ recipient.deliveredDateString }}
{{ 'Unsubscribed'|phrase }}: {{ recipient.unsubscribed|yes_no }} - {{ recipient.unsubscribedDateString }}
{{ 'Errors'|phrase }}: {{ recipient.messageError|length }}
{% if recipient.messageError|length > 0 %} {% for error in recipient.messageError %} {{ error.createdAt.format('d F Y H:i:s') }}: {{ error.text }} {% endfor %} {% endif %}
{% else %}
{{ 'No message recipients found' }}
{% endif %}

 

{{ 'From'|phrase }}:
{{ message.fromName }} {{ message.fromEMail }}
{{ 'Date to be Sent'|phrase }}:
{{ message.dateToBeSent.format('j F Y H:i:s') }}
{{ 'Created by'|phrase }}:
{{ createdByUser.fullNameString }}
{{ 'Created at'|phrase }}:
{{ message.createdAt.format('j F Y H:i:s') }}
{{ message.text|raw }}
{% endblock content %}