2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('User.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('content') ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2021-09-21 15:51:04 +00:00
|
|
|
<form action="<?= route_to('user-create') ?>" method="POST" class="flex flex-col max-w-sm gap-y-4">
|
2020-08-14 18:27:57 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2022-10-15 11:22:08 +00:00
|
|
|
name="username"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('User.form.username')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2022-10-15 11:22:08 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="email"
|
|
|
|
type="email"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('User.form.email')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-20 15:45:38 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2022-10-15 11:22:08 +00:00
|
|
|
as="Select"
|
|
|
|
name="role"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('User.form.role')) ?>"
|
2022-10-15 11:22:08 +00:00
|
|
|
options="<?= esc(json_encode($roleOptions)) ?>"
|
2024-05-17 14:01:04 +00:00
|
|
|
defaultValue="<?= setting('AuthGroups.defaultGroup') ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-20 15:45:38 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('User.form.submit_create') ?></x-Button>
|
2021-09-20 15:45:38 +00:00
|
|
|
|
|
|
|
</form>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-10-22 17:41:59 +00:00
|
|
|
<?= $this->endSection() ?>
|