From 5c909cfbfdb9e107dfcaaaff86c6e4efa2bcc5b7 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Tue, 2 Apr 2024 15:30:27 -0700 Subject: [PATCH] Added retention period to form --- .../controllers/sources/source_html/source_form.html.heex | 8 ++++++++ 1 file changed, 8 insertions(+) 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 f430cf2..cd16370 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 @@ -88,6 +88,14 @@ help="Only download media uploaded after this date. Leave blank to download all media. Must be in YYYY-MM-DD format" /> + <.input + field={f[:retention_period_days]} + type="number" + label="Retention Period (days)" + min="0" + help="Days between when media is *downloaded* and when it's deleted. Set to 0 or delete to keep media indefinitely" + /> +

Advanced Options