Files
Plenario/templates/layout/fragment.php
T
gnilebeinandClaude Sonnet 5.5 b643072c3c
CI / Deploy / test (push) Successful in 58s
CI / Deploy / deploy (push) Skipped
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>
2026-11-11 20:28:03 +01:00

11 lines
344 B
PHP

<?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') ?>