mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 03:27:45 +02:00
refactor: rewrite form pages using form helper
- add installGateway to app config - update route names and groups - remove `author_name` and `author_email` from `episodes` table - remove `author_name` and `author_email` from `podcasts` table - remove `owner_id` + add `created_by` and `updated_by` fields in `podcasts` and `episodes` tables - remove unnecessary comments in database fields - remove confirm password inputs from auth forms for better ux - rename `pub_date` field to `published_at` and add publication time field in episode form closes #14, #28
This commit is contained in:
parent
012de2072e
commit
a1a28de702
59 changed files with 1580 additions and 1158 deletions
|
|
@ -7,31 +7,44 @@
|
|||
|
||||
<?= $this->section('content') ?>
|
||||
|
||||
<form action="<?= route_to(
|
||||
'user_create'
|
||||
) ?>" method="post" class="flex flex-col max-w-lg">
|
||||
<?= csrf_field() ?>
|
||||
<?= form_open(route_to('user-create'), [
|
||||
'class' => 'flex flex-col max-w-sm',
|
||||
]) ?>
|
||||
<?= csrf_field() ?>
|
||||
|
||||
<label for="email"><?= lang('User.form.email') ?></label>
|
||||
<input type="email" class="mb-4 form-input" name="email" id="email" value="<?= old(
|
||||
'email'
|
||||
) ?>">
|
||||
<?= form_label(lang('User.form.email'), 'email') ?>
|
||||
<?= form_input([
|
||||
'id' => 'email',
|
||||
'name' => 'email',
|
||||
'class' => 'form-input mb-4',
|
||||
'value' => old('email'),
|
||||
'type' => 'email',
|
||||
]) ?>
|
||||
|
||||
<label for="username"><?= lang('User.form.username') ?></label>
|
||||
<input type="text" class="mb-4 form-input" name="username" id="username" value="<?= old(
|
||||
'username'
|
||||
) ?>">
|
||||
<?= form_label(lang('User.form.username'), 'username') ?>
|
||||
<?= form_input([
|
||||
'id' => 'username',
|
||||
'name' => 'username',
|
||||
'class' => 'form-input mb-4',
|
||||
'value' => old('username'),
|
||||
]) ?>
|
||||
|
||||
<label for="password"><?= lang('User.form.password') ?></label>
|
||||
<input type="password" name="password" class="mb-4 form-input" id="password" autocomplete="off">
|
||||
<?= form_label(lang('User.form.password'), 'password') ?>
|
||||
<?= form_input([
|
||||
'id' => 'password',
|
||||
'name' => 'password',
|
||||
'class' => 'form-input mb-4',
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'new-password',
|
||||
]) ?>
|
||||
|
||||
<label for="pass_confirm"><?= lang('User.form.repeat_password') ?></label>
|
||||
<input type="password" name="pass_confirm" class="mb-6 form-input" id="pass_confirm" autocomplete="off">
|
||||
<?= form_button([
|
||||
'content' => lang('User.form.submit_create'),
|
||||
'type' => 'submit',
|
||||
'class' => 'self-end px-4 py-2 bg-gray-200',
|
||||
]) ?>
|
||||
|
||||
<button type="submit" class="px-4 py-2 ml-auto border">
|
||||
<?= lang('User.form.submit_create') ?>
|
||||
</button>
|
||||
</form>
|
||||
<?= form_close() ?>
|
||||
|
||||
<?= $this->endSection()
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue