{% extends '@ProductsNotifications/base.html.twig' %}
{% do dom_title_section('Messages') %}
{% block wrap %}content__area--uilib reports{% endblock %}
{% block header %}
{% embed '@ui2022/schoolnow/header.html.twig' with {
title: message.title,
back: {
text: 'Back to Messages',
link: path('app.notifications.dashboard.messages.main'),
},
} %}
{% block actions %}
{% include '@ui2022/button--a.html.twig' with {
text: 'Clone message',
link: path('app.notifications.dashboard.messages.create', {
clone: message.id,
}),
styles: 'gray',
} %}
{% endblock %}
{% endembed %}
{% endblock %}
{% block content %}
{% if not message.firstJob %}
<div class="content__data reports__message pt-2">
<div class="blockgroup">
<label class="blockgroup__label">Message</label>
<h2 class="h4">{{- message.title -}}</h2>
</div>
</div>
{% else %}
<div class="content__data reports__message pt-2">
{% embed '@ui2022/tabs--static.html.twig' with {
items: [
{
text: 'Summary',
link: path('app.notifications.dashboard.messages.report', {
message: message.id,
}),
active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.report')),
},
{
text: 'Logs',
link: path('app.notifications.dashboard.messages.logs', {
message: message.id,
}),
active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.logs')),
},
{
text: 'Debugging',
link: path('app.notifications.dashboard.messages.debugging', {
message: message.id,
}),
active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.debugging')),
},
{
text: 'Details',
link: path('app.notifications.dashboard.messages.details', {
message: message.id,
}),
active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.details')),
},
],
} %}
{% block tab %}
{% include '@ProductsNotifications/dashboard/messages/includes/_message_details.html.twig' with { message: message, preview: true} %}
{% endblock %}
{% endembed %}
</div>
{% endif %}
{% endblock %}