Files
fotobox-webspite/views/admin/login.php
T
2026-05-05 12:30:45 +02:00

29 lines
1.1 KiB
PHP

<section class="admin-login-section">
<div class="admin-login-card">
<p class="eyebrow">Verwaltung</p>
<h1>Interner Zugang</h1>
<p>Hier verwalten Sie Anfragen, Buchungen, Kunden und Rechnungen.</p>
<?php if (!empty($flashSuccess)): ?>
<div class="flash flash-success"><?= h((string) $flashSuccess) ?></div>
<?php endif; ?>
<?php if (!empty($flashError)): ?>
<div class="flash flash-error"><?= h((string) $flashError) ?></div>
<?php endif; ?>
<form method="post" action="<?= h(url('admin/login')) ?>" class="stack-form">
<?= csrfField() ?>
<label>
<span>Benutzername</span>
<input type="text" name="username" value="<?= h((string) $defaultUsername) ?>" required>
</label>
<label>
<span>Passwort</span>
<input type="password" name="password" required>
</label>
<button type="submit" class="button-primary button-block">Anmelden</button>
</form>
</div>
</section>