mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-19 23:53:24 +02:00
47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Person.create') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $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() ?>
|
|
|
|
<Forms.Field
|
|
name="image"
|
|
label="<?= lang('Person.form.image') ?>"
|
|
helper="<?= lang('Person.form.image_size_hint') ?>"
|
|
type="file"
|
|
required="true"
|
|
accept=".jpg,.jpeg,.png" />
|
|
|
|
<Forms.Field
|
|
name="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"
|
|
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') ?>" />
|
|
|
|
<Button variant="primary" class="self-end" type="submit"><?= lang('Person.form.submit_create') ?></Button>
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|