= $this->extend('admin/_layout') ?>
= $this->section('title') ?>
= lang('Episode.publish') ?>
= $this->endSection() ?>
= $this->section('pageTitle') ?>
= lang('Episode.publish') ?>
= $this->endSection() ?>
= $this->section('content') ?>
= form_open(route_to('episode-publish_edit', $podcast->id, $episode->id), [
'method' => 'post',
'class' => 'flex flex-col max-w-xl items-start',
]) ?>
= csrf_field() ?>
= form_hidden('client_timezone', 'UTC') ?>
= form_hidden('note_id', $note->id) ?>
= $podcast->actor
->display_name ?>
@= $podcast
->actor->username ?>
= form_textarea(
[
'id' => 'message',
'name' => 'message',
'class' => 'form-textarea',
'required' => 'required',
'placeholder' => 'Write your message...',
],
old('message', $note->message, false),
['rows' => 2],
) ?>
= form_fieldset('', ['class' => 'flex flex-col mb-4']) ?>
= form_radio(
[
'id' => 'schedule',
'name' => 'publication_method',
'class' => 'text-pine-700',
],
'schedule',
old('publication_method')
? old('publication_method') === 'schedule'
: true,
) ?>
= form_label(
lang('Episode.publish_form.scheduled_publication_date'),
'scheduled_publication_date',
[],
lang('Episode.publish_form.scheduled_publication_date_hint'),
) ?>
= form_input([
'id' => 'scheduled_publication_date',
'name' => 'scheduled_publication_date',
'class' => 'form-input rounded-r-none flex-1',
'value' => old(
'scheduled_publication_date',
$episode->published_at,
),
'data-input' => '',
]) ?>
= form_fieldset_close() ?>
= anchor(
route_to('episode-view', $podcast->id, $episode->id),
lang('Common.cancel'),
['class' => 'font-semibold mr-4'],
) ?>
= button(
lang('Episode.publish_form.submit_edit'),
null,
['variant' => 'primary'],
['type' => 'submit'],
) ?>
= form_close() ?>
= $this->endSection() ?>