mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 00:35:47 +00:00

- rename image fields on podcast, episode and persons for better clarity - set different sizes config for podcast cover, banner and persons avatars - add tiny size for covers - fix responsive on admin forms
50 lines
1.3 KiB
PHP
50 lines
1.3 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Person.edit') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Person.edit') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form action="<?= route_to('person-edit', $person->id) ?>" method="POST" class="flex flex-col max-w-sm gap-y-4" enctype="multipart/form-data">
|
|
<?= csrf_field() ?>
|
|
|
|
<Forms.Field
|
|
name="avatar"
|
|
label="<?= lang('Person.form.avatar') ?>"
|
|
helper="<?= lang('Person.form.avatar_size_hint') ?>"
|
|
type="file"
|
|
accept=".jpg,.jpeg,.png" />
|
|
|
|
<Forms.Field
|
|
name="full_name"
|
|
value="<?= $person->full_name ?>"
|
|
label="<?= lang('Person.form.full_name') ?>"
|
|
hint="<?= lang('Person.form.full_name_hint') ?>"
|
|
required="true"
|
|
data-slugify="title" />
|
|
|
|
<Forms.Field
|
|
name="unique_name"
|
|
value="<?= $person->unique_name ?>"
|
|
label="<?= lang('Person.form.unique_name') ?>"
|
|
hint="<?= lang('Person.form.unique_name_hint') ?>"
|
|
required="true" />
|
|
|
|
<Forms.Field
|
|
name="information_url"
|
|
label="<?= lang('Person.form.information_url') ?>"
|
|
hint="<?= lang('Person.form.information_url_hint') ?>"
|
|
value="<?= $person->information_url ?>" />
|
|
|
|
<Button variant="primary" class="self-end" type="submit"><?= lang('Person.form.submit_edit') ?></Button>
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|