Bicycle/App/view/Login/login.html
Egor Isaev bbeb36b2e8 dev
2026-08-06 16:52:19 +03:00

35 lines
905 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* @package Bicycle
* @description login.html — форма входа
*
* @var string|null $error Сообщение об ошибке (неверные данные)
*/
use System\Classes\CSRF;
?>
<h1 class="h3 mb-3">Вход</h1>
<?php if ($error !== null): ?>
<div class="alert alert-danger"><?= htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?></div>
<?php endif; ?>
<form method="post" action="/login" class="col-md-4">
<?= CSRF::field() ?>
<div class="mb-3">
<label class="form-label">Логин
<input type="text" name="login" class="form-control" autofocus>
</label>
</div>
<div class="mb-3">
<label class="form-label">Пароль
<input type="password" name="password" class="form-control">
</label>
</div>
<button type="submit" class="btn btn-primary">Войти</button>
</form>