2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Person.edit') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-21 13:12:38 +00:00
|
|
|
<form action="<?= route_to('person-edit', $person->id) ?>" 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"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc($person->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"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc($person->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"
|
2022-01-05 14:58:53 +00:00
|
|
|
data-slugify="slug" />
|
2021-10-26 15:54:56 +00:00
|
|
|
|
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')) ?>"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc($person->information_url) ?>" />
|
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_edit') ?></x-Button>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
</form>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|