Update slide list and edit slide form without page reloads
CI / Deploy / test (push) Successful in 58s
CI / Deploy / deploy (push) Skipped

Slide list actions (hide, delete, reset, duplicate, go live, pause) now run
via fetch and refresh only the changed regions, keeping scroll position and
focus. Add/edit slide forms open in a dialog. Admin pages answer with a
slim fragment layout when the X-Fragment header is sent.

Replace postLink confirms (inline onclick, blocked by the CSP) with
postButton and data-confirm handled in plenario.js.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-11 20:28:03 +01:00
1 parent 9262a57c17
commit b643072c3c
9 files changed
+403 -32

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
<?php
/**
* Layout for admin fragments (header "X-Fragment"): only the page content and the flash messages,
* which plenario.js merges into the open page (see [data-refresh] regions) or shows in the dialog.
*
* @var \App\View\AppView $this
*/
?>
<div data-refresh="flash"><?= $this->Flash->render() ?></div>
<?= $this->fetch('content') ?>