30 lines
885 B
PHP
30 lines
885 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/** @var string|null $error */
|
|
/** @var string $next */
|
|
?>
|
|
<section class="start-screen">
|
|
<p class="eyebrow">Админка</p>
|
|
<h1>Вход</h1>
|
|
<p class="muted">Введите email и пароль администратора.</p>
|
|
|
|
<?php if ($error !== null): ?>
|
|
<div class="status-box danger"><?= e($error) ?></div>
|
|
<?php endif; ?>
|
|
|
|
<form class="admin-form" method="post">
|
|
<input type="hidden" name="next" value="<?= e($next) ?>">
|
|
<label>
|
|
Email
|
|
<input name="email" type="email" autocomplete="username" required>
|
|
</label>
|
|
<label>
|
|
Пароль
|
|
<input name="password" type="password" autocomplete="current-password" required>
|
|
</label>
|
|
<button class="primary-button" type="submit">Войти</button>
|
|
</form>
|
|
</section>
|