2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-06-30 18:17:41 +02:00
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Episode.edit') ?>
|
|
|
|
<?= $this->endSection() ?>
|
2020-06-30 18:17:41 +02:00
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Episode.edit') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<?= $this->section('headerRight') ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" form="episode-edit-form"><?= lang('Episode.form.submit_edit') ?></x-Button>
|
2021-09-15 15:58:21 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-06-30 18:17:41 +02:00
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('content') ?>
|
2020-06-30 18:17:41 +02:00
|
|
|
|
2022-01-23 16:53:23 +00:00
|
|
|
<form id="episode-edit-form" action="<?= route_to('episode-edit', $podcast->id, $episode->id) ?>" method="POST" enctype="multipart/form-data" class="flex flex-col w-full max-w-xl mt-6 gap-y-8">
|
2020-06-30 18:17:41 +02:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section title="<?= lang('Episode.form.info_section_title') ?>" >
|
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="audio_file"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Episode.form.audio_file')) ?>"
|
|
|
|
hint="<?= esc(lang('Episode.form.audio_file_hint')) ?>"
|
|
|
|
helper="<?= esc(lang('Common.size_limit', [formatBytes(file_upload_max_size(), true)])) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
type="file"
|
2022-01-09 16:37:13 +00:00
|
|
|
accept=".mp3,.m4a"
|
|
|
|
data-max-size="<?= file_upload_max_size() ?>"
|
2022-07-06 15:29:15 +00:00
|
|
|
data-max-size-error="<?= lang('Episode.form.file_size_error', [formatBytes(file_upload_max_size(), true)]) ?>" />
|
2021-09-15 15:58:21 +00:00
|
|
|
|
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('Episode.form.cover')) ?>"
|
|
|
|
hint="<?= esc(lang('Episode.form.cover_hint')) ?>"
|
|
|
|
helper="<?= esc(lang('Episode.form.cover_size_hint')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
type="file"
|
|
|
|
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('Episode.form.title')) ?>"
|
|
|
|
hint="<?= esc(lang('Episode.form.title_hint')) ?>"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc($episode->title) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-15 15:58:21 +00:00
|
|
|
data-slugify="title" />
|
|
|
|
|
|
|
|
<div>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label for="slug"><?= lang('Episode.form.permalink') ?></x-Forms.Label>
|
2022-10-19 14:46:54 +00:00
|
|
|
<permalink-edit class="inline-flex items-center w-full text-xs" edit-label="<?= lang('Common.edit') ?>" copy-label="<?= lang('Common.copy') ?>" copied-label="<?= lang('Common.copied') ?>" permalink-base="<?= url_to('podcast-episodes', esc($podcast->handle)) ?>">
|
|
|
|
<span slot="domain"><?= '…/' . esc($podcast->handle) . '/' ?></span>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Input name="slug" value="<?= esc($episode->slug) ?>" isRequired="true" data-slugify="slug" slot="slug-input" class="flex-1 text-xs" />
|
2021-09-15 15:58:21 +00:00
|
|
|
</permalink-edit>
|
2021-04-08 10:45:58 +00:00
|
|
|
</div>
|
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="flex flex-col gap-x-2 gap-y-4 md:flex-row">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2022-01-23 16:53:23 +00:00
|
|
|
class="flex-1 w-full"
|
2021-09-15 15:58:21 +00:00
|
|
|
name="season_number"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Episode.form.season_number')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
type="number"
|
|
|
|
value="<?= $episode->season_number ?>"
|
|
|
|
/>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2022-01-23 16:53:23 +00:00
|
|
|
class="flex-1 w-full"
|
2021-09-15 15:58:21 +00:00
|
|
|
name="episode_number"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Episode.form.episode_number')) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
type="number"
|
|
|
|
value="<?= $episode->number ?>"
|
2022-01-05 16:01:44 +00:00
|
|
|
required="<?= $podcast->type === 'serial' ? 'true' : 'false' ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
/>
|
2020-10-02 15:38:16 +00:00
|
|
|
</div>
|
|
|
|
|
2024-05-12 18:38:33 +00:00
|
|
|
<x-Forms.RadioGroup
|
|
|
|
label="<?= lang('Episode.form.type.label') ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
name="type"
|
2024-05-12 18:38:33 +00:00
|
|
|
value="<?= $episode->type ?>"
|
|
|
|
options="<?= esc(json_encode([
|
|
|
|
[
|
|
|
|
'label' => lang('Episode.form.type.full'),
|
|
|
|
'value' => 'full',
|
|
|
|
'hint' => lang('Episode.form.type.full_hint'),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'label' => lang('Episode.form.type.trailer'),
|
|
|
|
'value' => 'trailer',
|
|
|
|
'hint' => lang('Episode.form.type.trailer_hint'),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'label' => lang('Episode.form.type.bonus'),
|
|
|
|
'value' => 'bonus',
|
|
|
|
'hint' => lang('Episode.form.type.bonus_hint'),
|
|
|
|
],
|
|
|
|
])) ?>"
|
|
|
|
isRequired="true"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<x-Forms.RadioGroup
|
|
|
|
label="<?= lang('Episode.form.parental_advisory.label') ?>"
|
|
|
|
hint="<?= lang('Episode.form.parental_advisory.hint') ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
name="parental_advisory"
|
2024-05-12 18:38:33 +00:00
|
|
|
value="<?= $episode->parental_advisory ?>"
|
|
|
|
options="<?= esc(json_encode([
|
|
|
|
[
|
|
|
|
'label' => lang('Episode.form.parental_advisory.undefined'),
|
|
|
|
'value' => 'undefined',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'label' => lang('Episode.form.parental_advisory.clean'),
|
|
|
|
'value' => 'clean',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'label' => lang('Episode.form.parental_advisory.explicit'),
|
|
|
|
'value' => 'explicit',
|
|
|
|
],
|
|
|
|
])) ?>"
|
|
|
|
isRequired="true"
|
|
|
|
/>
|
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
|
2021-09-15 15:58:21 +00:00
|
|
|
title="<?= lang('Episode.form.show_notes_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Episode.form.show_notes_section_subtitle') ?>">
|
|
|
|
|
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('Episode.form.description')) ?>"
|
2022-03-25 14:37:14 +00:00
|
|
|
value="<?= esc($episode->description_markdown) ?>"
|
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-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
as="MarkdownEditor"
|
|
|
|
name="description_footer"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Episode.form.description_footer')) ?>"
|
|
|
|
hint="<?= esc(lang('Episode.form.description_footer_hint')) ?>"
|
2022-03-25 14:37:14 +00:00
|
|
|
value="<?= esc($podcast->episode_description_footer_markdown) ?? '' ?>"
|
2022-02-02 17:01:19 +00:00
|
|
|
disallowList="header,quote" />
|
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 title="<?= lang('Episode.form.premium_title') ?>" >
|
|
|
|
<x-Forms.Toggler class="mt-2" name="premium" isChecked="<?= $episode->is_premium ? 'true' : 'false' ?>">
|
|
|
|
<?= lang('Episode.form.premium') ?></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('Episode.form.location_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Episode.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('Episode.form.location_name')) ?>"
|
|
|
|
hint="<?= esc(lang('Episode.form.location_name_hint')) ?>"
|
2022-03-04 14:33:48 +00:00
|
|
|
value="<?= esc($episode->location_name) ?>" />
|
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('Episode.form.additional_files_section_title') ?>">
|
|
|
|
|
|
|
|
<fieldset class="flex flex-col">
|
2021-08-19 14:00:14 +00:00
|
|
|
<legend><?= lang('Episode.form.transcript') .
|
|
|
|
'<small class="ml-1 lowercase">(' .
|
|
|
|
lang('Common.optional') .
|
2024-05-09 17:55:41 +00:00
|
|
|
')</small>' ?><x-Hint class="ml-1"><?= lang('Episode.form.transcript_hint') ?></x-Hint></legend>
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="form-input-tabs">
|
2021-12-17 17:14:37 +00:00
|
|
|
<input type="radio" name="transcript-choice" id="transcript-file-upload-choice" aria-controls="transcript-file-upload-choice" value="upload-file" <?= $episode->transcript_remote_url ? '' : 'checked' ?> />
|
2021-09-15 15:58:21 +00:00
|
|
|
<label for="transcript-file-upload-choice"><?= lang('Common.forms.upload_file') ?></label>
|
|
|
|
|
2021-12-17 17:14:37 +00:00
|
|
|
<input type="radio" name="transcript-choice" id="transcript-file-remote-url-choice" aria-controls="transcript-file-remote-url-choice" value="remote-url" <?= $episode->transcript_remote_url ? 'checked' : '' ?> />
|
2021-09-15 15:58:21 +00:00
|
|
|
<label for="transcript-file-remote-url-choice"><?= lang('Common.forms.remote_url') ?></label>
|
2021-08-19 14:00:14 +00:00
|
|
|
|
|
|
|
<div class="py-2 tab-panels">
|
|
|
|
<section id="transcript-file-upload" class="flex items-center tab-panel">
|
2021-12-20 17:12:12 +00:00
|
|
|
<?php if ($episode->transcript) : ?>
|
2021-12-24 17:55:56 +00:00
|
|
|
<div class="flex items-center mb-1 gap-x-2">
|
2021-05-03 17:39:58 +00:00
|
|
|
<?= anchor(
|
2023-02-22 16:29:45 +00:00
|
|
|
$episode->transcript->file_url,
|
2024-04-26 17:57:25 +00:00
|
|
|
icon('file-download-fill', [
|
|
|
|
'class' => 'mr-1 text-skin-muted text-xl',
|
|
|
|
]) . lang('Episode.form.transcript_download'),
|
2023-02-22 16:29:45 +00:00
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'class' => 'flex-1 font-semibold hover:underline inline-flex items-center text-xs',
|
2023-02-22 16:29:45 +00:00
|
|
|
'download' => '',
|
|
|
|
],
|
|
|
|
) .
|
2021-05-03 17:39:58 +00:00
|
|
|
anchor(
|
|
|
|
route_to(
|
|
|
|
'transcript-delete',
|
|
|
|
$podcast->id,
|
|
|
|
$episode->id,
|
|
|
|
),
|
2024-04-26 17:57:25 +00:00
|
|
|
icon('delete-bin-fill', [
|
|
|
|
'class' => 'mx-auto',
|
|
|
|
]),
|
2021-05-03 17:39:58 +00:00
|
|
|
[
|
2024-05-09 17:55:41 +00:00
|
|
|
'class' => 'p-1 text-sm bg-red-100 rounded-full text-red-700 hover:text-red-900',
|
2021-11-05 14:36:34 +00:00
|
|
|
'data-tooltip' => 'bottom',
|
2023-06-12 14:47:38 +00:00
|
|
|
'title' => lang(
|
2021-05-03 17:39:58 +00:00
|
|
|
'Episode.form.transcript_file_delete',
|
|
|
|
),
|
|
|
|
],
|
|
|
|
) ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label class="sr-only" for="transcript_file" isOptional="true"><?= lang('Episode.form.transcript_file') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input class="w-full" name="transcript_file" type="file" accept=".srt,.vtt" />
|
2021-08-19 14:00:14 +00:00
|
|
|
</section>
|
|
|
|
<section id="transcript-file-remote-url" class="tab-panel">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label class="sr-only" for="transcript_remote_url" isOptional="true"><?= lang('Episode.form.transcript_remote_url') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input class="w-full" placeholder="https://…" name="transcript_remote_url" value="<?= esc($episode->transcript_remote_url) ?>" />
|
2021-08-19 14:00:14 +00:00
|
|
|
</section>
|
2020-11-24 20:18:08 +00:00
|
|
|
</div>
|
2021-08-19 14:00:14 +00:00
|
|
|
</div>
|
2021-09-15 15:58:21 +00:00
|
|
|
</fieldset>
|
2021-05-03 17:39:58 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
|
|
|
|
<fieldset class="flex flex-col">
|
2021-08-19 14:00:14 +00:00
|
|
|
<legend><?= lang('Episode.form.chapters') .
|
|
|
|
'<small class="ml-1 lowercase">(' .
|
|
|
|
lang('Common.optional') .
|
2024-05-09 17:55:41 +00:00
|
|
|
')</small>' ?><x-Hint class="ml-1"><?= lang('Episode.form.chapters_hint') ?></x-Hint></legend>
|
2021-09-15 15:58:21 +00:00
|
|
|
<div class="form-input-tabs">
|
2021-12-17 17:14:37 +00:00
|
|
|
<input type="radio" name="chapters-choice" id="chapters-file-upload-choice" aria-controls="chapters-file-upload-choice" value="upload-file" <?= $episode->chapters_remote_url ? '' : 'checked' ?> />
|
2021-09-15 15:58:21 +00:00
|
|
|
<label for="chapters-file-upload-choice"><?= lang('Common.forms.upload_file') ?></label>
|
|
|
|
|
2021-12-17 17:14:37 +00:00
|
|
|
<input type="radio" name="chapters-choice" id="chapters-file-remote-url-choice" aria-controls="chapters-file-remote-url-choice" value="remote-url" <?= $episode->chapters_remote_url ? 'checked' : '' ?> />
|
2021-09-15 15:58:21 +00:00
|
|
|
<label for="chapters-file-remote-url-choice"><?= lang('Common.forms.remote_url') ?></label>
|
2021-08-19 14:00:14 +00:00
|
|
|
|
|
|
|
<div class="py-2 tab-panels">
|
|
|
|
<section id="chapters-file-upload" class="flex items-center tab-panel">
|
2021-12-20 17:12:12 +00:00
|
|
|
<?php if ($episode->chapters) : ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<div class="flex mb-1 gap-x-2">
|
2021-05-03 17:39:58 +00:00
|
|
|
<?= anchor(
|
2023-02-22 16:29:45 +00:00
|
|
|
$episode->chapters->file_url,
|
2024-04-26 17:57:25 +00:00
|
|
|
icon('file-download-fill', [
|
|
|
|
'class' => 'mr-1 text-skin-muted text-xl',
|
|
|
|
]) . lang('Episode.form.chapters_download'),
|
2023-02-22 16:29:45 +00:00
|
|
|
[
|
2023-06-12 14:47:38 +00:00
|
|
|
'class' => 'flex-1 font-semibold hover:underline inline-flex items-center text-xs',
|
2023-02-22 16:29:45 +00:00
|
|
|
'download' => '',
|
|
|
|
],
|
|
|
|
) .
|
2021-12-20 17:12:12 +00:00
|
|
|
anchor(
|
|
|
|
route_to(
|
|
|
|
'chapters-delete',
|
|
|
|
$podcast->id,
|
|
|
|
$episode->id,
|
|
|
|
),
|
2024-04-26 17:57:25 +00:00
|
|
|
icon('delete-bin-fill', [
|
|
|
|
'class' => 'mx-auto',
|
|
|
|
]),
|
2021-12-20 17:12:12 +00:00
|
|
|
[
|
2024-05-09 17:55:41 +00:00
|
|
|
'class' => 'text-sm p-1 bg-red-100 rounded-full text-red-700 hover:text-red-900',
|
2021-12-20 17:12:12 +00:00
|
|
|
'data-tooltip' => 'bottom',
|
2023-06-12 14:47:38 +00:00
|
|
|
'title' => lang(
|
2021-12-20 17:12:12 +00:00
|
|
|
'Episode.form.chapters_file_delete',
|
2021-05-03 17:39:58 +00:00
|
|
|
),
|
2021-12-20 17:12:12 +00:00
|
|
|
],
|
|
|
|
) ?>
|
2021-05-03 17:39:58 +00:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label class="sr-only" for="chapters_file" isOptional="true"><?= lang('Episode.form.chapters_file') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input class="w-full" name="chapters_file" type="file" accept=".json" />
|
2021-08-19 14:00:14 +00:00
|
|
|
</section>
|
|
|
|
<section id="chapters-file-remote-url" class="tab-panel">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label class="sr-only" for="chapters_remote_url" isOptional="true"><?= lang('Episode.form.chapters_remote_url') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input class="w-full" placeholder="https://…" name="chapters_remote_url" value="<?= esc($episode->chapters_remote_url) ?>" />
|
2021-08-19 14:00:14 +00:00
|
|
|
</section>
|
2020-11-24 20:18:08 +00:00
|
|
|
</div>
|
2021-08-19 14:00:14 +00:00
|
|
|
</div>
|
2021-09-15 15:58:21 +00:00
|
|
|
</fieldset>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2021-05-03 17:39:58 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2021-09-15 15:58:21 +00:00
|
|
|
title="<?= lang('Episode.form.advanced_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Episode.form.advanced_section_subtitle') ?>"
|
|
|
|
>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-15 15:58:21 +00:00
|
|
|
as="XMLEditor"
|
|
|
|
name="custom_rss"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Episode.form.custom_rss')) ?>"
|
|
|
|
hint="<?= esc(lang('Episode.form.custom_rss_hint')) ?>"
|
2022-01-23 16:53:23 +00:00
|
|
|
content="<?= esc($episode->custom_rss_string) ?>"
|
2021-09-15 15:58:21 +00:00
|
|
|
/>
|
2020-10-02 15:38:16 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Toggler id="block" name="block" isChecked="<?= $episode->is_blocked ? 'true' : 'false' ?>" hint="<?= esc(lang('Episode.form.block_hint')) ?>"><?= lang('Episode.form.block') ?></x-Forms.Toggler>
|
2021-03-19 16:12:36 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2023-11-16 16:24:29 +00:00
|
|
|
|
2021-09-15 15:58:21 +00:00
|
|
|
</form>
|
2020-06-30 18:17:41 +02:00
|
|
|
|
2022-05-05 15:48:16 +00:00
|
|
|
<?php if ($episode->published_at === null): ?>
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('delete-bin-fill')?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button class="mt-8" variant="danger" uri="<?= route_to('episode-delete', $podcast->id, $episode->id) ?>" iconLeft="delete-bin-fill"><?= lang('Episode.delete') ?></x-Button>
|
2022-05-05 15:48:16 +00:00
|
|
|
<?php else: ?>
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('forbid-fill')?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button class="mt-8" variant="disabled" iconLeft="forbid-fill" data-tooltip="right" title="<?= lang('Episode.messages.unpublishBeforeDeleteTip') ?>"><?= lang('Episode.delete') ?></x-Button>
|
2022-05-05 15:48:16 +00:00
|
|
|
<?php endif ?>
|
2020-06-30 18:17:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|