<script type="text/javascript">
;(function(window, document, $, undefined) {
window.head.load('{{ assett('bootstrap::/dist/js/bootstrap.min.js') }}');
window.head.load('{{ assett('chosen::/chosen.jquery.min.js') }}');
window.head.load('/ui/css/theme-topbar.css');
window.head.load('{{ assett('chosen::/chosen.min.css') }}');
})(window, document, jQuery);
</script>
<div id="cs-theme-header">
<div class="cs-topbar-nav-wrap">
<div class="cs-theme-tb-brand">
{# SCHOOLNOW #}
{% if _globals.container and _globals.container.isSchoolNow() %}
<a href="{{- url('app.schoolnow.dashboard.default.main') -}}" class="cs-brand">
<em class="fa fa-home cs-brand-icon" aria-hidden="true" title="Return to dashboard"></em>
</a>
{% else %}
<a href="{{- url(
'cms.container.dashboard.dashboard.index'
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}" class="cs-brand">
<em class="fa fa-home cs-brand-icon" aria-hidden="true" title="Return to dashboard"></em>
</a>
{% endif %}
</div>
<ul class="cs-topbar-nav pull-left">
{% if _globals.thing is not null %}
{% if ui_is_locked(_globals.thing, _globals.mimic) %}
<li class="locked">
<a href="#" disabled>
<em class="csi icon-lock"></em>
{{ _globals.thing.lockedBy.displayName }}
</a>
</li>
{% elseif ui_is_shared(_globals.thing) %}
<li class="locked">
<a href="#" disabled>
<em class="csi icon-lock"></em>
Shared
</a>
</li>
{% elseif ui_is_synced(_globals.thing) %}
<li class="locked">
<a href="#" disabled>
<em class="csi icon-lock"></em>
Synced
</a>
</li>
{% else %}
{# SCHOOLNOW #}
{% if _globals.module and _globals.module.isSchoolNow(_globals.container) %}
<li>
<a href="{{- path('app.app.dashboard.websites.content.%s.update'|format(_globals.thing.discr), {
object: _globals.thing.id,
jump: app.request.uri,
}) -}}">
<em class="csi icon-pencil"></em>
Edit {{ 'cms.frontend.topbar.labels.modules.%s.singular'|format(_globals.module.key)|trans }}
</a>
</li>
{% else %}
<li>
<a href="{{- url(
'campussuite.cms.module.dashboard.content.modify_conflicts',
{
container: _globals.thing.container.id,
module: _globals.module.key,
proxy: _globals.thing.id,
redirectTo: app.request.uri
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
<em class="csi icon-pencil"></em>
Edit {{ 'cms.frontend.topbar.labels.modules.%s.singular'|format(_globals.module.key)|trans }}
</a>
</li>
{% endif %}
{% endif %}
{% endif %}
<li>
<a class="dropdown-toggle" href="#" data-toggle="dropdown">
<em class="csi icon-chevron-down"></em>
</a>
<ul class="dropdown-menu">
{% if _globals.container is not null %}
<li>
<a href="{{- url(
'cms.navigation.default.edit',
{
containerId: _globals.container.id,
redirectTo: app.request.uri
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-list-main"></em> #}
Edit Navigation
</a>
</li>
{% endif %}
{% if _globals.module is not null %}
{# SCHOOLNOW #}
{% if _globals.module and _globals.module.isSchoolNow(_globals.container) %}
{% for cls in _globals.thingClasses %}
<li>
<a href="{{- path('app.app.dashboard.websites.content.%s.list'|format(constant(cls ~ '::DISCR'))) -}}">
{# <em class="icon icon-{% if _globals.module.key is same as('page') %}lined-page-b{% else %}lined-module-b{% endif %}"></em> #}
View {{ 'cms.frontend.topbar.labels.modules.%s.plural'|format(_globals.module.key)|trans }}
</a>
</li>
{% endfor %}
{% else %}
<li>
<a href="{{- url(
'campussuite.cms.module.dashboard.content.settings',
{
container: _globals.container.id,
module: _globals.module.key
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{{ _globals.module.name }} Settings
</a>
</li>
<li>
<a href="{{- url(
'campussuite.cms.module.dashboard.content.proxy_list',
{
container: _globals.container.id,
module: _globals.module.key
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-{% if _globals.module.key is same as('page') %}lined-page-b{% else %}lined-module-b{% endif %}"></em> #}
View {{ 'cms.frontend.topbar.labels.modules.%s.plural'|format(_globals.module.key)|trans }}
</a>
</li>
{% endif %}
{% endif %}
{% if _globals.container is not null %}
<li>
<a href="{{- url(
'cms.container.dashboard.container.view',
{
containerId: _globals.container.id
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-folder-front-b"></em> #}
Current Department
</a>
</li>
{% endif %}
{% if _globals.thing is not null and not ui_is_shared(_globals.thing) and not ui_is_synced(_globals.thing) %}
{# SCHOOLNOW #}
{% if _globals.module and _globals.module.isSchoolNow(_globals.container) %}
{# no history currently in school now #}
{% else %}
<li>
<a href="{{- url(
'campussuite.cms.module.dashboard.content.history_list',
{
container: _globals.container.id,
module: _globals.module.key,
proxy: _globals.thing.id
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-history-b"></em> #}
{{ 'cms.frontend.topbar.labels.modules.%s.singular'|format(_globals.module.key)|trans }} History
</a>
</li>
{% endif %}
{% endif %}
{% if _globals.thing is not null and ui_is_shareable(_globals.thing) %}
{# SCHOOLNOW #}
{% if _globals.module and _globals.module.isSchoolNow(_globals.container) %}
{# no sharing in schoolnow... #}
{% else %}
<li>
<a href="{{- url(
'campussuite.cms.module.dashboard.content.proxy_share',
{
container: _globals.container.id,
module: _globals.module.key,
proxy: _globals.thing.id,
redirectTo: app.request.uri
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-folder-front-share-b"></em> #}
Share {{ 'cms.frontend.topbar.labels.modules.%s.singular'|format(_globals.module.key)|trans }}
</a>
</li>
{% endif %}
{% endif %}
</ul>
</li>
{% if _globals.thing is not null and _globals.socialSupport is same as(true) %}
<li>
<a href="{{- url(
'products.smm.dashboard.default.create',
{
link: app.request.uri,
redirectTo: app.request.uri
}
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
<em class="fa fa-share-alt" aria-hidden="true" title="Share {{ 'cms.frontend.topbar.labels.modules.%s.singular'|format(_globals.module.key)|trans }}"></em>
</a>
</li>
{# SCHOOLNOW #}
{% if _globals.module and _globals.module.key is same as('calendar') and _globals.module.isSchoolNow(_globals.tenant) %}
<li>
<a href="{{- url(
'app.schoolnow.dashboard.default.create',
{
event: _globals.thing.id,
jump: app.request.uri,
}
) -}}">
<em class="fa fa-bullhorn" aria-hidden="true" title="Promote {{ 'cms.frontend.topbar.labels.modules.%s.singular'|format(_globals.module.key)|trans }}"></em>
</a>
</li>
{% endif %}
{% endif %}
</ul>
<div class="pull-right">
{% if app.environment is same as('dev') or app.request.secure %}
<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">
+ Add
</a>
{% include '@ui/create/modals/full.html.twig' with {
htmlId: 'modal-create',
ajax: url('cms.container.dashboard.dashboard.create_modal', {
department: _globals.container.id
})|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard),
} %}
</li>
<li class="cs-topbar__li-recent">
<a href="#" data-toggle="modal" data-target="#modal-recent" data-backdrop="static" data-keyboard="true">
Recent
</a>
{% include '@ui/create/modals/full.html.twig' with {
htmlId: 'modal-recent',
ajax: url('cms.container.dashboard.dashboard.recents_modal', {})|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard),
} %}
</li>
<li class="cs-topbar__li-help">
<a href="#" data-toggle="modal" data-target="#modal-help" data-backdrop="static" data-keyboard="true">
Help
</a>
{% include '@ui/create/modals/full.html.twig' with {
htmlId: 'modal-help',
ajax: url('cms.container.dashboard.dashboard.help_modal', {})|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard)
} %}
</li>
</ul>
{% endif %}
<div class="cs-user-controls pull-right">
<a class="cs-user-details dropdown-toggle" href="#" data-toggle="dropdown">
<div class="cs-user-pic">
{% embed '@ui/common/images/avatar.html.twig' with {
account: _globals.mimic
} %}{% endembed %}
</div>
<em class="csi icon-chevron-down"></em>
</a>
<ul class="dropdown-menu">
<li>
<a href="{{- url(
'platform.security.dashboard.profile.view'
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-avatar"></em> #}
{{ 'usermenu.account'|trans }}
</a>
</li>
<li>
<a href="{{- url(
'cms.container.dashboard.dashboard.index'
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-dashboard"></em> #}
{{ 'usermenu.dashboard'|trans }}
</a>
</li>
<li>
<a href="https://help.schoolnow.com/hc/en-us/requests/new" target="_blank">
{# <em class="icon icon-lined-help"></em> #}
Support
</a>
</li>
<li>
<a href="#">
{# <em class="icon icon-lined-help"></em> #}
Knowledge Base
</a>
</li>
<li>
<a href="{{- url(
'cms.container.dashboard.container.index_personal'
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="icon icon-lined-profile-card"></em> #}
<span>{{ 'usermenu.personal.sites'|trans }}</span>
</a>
</li>
<li>
<a href="{{- url(
'app.platform.security.logout'
)|regex('/^https?:\\/\\/[^\\/]+/', _globals.pathDashboard) -}}">
{# <em class="csi icon-sign-out"></em> #}
{{ 'usermenu.logout'|trans }}
</a>
</li>
</ul>
</div>
</div>
</div>
</div>