{% if app.request.isXmlHttpRequest() %}
{{ block('content') }}
{% else %}
{{ embed_title('SchoolStatus Sites & Apps', 100) }}
{% include '@ui/dashboards/default/scripts.html.twig' %}
{% include '@ui/dashboards/default/styles.html.twig' %}
<div id="cs-console" class="cs-console-lg sb-expand {% block console_classes %}{% endblock %}">
<div id="cs-console-sidebar" class="{% block console_sidebar_classes %}{% endblock %}">
<div class="sb-scroll">
{% include '@ui/dashboards/default/sidebar/header.html.twig' %}
{% block sidebar %}
{% include '@ui/dashboards/default/sidebar/content.html.twig' %}
{% endblock %}
</div>
</div>
<header id="cs-console-header">
<a href="{{-
(cms is defined and cms.tenant and cms.tenant.isSchoolNow)
? path('app.schoolnow.dashboard.default.main')
: path('cms.container.dashboard.dashboard.index')
-}}" class="cs-brand">
<em class="fa fa-home cs-brand-icon"></em>
<span class="cs-brand-name">SchoolStatus Sites & Apps</span>
</a>
<div class="cs-topbar-nav-wrap">
{% set navhighlight = navhighlight|default('default') %}
{% include '@ui/dashboards/default/header/nav.html.twig' %}
<div class="pull-right">
<ul class="cs-topbar-nav pull-left">
<li class="cs-topbar__li-create">
<a href="#" data-toggle="modal" data-target="#modal-create" data-backdrop="static" data-keyboard="true">
<span class="cs-topbar__li-text">+ Add</span>
</a>
{% inline_html %}
{% set modalDepartment = (app.request.attributes.has('department')) ? app.request.attributes.get('department') : null %}
{% if modalDepartment is empty %}
{% set modalDepartment = (app.request.attributes.has('container')) ? app.request.attributes.get('container') : null %}
{% endif %}
{% if modalDepartment is empty %}
{% set modalDepartment = (app.request.attributes.has('containerId')) ? app.request.attributes.get('containerId') : null %}
{% endif %}
{% if instanceof(modalDepartment, 'Cms\\ContainerBundle\\Entity\\Container') %}
{% set modalDepartment = modalDepartment.id %}
{% endif %}
{% include '@ui/create/modals/full.html.twig' with {
htmlId: 'modal-create',
ajax: path('cms.container.dashboard.dashboard.create_modal', {
department: modalDepartment
}),
} %}
{% endinline %}
</li>
<li class="cs-topbar__li-recent">
<a href="#" data-toggle="modal" data-target="#modal-recent" data-backdrop="static" data-keyboard="true">
<span class="cs-topbar__li-text">Recent</span>
</a>
{% inline_html %}
{% include '@ui/create/modals/full.html.twig' with {
htmlId: 'modal-recent',
ajax: path('cms.container.dashboard.dashboard.recents_modal', {}),
} %}
{% endinline %}
</li>
<li class="cs-topbar__li-help">
<a href="#" data-toggle="modal" data-target="#modal-help" data-backdrop="static" data-keyboard="true">
<span class="cs-topbar__li-text">Help</span>
</a>
{% inline_html %}
{% include '@ui/create/modals/full.html.twig' with {
htmlId: 'modal-help',
ajax: path('cms.container.dashboard.dashboard.help_modal', {})
} %}
{% endinline %}
</li>
<li class="cs-topbar-control{% if 'system' is same as(navhighlight) %} active{% endif %}">
<a href="{{ path('platform.security.dashboard.profile.landing') }}">
<em class="cs-topbar__icon fa fa-gear"></em>
<span class="sr-only">Settings</span>
</a>
</li>
{% include '@ui/dashboards/default/header/search.html.twig' %}
{# TO REMOVE - FARLEY
{% set announcements = []|merge(
cms_systemAnnouncements(),
cms_siteAnnouncements()
) %}
{% if announcements|length > 0 %}
{% include '@ui/dashboards/default/header/announcements.html.twig' %}
{% endif %}
#}
</ul>
{% include '@ui/dashboards/default/header/profile.html.twig' %}
</div>
</div>
</header>
<div id="cs-console-main" class="{% block main_class %}{% endblock %}">
{% block header %}{% endblock %}
<div class="cs-console-main-content">
{% block content %}{% endblock %}
</div>
{% block footer %}{% endblock %}
</div>
<div class="clearfix"></div>
<footer id="cs-console-footer">
<p>© {{ 'now'|date('Y') }} <a href="https://www.schoolnow.com" target="_blank">SchoolStatus</a>. All rights reserved.</p>
</footer>
</div>
{% block iframes %}{% endblock %}
{% endif %}