Update slide list and edit slide form without page reloads
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:
1 parent
9262a57c17
commit
b643072c3c
9 files changed
+403
-32
No files matched your search
@@ -36,7 +36,7 @@ $title = $this->fetch('title');
|
||||
</div>
|
||||
</header>
|
||||
<main class="container main">
|
||||
<?= $this->Flash->render() ?>
|
||||
<div data-refresh="flash"><?= $this->Flash->render() ?></div>
|
||||
<?= $this->fetch('content') ?>
|
||||
</main>
|
||||
<footer class="site-footer container">
|
||||
|
||||
@@ -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') ?>
|
||||
Reference in new issue
Block a user