mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
31 lines
925 B
PHP
31 lines
925 B
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Contributor.edit_role', [esc($contributor->username)]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Contributor.edit_role', [esc($contributor->username)]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form method="POST" action="<?= route_to('contributor-edit', $podcast->id, $contributor->id) ?>" class="flex flex-col max-w-sm gap-y-4">
|
|
<?= csrf_field() ?>
|
|
|
|
<x-Forms.Field
|
|
as="Select"
|
|
name="role"
|
|
label="<?= esc(lang('Contributor.form.role')) ?>"
|
|
options="<?= esc(json_encode($roleOptions)) ?>"
|
|
defaultValue="<?= $contributorGroup ?>"
|
|
placeholder="<?= lang('Contributor.form.role_placeholder') ?>"
|
|
isRequired="true" />
|
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Contributor.form.submit_edit') ?></x-Button>
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|