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.add_contributor', [esc($podcast->title)]) ?>
|
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.add_contributor', [esc($podcast->title)]) ?>
|
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-add', $podcast->id) ?>" class="flex flex-col max-w-sm gap-y-4">
|
2020-08-14 18:27:57 +00:00
|
|
|
<?= csrf_field() ?>
|
2021-08-27 10:58:22 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.Field
|
|
|
|
as="Select"
|
|
|
|
name="user"
|
|
|
|
label="<?= lang('Contributor.form.user') ?>"
|
2022-10-15 11:22:08 +00:00
|
|
|
options="<?= esc(json_encode($contributorOptions)) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
placeholder="<?= lang('Contributor.form.user_placeholder') ?>"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="Select"
|
|
|
|
name="role"
|
|
|
|
label="<?= lang('Contributor.form.role') ?>"
|
|
|
|
options="<?= esc(json_encode($roleOptions)) ?>"
|
|
|
|
placeholder="<?= lang('Contributor.form.role_placeholder') ?>"
|
2022-10-15 11:22:08 +00:00
|
|
|
selected="<?= setting('AuthGroups.defaultPodcastGroup') ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Button type="submit" class="self-end" variant="primary"><?= lang('Contributor.form.submit_add') ?></Button>
|
|
|
|
|
|
|
|
</form>
|
2020-07-16 10:08:23 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|