2021-09-08 15:51:33 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2021-08-27 10:58:22 +00:00
|
|
|
?>
|
|
|
|
|
2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-06-05 13:54:40 +00:00
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Podcast.create') ?>
|
|
|
|
<?= $this->endSection() ?>
|
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() ?>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Podcast.form.identity_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.identity_section_subtitle') ?>" >
|
|
|
|
|
|
|
|
<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"
|
|
|
|
required="true"
|
|
|
|
accept=".jpg,.jpeg,.png" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="title"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.title')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="MarkdownEditor"
|
|
|
|
name="description"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.description')) ?>"
|
2022-02-02 17:01:19 +00:00
|
|
|
required="true"
|
|
|
|
disallowList="header,quote" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
<fieldset>
|
2021-12-31 10:21:57 +00:00
|
|
|
<legend><?= lang('Podcast.form.type.label') ?></legend>
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="flex gap-2">
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="episodic"
|
|
|
|
name="type"
|
2024-01-24 16:48:23 +00:00
|
|
|
hint="<?= esc(lang('Podcast.form.type.episodic_hint')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
isChecked="true'" ><?= lang('Podcast.form.type.episodic') ?></Forms.RadioButton>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="serial"
|
|
|
|
name="type"
|
2024-01-24 16:48:23 +00:00
|
|
|
hint="<?= esc(lang('Podcast.form.type.serial_hint')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
isChecked="false" ><?= lang('Podcast.form.type.serial') ?></Forms.RadioButton>
|
2021-03-30 16:21:00 +00:00
|
|
|
</div>
|
2021-09-15 15:58:21 +00:00
|
|
|
</fieldset>
|
2024-02-05 16:51:04 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend><?= lang('Podcast.form.medium.label') ?></legend>
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="podcast"
|
|
|
|
name="medium"
|
|
|
|
hint="<?= esc(lang('Podcast.form.medium.podcast_hint')) ?>"
|
|
|
|
isChecked="true" ><?= lang('Podcast.form.medium.podcast') ?></Forms.RadioButton>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="music"
|
|
|
|
name="medium"
|
|
|
|
hint="<?= esc(lang('Podcast.form.medium.music_hint')) ?>"
|
|
|
|
isChecked="false" ><?= lang('Podcast.form.medium.music') ?></Forms.RadioButton>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="audiobook"
|
|
|
|
name="medium"
|
|
|
|
hint="<?= esc(lang('Podcast.form.medium.audiobook_hint')) ?>"
|
|
|
|
isChecked="false" ><?= lang('Podcast.form.medium.audiobook') ?></Forms.RadioButton>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2023-10-12 15:52:20 +00:00
|
|
|
</Forms.Section>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Podcast.form.classification_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.classification_section_subtitle') ?>" >
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="Select"
|
|
|
|
name="language"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.language')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
selected="<?= $browserLang ?>"
|
|
|
|
required="true"
|
|
|
|
options="<?= esc(json_encode($languageOptions)) ?>" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="Select"
|
|
|
|
name="category"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.category')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
required="true"
|
|
|
|
options="<?= esc(json_encode($categoryOptions)) ?>" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="MultiSelect"
|
|
|
|
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)) ?>" />
|
|
|
|
|
|
|
|
<fieldset class="mb-4">
|
|
|
|
<legend><?= lang('Podcast.form.parental_advisory.label') .
|
|
|
|
hint_tooltip(lang('Podcast.form.parental_advisory.hint'), 'ml-1') ?></legend>
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="undefined"
|
|
|
|
name="parental_advisory"
|
|
|
|
isChecked="true" ><?= lang('Podcast.form.parental_advisory.undefined') ?></Forms.RadioButton>
|
|
|
|
<Forms.RadioButton
|
|
|
|
value="clean"
|
|
|
|
name="parental_advisory"
|
2023-02-22 16:29:45 +00:00
|
|
|
isChecked="false" ><?= lang('Podcast.form.parental_advisory.clean') ?></Forms.RadioButton>
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.RadioButton
|
|
|
|
value="explicit"
|
|
|
|
name="parental_advisory"
|
2023-02-22 16:29:45 +00:00
|
|
|
isChecked="false" ><?= lang('Podcast.form.parental_advisory.explicit') ?></Forms.RadioButton>
|
2021-09-15 15:58:21 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</Forms.Section>
|
|
|
|
|
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Podcast.form.author_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.author_section_subtitle') ?>" >
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
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')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
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')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
required="true" />
|
|
|
|
|
2024-04-28 10:19:35 +00:00
|
|
|
<Forms.Toggler class="mt-2" name="is_owner_email_removed_from_feed" value="yes" checked="true" hint="<?= esc(lang('Podcast.form.is_owner_email_removed_from_feed_hint')) ?>">
|
2024-01-01 10:11:29 +00:00
|
|
|
<?= lang('Podcast.form.is_owner_email_removed_from_feed') ?></Forms.Toggler>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.Field
|
|
|
|
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
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="copyright"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.copyright')) ?>" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
</Forms.Section>
|
|
|
|
|
2023-11-29 16:00:28 +00:00
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Podcast.form.fediverse_section_title') ?>" >
|
|
|
|
|
|
|
|
<div class="flex flex-col">
|
2024-01-24 16:48:23 +00:00
|
|
|
<Forms.Label for="handle" hint="<?= esc(lang('Podcast.form.handle_hint')) ?>"><?= lang('Podcast.form.handle') ?></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',
|
|
|
|
]) ?>
|
2023-11-29 16:00:28 +00:00
|
|
|
<Forms.Input name="handle" class="w-full pl-8" required="true" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
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" />
|
|
|
|
</Forms.Section>
|
|
|
|
|
2022-09-28 15:02:09 +00:00
|
|
|
<Forms.Section title="<?= lang('Podcast.form.premium') ?>">
|
2024-01-24 16:48:23 +00:00
|
|
|
<Forms.Toggler class="mt-2" name="premium_by_default" value="yes" checked="false" hint="<?= esc(lang('Podcast.form.premium_by_default_hint')) ?>">
|
2022-09-28 15:02:09 +00:00
|
|
|
<?= lang('Podcast.form.premium_by_default') ?></Forms.Toggler>
|
|
|
|
</Forms.Section>
|
|
|
|
|
2022-12-09 15:04:42 +00:00
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Podcast.form.op3') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.op3_hint') ?>">
|
|
|
|
|
2024-04-26 17:57:25 +00:00
|
|
|
<a href="https://op3.dev" target="_blank" rel="noopener noreferrer" class="inline-flex self-start text-xs font-semibold underline gap-x-1 text-skin-muted hover:no-underline focus:ring-accent"><?= icon('link', [
|
|
|
|
'class' => 'text-sm',
|
|
|
|
]) ?>op3.dev</a>
|
2024-01-24 16:48:23 +00:00
|
|
|
<Forms.Toggler name="enable_op3" value="yes" checked="false" hint="<?= esc(lang('Podcast.form.op3_enable_hint')) ?>"><?= lang('Podcast.form.op3_enable') ?></Forms.Toggler>
|
2022-12-09 15:04:42 +00:00
|
|
|
</Forms.Section>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Podcast.form.location_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.location_section_subtitle') ?>" >
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
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
|
|
|
|
|
|
|
</Forms.Section>
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="XMLEditor"
|
|
|
|
name="custom_rss"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.custom_rss')) ?>"
|
2024-04-24 10:03:20 +00:00
|
|
|
hint="<?= esc(lang('Podcast.form.custom_rss_hint')) ?>"
|
|
|
|
rows="8" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
as="Textarea"
|
|
|
|
name="verify_txt"
|
|
|
|
label="<?= esc(lang('Podcast.form.verify_txt')) ?>"
|
|
|
|
hint="<?= esc(lang('Podcast.form.verify_txt_hint')) ?>"
|
|
|
|
helper="<?= esc(lang('Podcast.form.verify_txt_helper')) ?>"
|
|
|
|
rows="5" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-01-24 16:48:23 +00:00
|
|
|
<Forms.Toggler class="mb-2" name="lock" value="yes" checked="true" hint="<?= esc(lang('Podcast.form.lock_hint')) ?>">
|
2023-10-12 15:52:20 +00:00
|
|
|
<?= lang('Podcast.form.lock') ?>
|
|
|
|
</Forms.Toggler>
|
2024-01-24 16:48:23 +00:00
|
|
|
<Forms.Toggler class="mb-2" name="block" value="yes" checked="false" hint="<?= esc(lang('Podcast.form.block_hint')) ?>">
|
2023-10-12 15:52:20 +00:00
|
|
|
<?= lang('Podcast.form.block') ?>
|
|
|
|
</Forms.Toggler>
|
|
|
|
<Forms.Toggler name="complete" value="yes" checked="false">
|
|
|
|
<?= lang('Podcast.form.complete') ?>
|
|
|
|
</Forms.Toggler>
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
</Forms.Section>
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Podcast.form.submit_create') ?></Button>
|
|
|
|
|
|
|
|
</form>
|
2020-06-05 13:54:40 +00:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
<?= $this->endSection() ?>
|