2021-08-23 13:05:16 +02:00
|
|
|
<?= $this->extend('Modules\Admin\Views\_layout') ?>
|
2020-07-31 18:05:10 +02:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('User.edit_roles', ['username' => $user->username]) ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('User.edit_roles', ['username' => $user->username]) ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-07-31 18:05:10 +02:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2020-08-14 20:27:57 +02: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-19 16:00:14 +02:00
|
|
|
<?= component('Forms/MultiSelect', ['options' => $roleOptions, 'selected' => $user->roles], [
|
2020-08-14 20:27:57 +02:00
|
|
|
'id' => 'roles',
|
2021-08-19 16:00:14 +02:00
|
|
|
'name' => 'roles[]',
|
2020-10-02 17:38:16 +02:00
|
|
|
'class' => 'mb-4',
|
2020-08-14 20:27:57 +02:00
|
|
|
]) ?>
|
|
|
|
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= button(
|
|
|
|
lang('User.form.submit_edit'),
|
2021-05-06 16:00:48 +02:00
|
|
|
'',
|
2020-10-02 17:38:16 +02:00
|
|
|
['variant' => 'primary'],
|
2021-05-06 16:00:48 +02:00
|
|
|
['type' => 'submit', 'class' => 'self-end'],
|
2020-10-02 17:38:16 +02:00
|
|
|
) ?>
|
2020-08-14 20:27:57 +02:00
|
|
|
|
|
|
|
<?= form_close() ?>
|
2020-07-31 18:05:10 +02:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|