2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->extend('admin/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Contributor.add_contributor', [$podcast->title]) ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
2020-08-14 18:27:57 +00:00
|
|
|
|
|
|
|
<?= form_open(route_to('contributor-add', $podcast->id), [
|
|
|
|
'class' => 'flex flex-col max-w-sm',
|
|
|
|
]) ?>
|
|
|
|
<?= csrf_field() ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
|
2020-08-14 18:27:57 +00:00
|
|
|
<?= form_label(lang('Contributor.form.user'), 'user') ?>
|
|
|
|
<?= form_dropdown('user', $userOptions, old('user'), [
|
|
|
|
'id' => 'user',
|
|
|
|
'class' => 'form-select mb-4',
|
|
|
|
'required' => 'required',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_label(lang('Contributor.form.role'), 'role') ?>
|
|
|
|
<?= form_dropdown('role', $roleOptions, old('role'), [
|
|
|
|
'id' => 'role',
|
|
|
|
'class' => 'form-select mb-4',
|
|
|
|
'required' => 'required',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_button([
|
|
|
|
'content' => lang('Contributor.form.submit_add'),
|
|
|
|
'type' => 'submit',
|
|
|
|
'class' => 'self-end px-4 py-2 bg-gray-200',
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_close() ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|