mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-17 15:23:22 +02:00
a95de8bab0
- update Component class structure and remove component helper function and ComponentLoader - update residual activitypub naming to fediverse
32 lines
900 B
PHP
32 lines
900 B
PHP
<?= $this->extend('Modules\Admin\Views\_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() ?>
|