{% extends '@ui2022/schoolnow/page--wide.html.twig' %}
{# TODO: REMOVE - style for basic hc header #}
{% do dom_html_attr_set_class('hc-header') %}
{% do dom_styles([
'https://honeycomb.style/css/honeycomb.css',
'/hc/css/custom.css',
]) %}
{% do include('@ProductsNotifications/_assets.html.twig') %}
{% do include('@ProductsNotifications/_assets_tracking.html.twig') %}
{% block topbar %}
{% include 'topbar.html.twig' with {
avatar: (app.user.systemProfile.hasAvatar)
? s3_entity(app.user, '/avatar/thumb')
: null,
displayName: app.user.displayName
} %}
{% endblock %}
{% block navbar %}
{% include '@ui2022/schoolnow/side__menu.html.twig' with {
avatar: (app.user.systemProfile.hasAvatar)
? s3_entity(app.user, '/avatar/thumb')
: '/ui2022/images/avatar.png',
name: app.user.displayName,
items: [
{
title: 'Dashboard',
icon: 'icon-dash-board',
link: path('app.notifications.dashboard.default.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.default.'),
},
maybe_granted(['app.notifications.messaging.general', 'app.notifications.messaging.urgent']) ? {
title: 'Messages',
icon: 'icon-message-plane',
link: path('app.notifications.dashboard.messages.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.messages.'),
} : null,
{
title: 'Contacts',
icon: 'icon-userlist',
link: path('app.notifications.dashboard.profiles.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.profiles.'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
items: [
{
title: 'Parents',
link: path('app.notifications.dashboard.profiles.main', {
'query[filter]': 'family',
}),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.profiles.') and app.request.query.get('query')['filter']|default(null) is same as('family'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
},
{
title: 'Staff',
link: path('app.notifications.dashboard.profiles.main', {
'query[filter]': 'staff',
}),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.profiles.') and app.request.query.get('query')['filter']|default(null) is same as('staff'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
},
{
title: 'Community',
link: path('app.notifications.dashboard.profiles.main', {
'query[filter]': 'community',
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
}),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.profiles.') and app.request.query.get('query')['filter']|default(null) is same as('community'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
},
{
title: 'Students',
link: path('app.notifications.dashboard.students.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.students.'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
},
],
},
maybe_granted('app.notifications.lists.admin') ? {
title: 'Lists',
icon: 'icon-templates',
link: path('app.notifications.dashboard.lists.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.lists.'),
} : null,
{
title: 'Reports',
icon: 'icon-contacts',
link: path('app.notifications.dashboard.reports.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.reports.'),
permission: '@app.notifications.access',
items: [
{
title: 'SIS Records',
link: path('app.notifications.dashboard.sis.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.sis.'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
},
{
title: 'Logs',
link: path('app.notifications.dashboard.logs.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.logs.'),
permission: attributes_expression(['app.notifications.contacts.admin', 'app.notifications.contacts.view']),
},
],
},
{
title: 'Templates',
icon: 'icon-reports',
link: path('app.notifications.dashboard.templates.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.templates.'),
permission: attributes_expression(['app.notifications.templates.admin', 'app.notifications.automations.admin']),
},
{
title: 'Settings',
icon: 'icon-settings',
link: '#',
active: (
(app.request.attributes.get('_route') starts with 'app.notifications.dashboard.settings.')
or
(app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.')
),
permission: 'app.notifications.onboarding.admin',
items: [
is_granted('campussuite.root') ? {
title: 'Onboarding',
link: path('app.notifications.dashboard.onboarding.default.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.default.'),
permission: 'app.notifications.onboarding.admin',
} : null,
(false) ? {
title: 'Phone Number',
link: path('app.notifications.dashboard.onboarding.phones.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.phones.'),
permission: 'app.notifications.onboarding.admin',
} : null,
{
title: 'Voice Caller IDs',
link: path('app.notifications.dashboard.onboarding.caller_ids.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.caller_ids.'),
permission: 'app.notifications.onboarding.admin',
},
{
title: 'Email Domains',
link: path('app.notifications.dashboard.onboarding.domains.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.domains.'),
permission: 'app.notifications.onboarding.admin',
},
{
title: 'Email Suppressions',
link: path('app.notifications.dashboard.onboarding.email_suppression.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.email_suppression.'),
permission: 'app.notifications.onboarding.admin',
},
is_granted('campussuite.root') ? {
title: 'Notifications Config',
link: path('app.notifications.dashboard.onboarding.notifications_config.main'),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.onboarding.notifications_config.'),
permission: 'app.notifications.onboarding.admin',
} : null,
is_granted('campussuite.root') ? {
title: 'DEBUG',
link: path('app.notifications.dashboard.onboarding.default.debugging'),
active: (app.request.attributes.get('_route') is same as('app.notifications.dashboard.onboarding.default.debugging')),
permission: 'app.notifications.onboarding.admin',
} : null,
],
},
{
title: 'Auto Notices',
icon: 'icon-gear',
link: '#',
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.automations.'),
permission: attributes_expression(['app.notifications.automations.admin', 'app.notifications.messaging.general', 'app.notifications.messaging.urgent']),
items: [
{
title: 'General',
link: path('app.notifications.dashboard.automations.invocation_list', {type: 'general'}),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.automations.invocation_list') and app.request.attributes.get('type') is same as('general'),
permission: attributes_expression(['app.notifications.automations.admin', 'app.notifications.messaging.general', 'app.notifications.messaging.urgent']),
},
{
title: 'Attendance',
link: path('app.notifications.dashboard.automations.invocation_list', {type: 'attendance'}),
active: (app.request.attributes.get('_route') starts with 'app.notifications.dashboard.automations.invocation_list') and app.request.attributes.get('type') is same as('attendance'),
permission: attributes_expression(['app.notifications.automations.admin', 'app.notifications.messaging.general', 'app.notifications.messaging.urgent']),
},
],
},
is_granted('campussuite.root') ? {
title: 'Portal',
icon: 'fas fa-rocket',
link: path('app.notifications.portal.login.login'),
target: '_blank',
} : null,
],
} %}
{% endblock %}
{% block modals %}
{{ parent() }}
{% embed '@ui2022/schoolnow/modal--sidepanel.html.twig' with {
attr: {
id: 'topbar-help',
class: 'sidepanel--help',
},
} %}
{% block header %}
<div class="sidepanel__head-left">
<h2 class="text-an-demibold">Help Center</h2>
</div>
<div class="sidepanel__head--right">
<img class="schoolnow-logo" src="/ui2022/images/logo_app_stack_white.svg" width="101" height="15.25" alt="" />
</div>
{% endblock %}
{% endembed %}
{% embed '@ui2022/schoolnow/modal--sidepanel.html.twig' with {
attr: {
id: 'sidepanel-setting',
class: 'setting-sidepanel',
},
} %}
{% block header %}
{% include '@ui2022/schoolnow/topbar__menu_user_header.html.twig' with { account: app.user } %}
{% endblock %}
{% block content %}
{% include '@App/dashboard/settings/navbar.html.twig' with { topMenu: true } %}
{% endblock %}
{% endembed %}
<script type="text/javascript">
(function (window, document, $, undefined) {
$(function () {
$('#topbar-help').on('show.cs.sidepanel', function (e) {
$('#topbar-help .sidepanel__content')
.html('<iframe width="100%" src="https://www-schoolnow-com.sandbox.hs-sites.com/schoolnew-home-page-2022?email={{- app.user.email -}}&slug={{- cms.tenant.slug -}}"></iframe>')
;
});
});
})(window, document, jQuery);
</script>
{% endblock %}