This commit is contained in:
2026-01-20 01:44:49 +01:00
parent 3d559924a9
commit 8e6248cea1
7 changed files with 158 additions and 76 deletions

View File

@@ -0,0 +1,53 @@
<?php
$pageTitle = 'Email Template System Systemeinstellungen';
$pageId = 'admin';
$navActive = 'system';
require __DIR__ . '/accountsetup_config.php';
require dirname(__DIR__) . '/../structure/layout_start.php';
?>
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full space-y-6">
<section class="section-card" data-role="admin">
<h4>Standard-Editor</h4>
<p class="text-sm text-slate-600 mb-4">Standardauswahl für neue Inhalte. Kann pro Element spaeter angepasst werden.</p>
<form id="settingsForm" class="space-y-3">
<label class="block text-sm text-slate-600">Standard-Editor</label>
<select name="editor_default" class="input">
<option value="grapesjs">GrapesJS</option>
<option value="craftjs">Craft.js</option>
</select>
<div class="flex justify-end">
<button type="submit" class="btn">Einstellungen speichern</button>
</div>
</form>
</section>
<section class="section-card" data-role="admin" id="sectionsManager">
<div class="flex items-center justify-between flex-wrap gap-3 mb-3">
<div>
<h4>Sections verwalten</h4>
<p class="text-sm text-slate-600">Die Sortierung steuert, welche Inhalte in anderen Sections eingebunden werden duerfen.</p>
</div>
</div>
<form id="sectionsCreateForm" class="flex flex-wrap gap-2 mb-4">
<input type="text" id="sectionNameInput" class="input flex-1 min-w-[220px]" placeholder="Neue Section (Name)" required>
<button type="submit" class="btn">Section hinzufuegen</button>
</form>
<ul id="sectionsList" class="space-y-2"></ul>
</section>
</main>
<dialog id="sectionsDeleteDialog" class="rounded-xl max-w-md w-[90vw] p-5">
<form id="sectionsDeleteForm" method="dialog" class="space-y-4">
<div class="flex items-center justify-between gap-3 border-b border-slate-200 pb-3">
<h3 class="text-lg font-semibold">Section loeschen</h3>
<button type="button" id="sectionsDeleteCancel" class="btn">Abbrechen</button>
</div>
<p id="sectionsDeleteText" class="text-sm text-slate-600"></p>
<label class="block text-sm text-slate-600">Inhalte verschieben nach</label>
<select id="sectionsDeleteTarget" class="input"></select>
<div class="flex justify-end gap-2">
<button type="submit" class="btn btn-danger">Loeschen</button>
</div>
</form>
</dialog>
<?php require dirname(__DIR__) . '/../structure/layout_end.php'; ?>