2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-06-05 13:54:40 +00:00
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Podcast.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('content') ?>
|
2020-06-05 13:54:40 +00:00
|
|
|
|
2022-01-23 16:53:23 +00:00
|
|
|
<form action="<?= route_to('podcast-create') ?>" method="POST" enctype='multipart/form-data' class="flex flex-col w-full max-w-xl gap-y-6">
|
2020-06-05 13:54:40 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-09-15 15:58:21 +00:00
|
|
|
title="<?= lang('Podcast.form.identity_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.identity_section_subtitle') ?>" >
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-11-01 17:12:03 +00:00
|
|
|
name="cover"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.cover')) ?>"
|
|
|
|
helper="<?= esc(lang('Podcast.form.cover_size_hint')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
type="file"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-15 15:58:21 +00:00
|
|
|
accept=".jpg,.jpeg,.png" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="title"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.title')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
as="MarkdownEditor"
|
|
|
|
name="description"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.description')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2022-02-02 17:01:19 +00:00
|
|
|
disallowList="header,quote" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-12 18:38:33 +00:00
|
|
|
<x-Forms.RadioGroup
|
|
|
|
label="<?= lang('Podcast.form.type.label') ?>"
|
|
|
|
name="type"
|
|
|
|
options="<?= esc(json_encode([
|
|
|
|
[
|
2024-12-10 15:57:06 +00:00
|
|
|
'label' => lang('Podcast.form.type.episodic'),
|
|
|
|
'value' => 'episodic',
|
|
|
|
'description' => lang('Podcast.form.type.episodic_description'),
|
2024-05-12 18:38:33 +00:00
|
|
|
],
|
|
|
|
[
|
2024-12-10 15:57:06 +00:00
|
|
|
'label' => lang('Podcast.form.type.serial'),
|
|
|
|
'value' => 'serial',
|
|
|
|
'description' => lang('Podcast.form.type.serial_description'),
|
2024-05-12 18:38:33 +00:00
|
|
|
],
|
|
|
|
])) ?>"
|
|
|
|
isRequired="true"
|
|
|
|
/>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2023-10-12 15:52:20 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-09-15 15:58:21 +00:00
|
|
|
title="<?= lang('Podcast.form.classification_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.classification_section_subtitle') ?>" >
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
as="Select"
|
|
|
|
name="language"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.language')) ?>"
|
2024-05-12 18:38:33 +00:00
|
|
|
defaultValue="<?= $browserLang ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-15 15:58:21 +00:00
|
|
|
options="<?= esc(json_encode($languageOptions)) ?>" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
as="Select"
|
|
|
|
name="category"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.category')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-15 15:58:21 +00:00
|
|
|
options="<?= esc(json_encode($categoryOptions)) ?>" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2024-05-12 18:38:33 +00:00
|
|
|
as="SelectMulti"
|
2024-10-16 10:57:08 +00:00
|
|
|
name="other_categories"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.other_categories')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
data-max-item-count="2"
|
|
|
|
options="<?= esc(json_encode($categoryOptions)) ?>" />
|
|
|
|
|
2024-05-12 18:38:33 +00:00
|
|
|
<x-Forms.RadioGroup
|
|
|
|
label="<?= lang('Podcast.form.parental_advisory.label') ?>"
|
|
|
|
hint="<?= lang('Podcast.form.parental_advisory.hint') ?>"
|
|
|
|
name="parental_advisory"
|
|
|
|
options="<?= esc(json_encode([
|
|
|
|
[
|
|
|
|
'label' => lang('Podcast.form.parental_advisory.undefined'),
|
|
|
|
'value' => 'undefined',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'label' => lang('Podcast.form.parental_advisory.clean'),
|
|
|
|
'value' => 'clean',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'label' => lang('Podcast.form.parental_advisory.explicit'),
|
|
|
|
'value' => 'explicit',
|
|
|
|
],
|
|
|
|
])) ?>"
|
|
|
|
isRequired="true"
|
|
|
|
/>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-09-15 15:58:21 +00:00
|
|
|
title="<?= lang('Podcast.form.author_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.author_section_subtitle') ?>" >
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="owner_name"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.owner_name')) ?>"
|
|
|
|
hint="<?= esc(lang('Podcast.form.owner_name_hint')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="owner_email"
|
|
|
|
type="email"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.owner_email')) ?>"
|
|
|
|
hint="<?= esc(lang('Podcast.form.owner_email_hint')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="publisher"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.publisher')) ?>"
|
|
|
|
hint="<?= esc(lang('Podcast.form.publisher_hint')) ?>" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="copyright"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.copyright')) ?>" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2023-11-29 16:00:28 +00:00
|
|
|
title="<?= lang('Podcast.form.fediverse_section_title') ?>" >
|
|
|
|
|
|
|
|
<div class="flex flex-col">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label for="handle" hint="<?= esc(lang('Podcast.form.handle_hint')) ?>"><?= lang('Podcast.form.handle') ?></x-Forms.Label>
|
2023-11-29 16:00:28 +00:00
|
|
|
<div class="relative">
|
2024-04-26 17:57:25 +00:00
|
|
|
<?= icon('at-line', [
|
|
|
|
'class' => 'absolute inset-0 h-full text-xl opacity-40 left-3',
|
|
|
|
]) ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Input name="handle" class="w-full pl-8" isRequired="true" />
|
2023-11-29 16:00:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2023-11-29 16:00:28 +00:00
|
|
|
name="banner"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.banner')) ?>"
|
|
|
|
helper="<?= esc(lang('Podcast.form.banner_size_hint')) ?>"
|
2023-11-29 16:00:28 +00:00
|
|
|
type="file"
|
|
|
|
accept=".jpg,.jpeg,.png" />
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2023-11-29 16:00:28 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section title="<?= lang('Podcast.form.premium') ?>">
|
2024-12-19 12:33:57 +00:00
|
|
|
<x-Forms.Toggler class="mt-2" name="premium_by_default" hint="<?= esc(lang('Podcast.form.premium_by_default_hint')) ?>">
|
2024-05-09 17:55:41 +00:00
|
|
|
<?= lang('Podcast.form.premium_by_default') ?></x-Forms.Toggler>
|
|
|
|
</x-Forms.Section>
|
2022-09-28 15:02:09 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-09-15 15:58:21 +00:00
|
|
|
title="<?= lang('Podcast.form.location_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.location_section_subtitle') ?>" >
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
name="location_name"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.location_name')) ?>"
|
|
|
|
hint="<?= esc(lang('Podcast.form.location_name_hint')) ?>" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2023-10-12 15:52:20 +00:00
|
|
|
title="<?= lang('Podcast.form.advanced_section_title') ?>" >
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-12-19 12:33:57 +00:00
|
|
|
<x-Forms.Toggler class="mb-2" name="lock" defaultValue="yes" hint="<?= esc(lang('Podcast.form.lock_hint')) ?>">
|
2023-10-12 15:52:20 +00:00
|
|
|
<?= lang('Podcast.form.lock') ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Toggler>
|
2024-12-19 12:33:57 +00:00
|
|
|
<x-Forms.Toggler class="mb-2" name="block" hint="<?= esc(lang('Podcast.form.block_hint')) ?>">
|
2023-10-12 15:52:20 +00:00
|
|
|
<?= lang('Podcast.form.block') ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Toggler>
|
2024-12-19 12:33:57 +00:00
|
|
|
<x-Forms.Toggler name="complete">
|
2023-10-12 15:52:20 +00:00
|
|
|
<?= lang('Podcast.form.complete') ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Toggler>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Podcast.form.submit_create') ?></x-Button>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
</form>
|
2020-06-05 13:54:40 +00:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
<?= $this->endSection() ?>
|