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') ?>
|
|
|
|
|
|
|
|
<?= form_open_multipart(route_to('person-create'), [
|
|
|
|
'method' => 'post',
|
|
|
|
'class' => 'flex flex-col',
|
|
|
|
]) ?>
|
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<?= form_section(
|
|
|
|
lang('Person.form.identity_section_title'),
|
2021-05-06 14:00:48 +00:00
|
|
|
lang('Person.form.identity_section_subtitle'),
|
2021-02-10 16:20:01 +00:00
|
|
|
) ?>
|
|
|
|
|
2021-07-29 15:06:48 +00:00
|
|
|
<?= form_label(lang('Person.form.image'), 'image') ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'image',
|
|
|
|
'name' => 'image',
|
|
|
|
'class' => 'form-input',
|
|
|
|
'type' => 'file',
|
|
|
|
'accept' => '.jpg,.jpeg,.png',
|
|
|
|
]) ?>
|
|
|
|
<small class="mb-4 text-gray-600"><?= lang(
|
|
|
|
'Person.form.image_size_hint',
|
|
|
|
) ?></small>
|
|
|
|
|
2021-02-10 16:20:01 +00:00
|
|
|
<?= form_label(
|
|
|
|
lang('Person.form.full_name'),
|
|
|
|
'full_name',
|
|
|
|
[],
|
2021-05-06 14:00:48 +00:00
|
|
|
lang('Person.form.full_name_hint'),
|
2021-02-10 16:20:01 +00:00
|
|
|
) ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'full_name',
|
|
|
|
'name' => 'full_name',
|
|
|
|
'class' => 'form-input mb-4',
|
|
|
|
'value' => old('full_name'),
|
|
|
|
'required' => 'required',
|
|
|
|
'data-slugify' => 'title',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_label(
|
|
|
|
lang('Person.form.unique_name'),
|
|
|
|
'unique_name',
|
|
|
|
[],
|
2021-05-06 14:00:48 +00:00
|
|
|
lang('Person.form.unique_name_hint'),
|
2021-02-10 16:20:01 +00:00
|
|
|
) ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'unique_name',
|
|
|
|
'name' => 'unique_name',
|
|
|
|
'class' => 'form-input mb-4',
|
|
|
|
'value' => old('unique_name'),
|
|
|
|
'required' => 'required',
|
|
|
|
'data-slugify' => 'slug',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_label(
|
|
|
|
lang('Person.form.information_url'),
|
|
|
|
'information_url',
|
|
|
|
[],
|
|
|
|
lang('Person.form.information_url_hint'),
|
2021-05-06 14:00:48 +00:00
|
|
|
true,
|
2021-02-10 16:20:01 +00:00
|
|
|
) ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'information_url',
|
|
|
|
'name' => 'information_url',
|
|
|
|
'class' => 'form-input mb-4',
|
|
|
|
'value' => old('information_url'),
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_section_close() ?>
|
|
|
|
|
|
|
|
<?= button(
|
|
|
|
lang('Person.form.submit_create'),
|
2021-05-06 14:00:48 +00:00
|
|
|
'',
|
2021-09-08 15:51:33 +00:00
|
|
|
[
|
|
|
|
'variant' => 'primary',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'type' => 'submit',
|
|
|
|
'class' => 'self-end',
|
|
|
|
],
|
2021-02-10 16:20:01 +00:00
|
|
|
) ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= form_close() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|