This commit is contained in:
2025-12-10 21:01:22 +01:00
parent 6c5a544f67
commit 9eddc2ba17
2 changed files with 52 additions and 36 deletions

View File

@@ -3,22 +3,27 @@ require_once __DIR__ . '/../config/fileload.php';
$pageTitle = 'Email Template System Admin';
$pageId = 'home';
$navActive = null;
$navLinks = [];
ob_start();
?>
<nav class="isolate inline-flex flex-wrap rounded-2xl shadow-sm border bg-white overflow-hidden">
<button type="button" data-tab="templates" class="px-4 py-2 text-sm border-e bg-sky-50 text-sky-700">Templates</button>
<button type="button" data-tab="sections" class="px-4 py-2 text-sm border-e">Sections</button>
<button type="button" data-tab="blocks" class="px-4 py-2 text-sm border-e">Blocks</button>
<button type="button" data-tab="snippets" class="px-4 py-2 text-sm">Snippets</button>
</nav>
<button id="btn-new" type="button" class="btn">Neu …</button>
<?php
$headerTabs = ob_get_clean();
require __DIR__ . '/../partials/structure/layout_start.php';
?>
<main class="max-w-6xl mx-auto p-4 flex-1 w-full space-y-6">
<section class="bg-white border border-slate-200 rounded-2xl shadow-sm px-4 py-3 flex flex-wrap items-center gap-3 sticky top-20 z-10">
<h1 class="font-semibold text-lg text-slate-900 me-2">Email Template System</h1>
<nav class="isolate inline-flex rounded-2xl shadow-sm border bg-white overflow-hidden">
<button type="button" data-tab="templates" class="px-4 py-2 text-sm border-e bg-sky-50 text-sky-700">Templates</button>
<button type="button" data-tab="sections" class="px-4 py-2 text-sm border-e">Sections</button>
<button type="button" data-tab="blocks" class="px-4 py-2 text-sm border-e">Blocks</button>
<button type="button" data-tab="snippets" class="px-4 py-2 text-sm">Snippets</button>
</nav>
<div class="flex items-center gap-3 ms-auto">
<button id="btn-new" type="button" class="btn">Neu …</button>
</div>
</section>
<header class="pb-2 border-b border-slate-200">
<h1 class="font-semibold text-lg text-slate-900">Email Template System</h1>
<p class="text-sm text-slate-500">Wähle eine Kategorie, um Templates, Sections, Blocks oder Snippets zu pflegen.</p>
</header>
<section id="view-templates" class="view"></section>
<section id="view-sections" class="view hidden"></section>