1.0
This commit is contained in:
@@ -16,19 +16,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<section class="card" id="settingsCard">
|
||||
<h2>Einstellungen</h2>
|
||||
<label for="publicBaseUrl">Öffentliche URL (für Freigabe-Links hinter einem Reverse-Proxy)</label>
|
||||
<div class="inline-form">
|
||||
<input type="text" id="publicBaseUrl" placeholder="https://freundesbuch.example.com" />
|
||||
<button type="button" id="saveSettingsBtn">Speichern</button>
|
||||
</div>
|
||||
<p class="muted" style="margin-top:0.4em;">Leer lassen, um automatisch die aktuell aufgerufene Adresse zu verwenden.</p>
|
||||
<div id="settingsSaved" class="saved-msg2"></div>
|
||||
</section>
|
||||
<nav class="tab-nav">
|
||||
<a href="/admin" class="tab-link active">👥 Freunde</a>
|
||||
<a href="/admin/settings" class="tab-link">⚙️ Einstellungen & Sichern</a>
|
||||
</nav>
|
||||
|
||||
<section class="card" id="createCard" style="margin-top:1.4em;">
|
||||
<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 />
|
||||
@@ -37,35 +31,9 @@
|
||||
<div id="createErr"></div>
|
||||
</section>
|
||||
|
||||
<section class="card" id="transferCard" style="margin-top:1.4em;">
|
||||
<h2>Sichern & Wiederherstellen</h2>
|
||||
<div class="transfer-row">
|
||||
<div>
|
||||
<h3 style="font-size:1.2rem;">Ganzes Buch</h3>
|
||||
<button type="button" id="bookExportBtn" class="secondary">⬇️ Buch exportieren (ZIP)</button>
|
||||
</div>
|
||||
<div>
|
||||
<label for="bookImportFile">Buch importieren</label>
|
||||
<input type="file" id="bookImportFile" accept=".zip" />
|
||||
<label style="font-weight:normal; display:flex; align-items:center; gap:0.4em; margin-top:0.4em;">
|
||||
<input type="checkbox" id="bookImportReplace" style="width:auto;" />
|
||||
Bestehende Freunde vorher löschen
|
||||
</label>
|
||||
<button type="button" id="bookImportBtn" class="secondary" style="margin-top:0.4em;">⬆️ Importieren</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="border:none; border-top:1px solid var(--line); margin:1.2em 0;" />
|
||||
<div>
|
||||
<h3 style="font-size:1.2rem;">Einzelnen Freund importieren</h3>
|
||||
<p class="muted">Legt einen neuen Freund aus einer zuvor exportierten ZIP-Datei an.</p>
|
||||
<input type="file" id="friendImportFile" accept=".zip" />
|
||||
<button type="button" id="friendImportBtn" class="secondary" style="margin-top:0.4em;">⬆️ Importieren</button>
|
||||
</div>
|
||||
<div id="transferMsg"></div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top:2em;">
|
||||
<h2>Deine Freunde</h2>
|
||||
<p class="muted">Die Reihenfolge hier bestimmt die Seitenfolge im Freundesbuch (nach dem Deckblatt). Mit den Pfeilen verschieben.</p>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user