From 12cdcdec96b48284f1a957b6ff11ec98b6744b31 Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 11 May 2025 05:21:26 -0400 Subject: [PATCH] Use a widget to select `when` in the browser --- tubesync/sync/forms.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tubesync/sync/forms.py b/tubesync/sync/forms.py index c0bfd13f..6df609da 100644 --- a/tubesync/sync/forms.py +++ b/tubesync/sync/forms.py @@ -49,6 +49,13 @@ class ScheduleTaskForm(forms.Form): when = forms.DateTimeField( label=_('When the task should run'), required=True, + #widget=forms.SplitDateTimeWidget( + # date_attrs={'type': 'date'}, + # time_attrs={'type': 'time'}, + #), + widget=forms.DateTimeInput( + attrs={'type': 'datetime-local'}, + ), )