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

+3 -3
View File
@@ -26,9 +26,9 @@ $optionsError = $slide->getError('options_text');
?>
<p><a href="<?= $this->Url->build(['_name' => 'admin', 'token' => $adminToken]) ?>">← <?= __('Zurück zu „{0}“', h($poll->title)) ?></a></p>
<section class="card card--form">
<section class="card card--form" data-modal-content>
<p class="eyebrow"><?= h($slide->typeLabel()) ?></p>
<h1><?= $isNew ? __('Neue Folie') : __('Folie bearbeiten') ?></h1>
<h1 id="modal-title"><?= $isNew ? __('Neue Folie') : __('Folie bearbeiten') ?></h1>
<?= $this->Form->create($slide, ['url' => $formUrl]) ?>
<?= $this->Form->hidden('type') ?>
@@ -337,7 +337,7 @@ $optionsError = $slide->getError('options_text');
<div class="form-actions">
<?= $this->Form->button($isNew ? __('Folie anlegen') : __('Speichern'), ['class' => 'button button--primary']) ?>
<a class="button button--ghost" href="<?= $this->Url->build(['_name' => 'admin', 'token' => $adminToken]) ?>"><?= __('Abbrechen') ?></a>
<a class="button button--ghost" data-modal-close href="<?= $this->Url->build(['_name' => 'admin', 'token' => $adminToken]) ?>"><?= __('Abbrechen') ?></a>
</div>
<?= $this->Form->end() ?>
</section>