update
This commit is contained in:
@@ -3,6 +3,7 @@ $appBaseUrl = $GLOBALS['app_base_url'] ?? '';
|
||||
|
||||
$defaultNavLinks = [
|
||||
['id' => 'dashboard', 'label' => 'Dashboard', 'href' => $appBaseUrl . '/admin/dashboard.php'],
|
||||
['id' => 'system', 'label' => 'Systemeinstellungen', 'href' => $appBaseUrl . '/admin/system.php'],
|
||||
['id' => 'settings', 'label' => 'API & Tabellen', 'href' => $appBaseUrl . '/admin/settings.php'],
|
||||
['id' => 'users', 'label' => 'Userverwaltung', 'href' => $appBaseUrl . '/admin/users.php'],
|
||||
['id' => 'profile', 'label' => 'Mein Konto', 'href' => $appBaseUrl . '/admin/profile.php'],
|
||||
|
||||
@@ -68,11 +68,6 @@ require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||
<button type="button" class="btn" data-rotate="external">Neu erstellen</button>
|
||||
</div>
|
||||
</div>
|
||||
<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-between gap-2 flex-wrap pt-2">
|
||||
<div class="flex gap-2" data-role="admin">
|
||||
<button type="button" class="btn" data-download="bridge">Bridge-Datei</button>
|
||||
@@ -83,20 +78,6 @@ require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||
</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 dürfen.</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 hinzufügen</button>
|
||||
</form>
|
||||
<ul id="sectionsList" class="space-y-2"></ul>
|
||||
</section>
|
||||
|
||||
<section class="section-card" data-role="admin">
|
||||
<div class="flex items-center justify-between flex-wrap gap-3 mb-3">
|
||||
<div>
|
||||
@@ -267,21 +248,6 @@ require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
<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 löschen</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">Löschen</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<dialog id="configExampleDialog" class="rounded-xl max-w-2xl w-[90vw]">
|
||||
<form method="dialog" class="space-y-3">
|
||||
<h3 class="text-lg font-semibold">Beispiel: Mapping einer Config-Datei</h3>
|
||||
|
||||
53
partials/landingpage/accountsetup/system.php
Normal file
53
partials/landingpage/accountsetup/system.php
Normal 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'; ?>
|
||||
Reference in New Issue
Block a user