From a7351735764f303ce76a00286a78add9d64a4919 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Wed, 14 Aug 2024 14:12:53 -0700 Subject: [PATCH] Moved min/max filters up in source form --- .../sources/source_html/source_form.html.heex | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex b/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex index a530fe6..50055f1 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex @@ -93,6 +93,24 @@ help="Uses your YouTube cookies for this source (if configured). Used for downloading private playlists and videos. See docs for important details" /> +
+ <.input + field={f[:min_duration_seconds]} + type="number" + label="Minimum Duration (seconds)" + min="0" + help="Minimum duration of the media to be downloaded. Can be blank" + /> + + <.input + field={f[:max_duration_seconds]} + type="number" + label="Maximum Duration (seconds)" + min="0" + help="Maximum duration of the media to be downloaded. Can be blank" + /> +
+ <.input field={f[:download_cutoff_date]} type="text" @@ -121,22 +139,6 @@ Tread carefully

- <.input - field={f[:min_duration_seconds]} - type="number" - label="Minimum Duration (seconds)" - min="0" - help="Minimum duration of the media to be downloaded. Can be blank" - /> - - <.input - field={f[:max_duration_seconds]} - type="number" - label="Maximum Duration (seconds)" - min="0" - help="Maximum duration of the media to be downloaded. Can be blank" - /> - <.input field={f[:title_filter_regex]} type="text"