mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-10-05 07:56:51 +02:00
5c5c6da4be
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?= helper('form') ?>
|
|
<?= $this->extend($config->viewLayout) ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Auth.loginTitle') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?= 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',
|
|
]) ?>
|
|
|
|
|
|
<?= button(
|
|
lang('Auth.loginAction'),
|
|
'',
|
|
['variant' => 'primary'],
|
|
['type' => 'submit', 'class' => 'self-end'],
|
|
) ?>
|
|
|
|
<?= form_close() ?>
|
|
|
|
<?= $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() ?>
|