2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-31 16:05:10 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= lang('User.edit_roles', [
|
|
|
|
'username' => $user->username,
|
|
|
|
]) ?>
|
2020-07-31 16:05:10 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= lang('User.edit_roles', [
|
|
|
|
'username' => $user->username,
|
|
|
|
]) ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-07-31 16:05:10 +00:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2020-08-14 18:27:57 +00:00
|
|
|
<?= form_open(route_to('user-edit', $user->id), [
|
|
|
|
'class' => 'flex flex-col max-w-sm',
|
|
|
|
]) ?>
|
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<?= form_label(lang('User.form.roles'), 'roles') ?>
|
2021-08-27 10:58:22 +00:00
|
|
|
<Forms.MultiSelect id="roles" name="roles[]" class="mb-4" required="required" options="<?= htmlspecialchars(json_encode($roleOptions)) ?>" selected="<?= htmlspecialchars(json_encode($user->roles)) ?>"/>
|
2020-08-14 18:27:57 +00:00
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= button(
|
|
|
|
lang('User.form.submit_edit'),
|
2021-05-06 14:00:48 +00:00
|
|
|
'',
|
2021-09-08 15:51:33 +00:00
|
|
|
[
|
|
|
|
'variant' => 'primary',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'type' => 'submit',
|
|
|
|
'class' => 'self-end',
|
|
|
|
],
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>
|
2020-08-14 18:27:57 +00:00
|
|
|
|
|
|
|
<?= form_close() ?>
|
2020-07-31 16:05:10 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|