2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-31 16:05:10 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2022-10-15 11:22:08 +00:00
|
|
|
<?= lang('User.edit_role', [
|
2022-03-04 14:33:48 +00:00
|
|
|
'username' => esc($user->username),
|
2021-09-08 15:51:33 +00:00
|
|
|
]) ?>
|
2020-07-31 16:05:10 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
2022-10-15 11:22:08 +00:00
|
|
|
<?= lang('User.edit_role', [
|
2022-03-04 14:33:48 +00:00
|
|
|
'username' => esc($user->username),
|
2021-09-08 15:51:33 +00:00
|
|
|
]) ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-07-31 16:05:10 +00:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-20 15:45:38 +00:00
|
|
|
<form action="<?= route_to('user-edit', $user->id) ?>" method="POST" class="flex flex-col max-w-sm">
|
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
|
|
|
as="Select"
|
|
|
|
name="role"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('User.form.role')) ?>"
|
2021-09-20 15:45:38 +00:00
|
|
|
options="<?= esc(json_encode($roleOptions)) ?>"
|
2024-05-17 14:01:04 +00:00
|
|
|
defaultValue="<?= esc(get_instance_group($user)) ?>"
|
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 mt-4"><?= lang('User.form.submit_edit') ?></x-Button>
|
2021-09-20 15:45:38 +00:00
|
|
|
|
|
|
|
</form>
|
2020-07-31 16:05:10 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|