mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-22 16:51:20 +00:00
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Person.create') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form action="<?= route_to('person-create') ?>" method="POST" class="flex flex-col max-w-sm gap-y-4" enctype="multipart/form-data">
|
|
<?= csrf_field() ?>
|
|
|
|
<x-Forms.Field
|
|
name="avatar"
|
|
label="<?= esc(lang('Person.form.avatar')) ?>"
|
|
helper="<?= esc(lang('Person.form.avatar_size_hint')) ?>"
|
|
type="file"
|
|
accept=".jpg,.jpeg,.png" />
|
|
|
|
<x-Forms.Field
|
|
name="full_name"
|
|
label="<?= esc(lang('Person.form.full_name')) ?>"
|
|
hint="<?= esc(lang('Person.form.full_name_hint')) ?>"
|
|
isRequired="true"
|
|
data-slugify="title" />
|
|
|
|
<x-Forms.Field
|
|
name="unique_name"
|
|
label="<?= esc(lang('Person.form.unique_name')) ?>"
|
|
hint="<?= esc(lang('Person.form.unique_name_hint')) ?>"
|
|
isRequired="true"
|
|
data-slugify="slug" />
|
|
<x-Forms.Field
|
|
name="information_url"
|
|
label="<?= esc(lang('Person.form.information_url')) ?>"
|
|
hint="<?= esc(lang('Person.form.information_url_hint')) ?>" />
|
|
|
|
<x-Button variant="primary" class="self-end" type="submit"><?= lang('Person.form.submit_create') ?></x-Button>
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|