src/Products/NotificationsBundle/Resources/views/dashboard/lists/main.html.twig line 75

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