2020-07-31 16:05:10 +00:00
|
|
|
<?= $this->extend('admin/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('User.edit_roles', ['username' => $user->username]) ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('User.edit_roles', ['username' => $user->username]) ?>
|
|
|
|
<?= $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') ?>
|
|
|
|
<?= form_multiselect('roles[]', $roleOptions, $user->roles, [
|
|
|
|
'id' => 'roles',
|
2020-10-02 15:38:16 +00:00
|
|
|
'class' => 'mb-4',
|
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
|
|
|
'',
|
2020-10-02 15:38:16 +00:00
|
|
|
['variant' => 'primary'],
|
2021-05-06 14:00:48 +00:00
|
|
|
['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() ?>
|