62 lines
2.4 KiB
HTML
62 lines
2.4 KiB
HTML
|
|
<!DOCTYPE html>
|
|||
|
|
<html lang="de">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="UTF-8" />
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|||
|
|
<title>Freundesbuch – Admin</title>
|
|||
|
|
<link rel="stylesheet" href="/assets/style.css" />
|
|||
|
|
<link rel="stylesheet" href="/admin/admin.css" />
|
|||
|
|
</head>
|
|||
|
|
<body>
|
|||
|
|
<div class="top-bar card" style="border-radius:0;">
|
|||
|
|
<h1 style="margin:0;">📖 Freundesbuch</h1>
|
|||
|
|
<div style="display:flex; gap:0.6em; flex-wrap:wrap;">
|
|||
|
|
<a class="btn" href="/book" target="_blank" rel="noopener">🎠 Freundesbuch anschauen</a>
|
|||
|
|
<button class="secondary" id="logoutBtn">Abmelden</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="container">
|
|||
|
|
<section class="card" id="createCard">
|
|||
|
|
<h2>Neuen Freund anlegen</h2>
|
|||
|
|
<form id="createForm" class="inline-form">
|
|||
|
|
<input type="text" id="newName" placeholder="Name des Freundes" required />
|
|||
|
|
<button type="submit">+ Anlegen</button>
|
|||
|
|
</form>
|
|||
|
|
<div id="createErr"></div>
|
|||
|
|
</section>
|
|||
|
|
|
|||
|
|
<section style="margin-top:2em;">
|
|||
|
|
<h2>Deine Freunde</h2>
|
|||
|
|
<div id="friendGrid" class="friend-grid"></div>
|
|||
|
|
<p id="emptyMsg" class="muted" style="display:none;">Noch keine Freunde angelegt – leg oben den ersten an!</p>
|
|||
|
|
</section>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<!-- Share-Dialog -->
|
|||
|
|
<div id="shareModal" class="modal-backdrop" style="display:none;">
|
|||
|
|
<div class="card modal">
|
|||
|
|
<h3>Freigabe für <span id="shareFriendName"></span></h3>
|
|||
|
|
<p class="muted">Vergib ein eigenes Passwort. Dein Freund kann sich über den Link damit anmelden und nur seine eigene Seite bearbeiten.</p>
|
|||
|
|
<label for="sharePw">Freigabe-Passwort</label>
|
|||
|
|
<input type="text" id="sharePw" placeholder="z. B. Sommerferien2026" />
|
|||
|
|
<div style="display:flex; gap:0.6em; margin-top:1em; flex-wrap:wrap;">
|
|||
|
|
<button id="shareEnableBtn">Freigabe aktivieren / Passwort setzen</button>
|
|||
|
|
<button class="danger" id="shareDisableBtn">Freigabe beenden</button>
|
|||
|
|
<button class="secondary" id="shareCloseBtn">Schließen</button>
|
|||
|
|
</div>
|
|||
|
|
<div id="shareLinkBox" style="margin-top:1em; display:none;">
|
|||
|
|
<label>Link zum Teilen</label>
|
|||
|
|
<div style="display:flex; gap:0.5em;">
|
|||
|
|
<input type="text" id="shareLinkInput" readonly />
|
|||
|
|
<button type="button" id="copyLinkBtn" class="secondary">Kopieren</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div id="shareErr"></div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<script src="/admin/admin.js"></script>
|
|||
|
|
</body>
|
|||
|
|
</html>
|