mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-19 23:53:24 +02:00
31 lines
879 B
PHP
31 lines
879 B
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Contributor.edit_role', [$user->username]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Contributor.edit_role', [$user->username]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form method="POST" action="<?= route_to('contributor-edit', $podcast->id, $user->id) ?>" class="flex flex-col max-w-sm gap-y-4">
|
|
<?= csrf_field() ?>
|
|
|
|
<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>
|
|
|
|
<?= $this->endSection() ?>
|