Files
emailtemplate.it/partials/landingpage/accountsetup/system.php
2026-02-09 01:38:39 +01:00

58 lines
2.8 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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>
<label class="block text-sm text-slate-600">Versionen aufbewahren (0 = unbegrenzt)
<input type="number" name="versions_retention" class="input mt-1" min="0" step="1" placeholder="0">
</label>
<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 tpl_add_script(app_asset_url('/assets/js/account.js'), 'footer', false, false, '', null, true); ?>
<?php require dirname(__DIR__) . '/../structure/layout_end.php'; ?>