2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2022-03-04 14:33:48 +00:00
|
|
|
<?= lang('Contributor.edit_role', [esc($user->username)]) ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
2022-03-04 14:33:48 +00:00
|
|
|
<?= lang('Contributor.edit_role', [esc($user->username)]) ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
2020-08-14 18:27:57 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<form method="POST" action="<?= route_to('contributor-edit', $podcast->id, $user->id) ?>" class="flex flex-col max-w-sm gap-y-4">
|
2020-08-14 18:27:57 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.Field
|
|
|
|
as="Select"
|
|
|
|
name="role"
|
|
|
|
label="<?= lang('Contributor.form.role') ?>"
|
|
|
|
selected="<?= $contributorGroupId ?>"
|
|
|
|
options="<?= esc(json_encode($roleOptions)) ?>"
|
|
|
|
placeholder="<?= lang('Contributor.form.role_placeholder') ?>"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Contributor.form.submit_edit') ?></Button>
|
|
|
|
|
|
|
|
</form>
|
2020-08-14 18:27:57 +00:00
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->endSection() ?>
|