= $this->extend('_layout') ?>
= $this->section('title') ?>
= lang('Podcast.import') ?>
= $this->endSection() ?>
= $this->section('pageTitle') ?>
= lang('Podcast.import') ?>
= $this->endSection() ?>
= $this->section('content') ?>
= form_open_multipart(route_to('podcast-import'), [
'method' => 'post',
'class' => 'flex flex-col items-start',
]) ?>
= csrf_field() ?>
= icon('alert', 'mr-2 text-lg flex-shrink-0') .
lang('PodcastImport.warning') ?>
= form_section(
lang('PodcastImport.old_podcast_section_title'),
icon('scales', 'mr-2 text-lg flex-shrink-0') .
lang('PodcastImport.old_podcast_section_subtitle'),
[],
'inline-flex text-xs p-2 text-blue-800 font-semibold bg-blue-100 border border-blue-300 rounded',
) ?>
= form_label(
lang('PodcastImport.imported_feed_url'),
'imported_feed_url',
[],
lang('PodcastImport.imported_feed_url_hint'),
) ?>
= form_input([
'id' => 'imported_feed_url',
'name' => 'imported_feed_url',
'class' => 'form-input',
'value' => old('imported_feed_url'),
'placeholder' => 'https://...',
'type' => 'url',
'required' => 'required',
]) ?>
= form_section_close() ?>
= form_section(lang('PodcastImport.new_podcast_section_title'), '') ?>
= form_label(
lang('Podcast.form.handle'),
'handle',
[],
lang('Podcast.form.handle_hint'),
) ?>
= icon('at', 'absolute text-xl h-full inset-0 text-gray-400 left-3') ?>
= form_input([
'id' => 'handle',
'name' => 'handle',
'class' => 'form-input w-full pl-8',
'value' => old('handle'),
'required' => 'required',
]) ?>
= form_label(lang('Podcast.form.language'), 'language') ?>
= form_dropdown('language', $languageOptions, [old('language', $browserLang)], [
'id' => 'language',
'class' => 'form-select mb-4',
'required' => 'required',
]) ?>
= form_label(lang('Podcast.form.category'), 'category') ?>
= form_dropdown('category', $categoryOptions, [old('category', '')], [
'id' => 'category',
'class' => 'form-select mb-4',
'required' => 'required',
'placeholder' => lang('Podcast.form.category_placeholder')
]) ?>
= form_section_close() ?>
= form_section(
lang('PodcastImport.advanced_params_section_title'),
lang('PodcastImport.advanced_params_section_subtitle'),
) ?>
= form_fieldset('', ['class' => 'flex flex-col mb-4']) ?>
= form_fieldset_close() ?>
= form_fieldset('', ['class' => 'flex flex-col mb-4']) ?>
= form_fieldset_close() ?>
= form_label(
lang('PodcastImport.season_number'),
'season_number',
[],
lang('PodcastImport.season_number_hint'),
) ?>
= form_input([
'id' => 'season_number',
'name' => 'season_number',
'class' => 'form-input mb-4',
'value' => old('season_number'),
'type' => 'number',
]) ?>
= form_label(
lang('PodcastImport.max_episodes'),
'max_episodes',
[],
lang('PodcastImport.max_episodes_hint'),
) ?>
= form_input([
'id' => 'max_episodes',
'name' => 'max_episodes',
'class' => 'form-input mb-4',
'value' => old('max_episodes'),
'type' => 'number',
]) ?>
= form_section_close() ?>
= button(
lang('PodcastImport.submit'),
'',
['variant' => 'primary'],
['type' => 'submit', 'class' => 'self-end'],
) ?>
= form_close() ?>
= $this->endSection() ?>