20 lines
711 B
Plaintext
20 lines
711 B
Plaintext
<%#
|
|
Scheduling · the visitor's own shifts (reference plugin).
|
|
Data: chrome, title, breadcrumbs, count, table, error?
|
|
%><%
|
|
const navHtml = include("partials/nav-tree", { nodes: chrome.nav });
|
|
const tableHtml = include("partials/data-table", table);
|
|
const alertHtml = locals.error ? include("partials/alert", { text: locals.error, tone: "neg" }) : "";
|
|
-%>
|
|
<%- include("partials/shell", {
|
|
body: '<div class="scheduling-page">' + alertHtml + '<p class="shift-count">' + count + '</p>' + tableHtml + '</div>',
|
|
brand: chrome.brand,
|
|
breadcrumbs,
|
|
csrfToken: chrome.csrfToken,
|
|
nav: navHtml,
|
|
styles: ["/public/scheduling/scheduling.css"],
|
|
theme: chrome.theme,
|
|
title,
|
|
user: chrome.user,
|
|
}) %>
|