Yassine Doghri 9da1d0a1b6 feat(plugins): add aside with plugin metadata next to plugin's readme
- enhance plugin card ui
- refactor components to be more consistent
- invert toggler label for better UX
- edit view components regex
2024-05-28 10:14:10 +00:00

34 lines
836 B
PHP

<?= $this->extend('_layout') ?>
<?= $this->section('title') ?>
<?= lang('User.edit_role', [
'username' => esc($user->username),
]) ?>
<?= $this->endSection() ?>
<?= $this->section('pageTitle') ?>
<?= lang('User.edit_role', [
'username' => esc($user->username),
]) ?>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<form action="<?= route_to('user-edit', $user->id) ?>" method="POST" class="flex flex-col max-w-sm">
<?= csrf_field() ?>
<x-Forms.Field
as="Select"
name="role"
label="<?= esc(lang('User.form.role')) ?>"
options="<?= esc(json_encode($roleOptions)) ?>"
selected="<?= esc(get_instance_group($user)) ?>"
isRequired="true" />
<x-Button variant="primary" type="submit" class="self-end mt-4"><?= lang('User.form.submit_edit') ?></x-Button>
</form>
<?= $this->endSection() ?>