2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->extend($config->viewLayout) ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2020-08-04 11:25:22 +00:00
|
|
|
<?= lang('Auth.loginTitle') ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
|
|
|
<form action="<?= route_to('login') ?>" method="post" class="flex flex-col">
|
2020-08-04 11:25:22 +00:00
|
|
|
<?= csrf_field() ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-08-04 11:25:22 +00:00
|
|
|
<label for="login"><?= lang('Auth.emailOrUsername') ?></label>
|
|
|
|
<input type="text" name="login" class="mb-4 form-input" placeholder="<?= lang(
|
|
|
|
'Auth.emailOrUsername'
|
|
|
|
) ?>">
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-08-04 11:25:22 +00:00
|
|
|
<label for="password"><?= lang('Auth.password') ?></label>
|
|
|
|
<input type="password" name="password" class="mb-6 form-input" placeholder="<?= lang(
|
|
|
|
'Auth.password'
|
|
|
|
) ?>">
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-08-04 11:25:22 +00:00
|
|
|
<button type="submit" class="px-4 py-2 ml-auto border">
|
|
|
|
<?= lang('Auth.loginAction') ?>
|
|
|
|
</button>
|
2020-07-10 12:20:25 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('footer') ?>
|
|
|
|
|
|
|
|
<div class="flex flex-col items-center py-4 text-sm text-center">
|
2020-08-04 11:25:22 +00:00
|
|
|
<?php if ($config->allowRegistration): ?>
|
|
|
|
<a class="underline hover:no-underline" href="<?= route_to(
|
|
|
|
'register'
|
|
|
|
) ?>"><?= lang('Auth.needAnAccount') ?></a>
|
|
|
|
<?php endif; ?>
|
|
|
|
<a class="underline hover:no-underline" href="<?= route_to(
|
|
|
|
'forgot'
|
|
|
|
) ?>"><?= lang('Auth.forgotYourPassword') ?></a>
|
2020-07-10 12:20:25 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|