mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-10-06 08:26:57 +02:00
2d44b457a0
- add podcast sidebar navigation - add podcast dashboard with latest episodes - add pagination to podcast episodes - add components helper to reuse ui components (button, data_table, etc.) - enhance podcast and episode forms by splitting them into form sections - add hint tooltips to podcast and episode forms - transform radio inputs as buttons for better ux - replace explicit field by parental_advisory - replace author field by publisher - add podcasts_categories table to set multiple categories - use choices.js to enhance multiselect fields - update Language files - update js dependencies to latest versions closes #31, #9
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'),
|
|
null,
|
|
['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() ?>
|