mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 08:45:45 +00:00
50 lines
1.2 KiB
PHP
50 lines
1.2 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_open(route_to('contributor-add', $podcast->id), [
|
|
'class' => 'flex flex-col max-w-sm',
|
|
]) ?>
|
|
<?= csrf_field() ?>
|
|
|
|
<Forms.Label for="user"><?= lang('Contributor.form.user') ?></Forms.Label>
|
|
<?= form_dropdown('user', $userOptions, [old('user', '')], [
|
|
'id' => 'user',
|
|
'class' => 'form-select mb-4',
|
|
'required' => 'required',
|
|
'placeholder' => lang('Contributor.form.user_placeholder'),
|
|
]) ?>
|
|
|
|
<Forms.Label for="role"><?= lang('Contributor.form.role') ?></Forms.Label>
|
|
<?= form_dropdown('role', $roleOptions, [old('role', '')], [
|
|
'id' => 'role',
|
|
'class' => 'form-select mb-4',
|
|
'required' => 'required',
|
|
'placeholder' => lang('Contributor.form.role_placeholder'),
|
|
]) ?>
|
|
|
|
<?= button(
|
|
lang('Contributor.form.submit_add'),
|
|
'',
|
|
[
|
|
'variant' => 'primary',
|
|
],
|
|
[
|
|
'type' => 'submit',
|
|
'class' => 'self-end',
|
|
],
|
|
) ?>
|
|
|
|
<?= form_close() ?>
|
|
|
|
<?= $this->endSection() ?>
|