2020-08-14 20:27:57 +02:00
|
|
|
<?= helper('form') ?>
|
2020-07-10 14:20:25 +02:00
|
|
|
<?= $this->extend($config->viewLayout) ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2020-08-04 13:25:22 +02:00
|
|
|
<?= lang('Auth.loginTitle') ?>
|
2020-07-10 14:20:25 +02:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-21 17:51:04 +02:00
|
|
|
<form actions="<?= route_to('login') ?>" method="POST" class="flex flex-col w-full gap-y-4">
|
2021-09-20 17:45:38 +02:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="login"
|
|
|
|
label="<?= lang('Auth.emailOrUsername') ?>"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="password"
|
|
|
|
label="<?= lang('Auth.password') ?>"
|
|
|
|
type="password"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Auth.loginAction') ?></Button>
|
|
|
|
</form>
|
2020-07-10 14:20:25 +02:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('footer') ?>
|
|
|
|
|
|
|
|
<div class="flex flex-col items-center py-4 text-sm text-center">
|
2020-08-04 13:25:22 +02:00
|
|
|
<?php if ($config->allowRegistration): ?>
|
|
|
|
<a class="underline hover:no-underline" href="<?= route_to(
|
2021-09-08 17:51:33 +02:00
|
|
|
'register',
|
|
|
|
) ?>"><?= lang('Auth.needAnAccount') ?></a>
|
2020-08-04 13:25:22 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
<a class="underline hover:no-underline" href="<?= route_to(
|
2021-09-08 17:51:33 +02:00
|
|
|
'forgot',
|
|
|
|
) ?>"><?= lang('Auth.forgotYourPassword') ?></a>
|
2020-07-10 14:20:25 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|