mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-19 23:53:24 +02:00
38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Contributor.add_contributor', [$podcast->title]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Contributor.add_contributor', [$podcast->title]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form method="POST" action="<?= route_to('contributor-add', $podcast->id) ?>" class="flex flex-col max-w-sm gap-y-4">
|
|
<?= csrf_field() ?>
|
|
|
|
<Forms.Field
|
|
as="Select"
|
|
name="user"
|
|
label="<?= lang('Contributor.form.user') ?>"
|
|
options="<?= esc(json_encode($userOptions)) ?>"
|
|
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') ?>"
|
|
required="true" />
|
|
|
|
<Button type="submit" class="self-end" variant="primary"><?= lang('Contributor.form.submit_add') ?></Button>
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|