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') ?>
|
|
|
|
|
2020-08-14 20:27:57 +02:00
|
|
|
<?= form_open(route_to('login'), ['class' => 'flex flex-col']) ?>
|
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<?= form_label(lang('Auth.emailOrUsername'), 'login') ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'login',
|
|
|
|
'name' => 'login',
|
|
|
|
'class' => 'form-input mb-4',
|
|
|
|
'required' => 'required',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_label(lang('Auth.password'), 'password') ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'password',
|
|
|
|
'name' => 'password',
|
|
|
|
'class' => 'form-input mb-4',
|
|
|
|
'type' => 'password',
|
|
|
|
'required' => 'required',
|
|
|
|
]) ?>
|
|
|
|
|
2020-10-02 17:38:16 +02:00
|
|
|
|
|
|
|
<?= button(
|
|
|
|
lang('Auth.loginAction'),
|
2021-05-06 16:00:48 +02:00
|
|
|
'',
|
2020-10-02 17:38:16 +02:00
|
|
|
['variant' => 'primary'],
|
2021-05-06 16:00:48 +02:00
|
|
|
['type' => 'submit', 'class' => 'self-end'],
|
2020-10-02 17:38:16 +02:00
|
|
|
) ?>
|
2020-08-14 20:27:57 +02:00
|
|
|
|
|
|
|
<?= form_close() ?>
|
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-05-06 16:00:48 +02:00
|
|
|
'register',
|
2020-08-04 13:25:22 +02:00
|
|
|
) ?>"><?= lang('Auth.needAnAccount') ?></a>
|
|
|
|
<?php endif; ?>
|
|
|
|
<a class="underline hover:no-underline" href="<?= route_to(
|
2021-05-06 16:00:48 +02:00
|
|
|
'forgot',
|
2020-08-04 13:25:22 +02:00
|
|
|
) ?>"><?= lang('Auth.forgotYourPassword') ?></a>
|
2020-07-10 14:20:25 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|