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

Open in your IDE?
  1. {% extends '@ProductsNotifications/base.html.twig' %}
  2. {% do dom_title_section('Messages') %}
  3. {% block header %}
  4.     {% embed '@ui2022/page__header.html.twig' with {
  5.         title: 'Messages',
  6.     } %}
  7.         {% block actions %}
  8.             {% if pagination.results_max %}
  9.                 {% include '@ui2022/button--a.html.twig' with {
  10.                     text: 'Create Message',
  11.                     link: path('app.notifications.dashboard.default.select_modal'),
  12.                     icon: 'icon-message-plane',
  13.                     styles: 'primary',
  14.                     modal: 'modal__new_broadcast',
  15.                 } %}
  16.             {% endif %}
  17.         {% endblock %}
  18.     {% endembed %}
  19. {% endblock %}
  20. {% block content %}
  21.     <div class="row">
  22.         <div class="col">
  23.             {% set filterParameterCount = pagination.results.query.parameters.count ?? 0 %}
  24.             {% if not pagination.results_max and filterParameterCount == 0 %}
  25.                 <div class="row">
  26.                     <div class="col-3"></div>
  27.                     <div class="col-5">
  28.                         <div class="my-5 py-5">
  29.                             <h2>Create your first message</h2>
  30.                             <p>
  31.                                 Click "Create Message" to send your first communication.
  32.                             </p>
  33.                             {% include '@ui2022/button--a.html.twig' with {
  34.                                 text: 'Create Message',
  35.                                 link: path('app.notifications.dashboard.default.select_modal'),
  36.                                 styles: 'primary',
  37.                                 modal: 'modal__new_broadcast',
  38.                             } %}
  39.                             {% include '@ui2022/button--a.html.twig' with {
  40.                                 text: 'Watch Video',
  41.                                 link: 'https://www.schoolnow.com',
  42.                                 target: '_blank',
  43.                                 styles: 'white',
  44.                             } %}
  45.                         </div>
  46.                     </div>
  47.                     <div class="col-1">
  48.                         <div class="my-5 py-5 text-center text-black-50">
  49.                             <i class="far fa-fw fa-8x fa-comment-alt-lines"></i>
  50.                         </div>
  51.                     </div>
  52.                 </div>
  53.             {% elseif not pagination.results_max and filterParameterCount > 0 %}
  54.                 <div class="row">
  55.                     <div class="col-3"></div>
  56.                     <div class="col-5">
  57.                         <div class="my-5 py-5">
  58.                             <h2>Sorry, no messages were found matching that criteria</h2>
  59.                             {% include '@ui2022/button--a.html.twig' with {
  60.                                 text: 'Clear Search Filter',
  61.                                 link: path('app.notifications.dashboard.messages.main'),
  62.                                 styles: 'white',
  63.                             } %}
  64.                         </div>
  65.                     </div>
  66.                     <div class="col-1">
  67.                         <div class="my-5 py-5 text-center text-black-50">
  68.                             <i class="far fa-fw fa-8x fa-comment-alt-lines"></i>
  69.                         </div>
  70.                     </div>
  71.                 </div>
  72.             {% else %}
  73.                 {% include '@ProductsNotifications/dashboard/messages/includes/_filter.html.twig' %}
  74.                 <div id="{{ form.vars.id }}__results">
  75.                     {% include '@ProductsNotifications/dashboard/messages/includes/_results.html.twig' %}
  76.                 </div>
  77.             {% endif %}
  78.         </div>
  79.     </div>
  80. {% endblock %}
  81. {% block modals %}
  82.     {{ parent() }}
  83.     {% include '@ui2022/modal.html.twig' with {
  84.         dialog_styles: 'scrollable centered',
  85.         attr: {
  86.             id: 'modal__new_broadcast',
  87.             class: 'modal-ajax',
  88.         },
  89.     } %}
  90.     {% include '@ui2022/modal.html.twig' with {
  91.         attr: {
  92.             id: 'modal__result_delete',
  93.             class: 'modal-ajax modal-delete',
  94.         },
  95.         dialog_styles: 'dialog--createmsg',
  96.     } %}
  97.     {% include '@ui2022/modal.html.twig' with {
  98.         attr: {
  99.             id: 'modal__result_unschedule',
  100.             class: 'modal-ajax modal-delete',
  101.         },
  102.         dialog_styles: 'dialog--createmsg',
  103.     } %}
  104. {% endblock %}