Move reference plugin to examples/scheduling-plugin; plugins/ ships empty as a drop-in mount point, e2e bind-mounts the example

This commit is contained in:
2026-06-27 00:02:26 +02:00
parent d8cf257940
commit fe97c3854a
19 changed files with 44 additions and 21 deletions
@@ -0,0 +1,20 @@
<%#
Scheduling · New shift form (reference plugin). The form POSTs to /scheduling/shifts; the handler
CSRF-verifies and forwards the write upstream. Body comes from this plugin's OWN partial
(partials/shift-form — resolved plugin-first), which reuses the core field partial.
Data: chrome, title, breadcrumbs, form, formError?
%><%
const navHtml = include("partials/nav-tree", { nodes: chrome.nav });
const body = '<div class="scheduling-page">' + include("partials/shift-form", { form, formError: locals.formError }) + '</div>';
-%>
<%- include("partials/shell", {
body,
brand: chrome.brand,
breadcrumbs,
csrfToken: chrome.csrfToken,
nav: navHtml,
styles: ["/public/scheduling/scheduling.css"],
theme: chrome.theme,
title,
user: chrome.user,
}) %>