ui/twig/dashboards/default.html.twig line 1

Open in your IDE?
  1. {% if app.request.isXmlHttpRequest() %}
  2.     {{ block('content') }}
  3. {% else %}
  4.     {{ embed_title('SchoolNow', 100) }}
  5.     {% include '@ui/dashboards/default/scripts.html.twig' %}
  6.     {% include '@ui/dashboards/default/styles.html.twig' %}
  7.     <div id="cs-console" class="cs-console-lg sb-expand {% block console_classes %}{% endblock %}">
  8.         <div id="cs-console-sidebar" class="{% block console_sidebar_classes %}{% endblock %}">
  9.             <div class="sb-scroll">
  10.                 {% include '@ui/dashboards/default/sidebar/header.html.twig' %}
  11.                 {% block sidebar %}
  12.                     {% include '@ui/dashboards/default/sidebar/content.html.twig' %}
  13.                 {% endblock %}
  14.             </div>
  15.         </div>
  16.         <header id="cs-console-header">
  17.             <a href="{{-
  18.                 (cms is defined and cms.tenant and cms.tenant.isSchoolNow)
  19.                     ? path('app.schoolnow.dashboard.default.main')
  20.                     : path('cms.container.dashboard.dashboard.index')
  21.             -}}" class="cs-brand">
  22.                 <em class="fa fa-home cs-brand-icon"></em>
  23.                 <span class="cs-brand-name">SchoolNow</span>
  24.             </a>
  25.             <div class="cs-topbar-nav-wrap">
  26.                 {% set navhighlight = navhighlight|default('default') %}
  27.                 {% include '@ui/dashboards/default/header/nav.html.twig' %}
  28.                 <div class="pull-right">
  29.                     <ul class="cs-topbar-nav pull-left">
  30.                         <li class="cs-topbar__li-create">
  31.                             <a href="#" data-toggle="modal" data-target="#modal-create" data-backdrop="static" data-keyboard="true">
  32.                                 <span class="cs-topbar__li-text">+ Add</span>
  33.                             </a>
  34.                             {% inline_html %}
  35.                                 {% set modalDepartment = (app.request.attributes.has('department')) ? app.request.attributes.get('department') : null %}
  36.                                 {% if modalDepartment is empty %}
  37.                                     {% set modalDepartment = (app.request.attributes.has('container')) ? app.request.attributes.get('container') : null %}
  38.                                 {% endif %}
  39.                                 {% if modalDepartment is empty %}
  40.                                     {% set modalDepartment = (app.request.attributes.has('containerId')) ? app.request.attributes.get('containerId') : null %}
  41.                                 {% endif %}
  42.                                 {% if instanceof(modalDepartment, 'Cms\\ContainerBundle\\Entity\\Container') %}
  43.                                     {% set modalDepartment = modalDepartment.id %}
  44.                                 {% endif %}
  45.                                 {% include '@ui/create/modals/full.html.twig' with {
  46.                                     htmlId: 'modal-create',
  47.                                     ajax: path('cms.container.dashboard.dashboard.create_modal', {
  48.                                         department: modalDepartment
  49.                                     }),
  50.                                 } %}
  51.                             {% endinline %}
  52.                         </li>
  53.                         <li class="cs-topbar__li-recent">
  54.                             <a href="#" data-toggle="modal" data-target="#modal-recent" data-backdrop="static" data-keyboard="true">
  55.                                 <span class="cs-topbar__li-text">Recent</span>
  56.                             </a>
  57.                             {% inline_html %}
  58.                                 {% include '@ui/create/modals/full.html.twig' with {
  59.                                     htmlId: 'modal-recent',
  60.                                     ajax: path('cms.container.dashboard.dashboard.recents_modal', {}),
  61.                                 } %}
  62.                             {% endinline %}
  63.                         </li>
  64.                         <li class="cs-topbar__li-help">
  65.                             <a href="#" data-toggle="modal" data-target="#modal-help" data-backdrop="static" data-keyboard="true">
  66.                                 <span class="cs-topbar__li-text">Help</span>
  67.                             </a>
  68.                             {% inline_html %}
  69.                                 {% include '@ui/create/modals/full.html.twig' with {
  70.                                     htmlId: 'modal-help',
  71.                                     ajax: path('cms.container.dashboard.dashboard.help_modal', {})
  72.                                 } %}
  73.                             {% endinline %}
  74.                         </li>
  75.                         <li class="cs-topbar-control{% if 'system' is same as(navhighlight) %} active{% endif %}">
  76.                             <a href="{{ path('platform.security.dashboard.profile.landing') }}">
  77.                                 <em class="cs-topbar__icon fa fa-gear"></em>
  78.                                 <span class="sr-only">Settings</span>
  79.                             </a>
  80.                         </li>
  81.                         {% include '@ui/dashboards/default/header/search.html.twig' %}
  82.                         {# TO REMOVE - FARLEY
  83.                         {% set announcements = []|merge(
  84.                             cms_systemAnnouncements(),
  85.                             cms_siteAnnouncements()
  86.                         ) %}
  87.                         
  88.                         {% if announcements|length > 0 %}
  89.                             {% include '@ui/dashboards/default/header/announcements.html.twig' %}
  90.                         {% endif %}
  91.                         #}
  92.                         
  93.                     </ul>
  94.                     {% include '@ui/dashboards/default/header/profile.html.twig' %}
  95.                 </div>
  96.             </div>
  97.         </header>
  98.         <div id="cs-console-main" class="{% block main_class %}{% endblock %}">
  99.             {% block header %}{% endblock %}
  100.             <div class="cs-console-main-content">
  101.                 {% block content %}{% endblock %}
  102.             </div>
  103.             {% block footer %}{% endblock %}
  104.         </div>
  105.         <div class="clearfix"></div>
  106.         <footer id="cs-console-footer">
  107.             <p>© {{ 'now'|date('Y') }} <a href="https://www.schoolnow.com" target="_blank">SchoolNow</a>. All rights reserved.</p>
  108.         </footer>
  109.     </div>
  110.     {% block iframes %}{% endblock %}
  111. {% endif %}