mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-19 23:53:24 +02:00
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?= helper('form') ?>
|
|
<?= $this->extend($config->viewLayout) ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Auth.loginTitle') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form actions="<?= route_to('login') ?>" method="POST" class="flex flex-col w-full gap-y-4">
|
|
<?= 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>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('footer') ?>
|
|
|
|
<div class="flex flex-col items-center py-4 text-sm text-center">
|
|
<?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>
|
|
</div>
|
|
|
|
<?= $this->endSection() ?>
|