2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('User.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
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() ?>
|
|
|
|
|
2022-10-15 11:22:08 +00:00
|
|
|
<Forms.Field
|
|
|
|
name="username"
|
|
|
|
label="<?= lang('User.form.username') ?>"
|
|
|
|
required="true" />
|
|
|
|
|
2021-09-20 15:45:38 +00:00
|
|
|
<Forms.Field
|
|
|
|
name="email"
|
|
|
|
type="email"
|
|
|
|
label="<?= lang('User.form.email') ?>"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
2022-10-15 11:22:08 +00:00
|
|
|
as="Select"
|
|
|
|
name="role"
|
|
|
|
label="<?= lang('User.form.role') ?>"
|
|
|
|
options="<?= esc(json_encode($roleOptions)) ?>"
|
|
|
|
selected="<?= setting('AuthGroups.defaultGroup') ?>"
|
2021-09-20 15:45:38 +00:00
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('User.form.submit_create') ?></Button>
|
|
|
|
|
|
|
|
</form>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2020-10-22 17:41:59 +00:00
|
|
|
<?= $this->endSection() ?>
|