rinkplanner/hub/views/login.php

32 lines
1.2 KiB
PHP
Raw Normal View History

<?php /** @var string $error */ ?>
<?php /** @var string $login */ ?>
<?php /** @var string $next */ ?>
<section class="auth-card">
<h1><?= e(t('login.title')) ?></h1>
<p class="muted"><?= e(t('login.lede')) ?></p>
<?php if ($error !== ''): ?>
<div class="flash flash-error"><?= e($error) ?></div>
<?php endif; ?>
<form method="post" action="<?= e(url('/login')) ?>" class="stack">
<?= csrf_field() ?>
<input type="hidden" name="next" value="<?= e_attr($next) ?>">
<label>
<?= e(t('login.login_label')) ?>
<input type="text" name="login" value="<?= e_attr($login) ?>" autocomplete="username" required autofocus>
</label>
<label>
<?= e(t('login.password')) ?>
<input type="password" name="password" autocomplete="current-password" required>
</label>
<label class="check">
<input type="checkbox" name="remember" value="1">
<?= e(t('login.remember')) ?>
</label>
<button class="primary" type="submit"><?= e(t('login.submit')) ?></button>
</form>
<p class="muted small"><?= e(t('login.no_access')) ?></p>
</section>