diff --git a/app/Helpers/form_helper.php b/app/Helpers/form_helper.php index 5be15eec..8e193cfb 100644 --- a/app/Helpers/form_helper.php +++ b/app/Helpers/form_helper.php @@ -21,8 +21,14 @@ if (!function_exists('form_section')) { function form_section( string $title = '', string $subtitle = '', - array $attributes = [] + array $attributes = [], + string $customSubtitleClass = '' ): string { + $subtitleClass = 'text-sm text-gray-600'; + if ($customSubtitleClass !== '') { + $subtitleClass = $customSubtitleClass; + } + $section = '

' . + '

' . $subtitle . '

'; diff --git a/app/Language/en/PodcastImport.php b/app/Language/en/PodcastImport.php index 3bb3a912..ddd762b2 100644 --- a/app/Language/en/PodcastImport.php +++ b/app/Language/en/PodcastImport.php @@ -7,19 +7,14 @@ */ return [ - 'legal_dislaimer_title' => 'Legal Disclaimer', - 'legal_dislaimer_content' => - 'Make sure you own the rights for this podcast before importing it.
Copying and broadcasting a podcast without the proper rights is piracy and is liable to prosecution.', - 'warning_title' => 'Warning', - 'warning_content' => - 'This procedure may take a long time.
The current version does not show any progress while it runs. You will not see anything updated until it is done.
In case of timeout error, increase max_execution_time value.', + 'warning' => + 'This procedure may take a long time.
As the current version does not show any progress while it runs, you will not see anything updated until it is done.
In case of timeout error, increase `max_execution_time` value.', 'old_podcast_section_title' => 'The podcast to import', - 'old_podcast_section_subtitle' => '', + 'old_podcast_section_subtitle' => + 'Make sure you own the rights for this podcast before importing it. Copying and broadcasting a podcast without the proper rights is piracy and is liable to prosecution.', 'imported_feed_url' => 'Feed URL', - 'imported_feed_url_hint' => - 'The feed must be in `.xml` format. Make sure you are legally allowed to copy the podcast.', + 'imported_feed_url_hint' => 'The feed must be in `.xml` format.', 'new_podcast_section_title' => 'The new podcast', - 'new_podcast_section_subtitle' => '', 'name' => 'Name', 'name_hint' => 'Used for generating the podcast URL.', 'advanced_params_section_title' => 'Advanced parameters', diff --git a/app/Views/_assets/icons/alert.svg b/app/Views/_assets/icons/alert.svg new file mode 100644 index 00000000..02da88f9 --- /dev/null +++ b/app/Views/_assets/icons/alert.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/Views/_assets/icons/scales.svg b/app/Views/_assets/icons/scales.svg new file mode 100644 index 00000000..2592d2ca --- /dev/null +++ b/app/Views/_assets/icons/scales.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/Views/admin/podcast/import.php b/app/Views/admin/podcast/import.php index 6ec7ac58..4d4f1f13 100644 --- a/app/Views/admin/podcast/import.php +++ b/app/Views/admin/podcast/import.php @@ -16,9 +16,13 @@ ]) ?> + - + + +