2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Person.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Person.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-21 15:51:04 +00:00
|
|
|
<form action="<?= route_to('person-create') ?>" method="POST" class="flex flex-col max-w-sm gap-y-4" enctype="multipart/form-data">
|
2021-02-10 16:20:01 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-11-01 17:12:03 +00:00
|
|
|
name="avatar"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Person.form.avatar')) ?>"
|
|
|
|
helper="<?= esc(lang('Person.form.avatar_size_hint')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
type="file"
|
|
|
|
accept=".jpg,.jpeg,.png" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="full_name"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Person.form.full_name')) ?>"
|
|
|
|
hint="<?= esc(lang('Person.form.full_name_hint')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-15 15:58:21 +00:00
|
|
|
data-slugify="title" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="unique_name"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Person.form.unique_name')) ?>"
|
|
|
|
hint="<?= esc(lang('Person.form.unique_name_hint')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-12-20 17:12:12 +00:00
|
|
|
data-slugify="slug" />
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="information_url"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Person.form.information_url')) ?>"
|
|
|
|
hint="<?= esc(lang('Person.form.information_url_hint')) ?>" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" class="self-end" type="submit"><?= lang('Person.form.submit_create') ?></x-Button>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
</form>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|