mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-31 16:07:19 +02:00
41 lines
932 B
PHP
41 lines
932 B
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('User.edit_roles', [
|
|
'username' => $user->username,
|
|
]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('User.edit_roles', [
|
|
'username' => $user->username,
|
|
]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?= form_open(route_to('user-edit', $user->id), [
|
|
'class' => 'flex flex-col max-w-sm',
|
|
]) ?>
|
|
<?= csrf_field() ?>
|
|
|
|
<?= form_label(lang('User.form.roles'), 'roles') ?>
|
|
<Forms.MultiSelect id="roles" name="roles[]" class="mb-4" required="required" options="<?= htmlspecialchars(json_encode($roleOptions)) ?>" selected="<?= htmlspecialchars(json_encode($user->roles)) ?>"/>
|
|
|
|
<?= button(
|
|
lang('User.form.submit_edit'),
|
|
'',
|
|
[
|
|
'variant' => 'primary',
|
|
],
|
|
[
|
|
'type' => 'submit',
|
|
'class' => 'self-end',
|
|
],
|
|
) ?>
|
|
|
|
<?= form_close() ?>
|
|
|
|
<?= $this->endSection() ?>
|