src/Products/NotificationsBundle/Resources/views/dashboard/messages/details.html.twig line 1

Open in your IDE?
  1. {% extends '@ProductsNotifications/base.html.twig' %}
  2. {% do dom_title_section('Messages') %}
  3. {% block wrap %}content__area--uilib reports{% endblock %}
  4. {% block header %}
  5.     {% embed '@ui2022/schoolnow/header.html.twig' with {
  6.         title: message.title,
  7.         back: {
  8.             text: 'Back to Messages',
  9.             link: path('app.notifications.dashboard.messages.main'),
  10.         },
  11.     } %}
  12.         {% block actions %}
  13.             {% include '@ui2022/button--a.html.twig' with {
  14.                 text: 'Clone message',
  15.                 link: path('app.notifications.dashboard.messages.create', {
  16.                     clone: message.id,
  17.                 }),
  18.                 styles: 'gray',
  19.             } %}
  20.         {% endblock %}
  21.     {% endembed %}
  22. {% endblock %}
  23. {% block content %}
  24.     {% if not message.firstJob %}
  25.         <div class="content__data reports__message pt-2">
  26.             <div class="blockgroup">
  27.                 <label class="blockgroup__label">Message</label>
  28.                 <h2 class="h4">{{- message.title -}}</h2>
  29.             </div>
  30.         </div>
  31.     {% else %}
  32.         <div class="content__data reports__message pt-2">
  33.             {% embed '@ui2022/tabs--static.html.twig' with {
  34.                 items: [
  35.                     {
  36.                         text: 'Summary',
  37.                         link: path('app.notifications.dashboard.messages.report', {
  38.                         message: message.id,
  39.                     }),
  40.                         active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.report')),
  41.                     },
  42.                     {
  43.                         text: 'Logs',
  44.                         link: path('app.notifications.dashboard.messages.logs', {
  45.                         message: message.id,
  46.                     }),
  47.                         active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.logs')),
  48.                     },
  49.                     {
  50.                         text: 'Debugging',
  51.                         link: path('app.notifications.dashboard.messages.debugging', {
  52.                         message: message.id,
  53.                     }),
  54.                         active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.debugging')),
  55.                     },
  56.                     {
  57.                         text: 'Details',
  58.                         link: path('app.notifications.dashboard.messages.details', {
  59.                             message: message.id,
  60.                         }),
  61.                         active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.messages.details')),
  62.                     },
  63.                 ],
  64.             } %}
  65.                 {% block tab %}
  66.                     {% include '@ProductsNotifications/dashboard/messages/includes/_message_details.html.twig' with { message: message, preview: true} %}
  67.                 {% endblock %}
  68.             {% endembed %}
  69.         </div>
  70.     {% endif %}
  71. {% endblock %}