Add a now input

This commit is contained in:
tcely 2025-05-11 13:46:34 -04:00 committed by GitHub
parent eace2bf45b
commit 8be28b25bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,17 @@ class ResetTasksForm(forms.Form):
class ScheduleTaskForm(forms.Form):
now = forms.DateTimeField(
label=_('The current date and time'),
required=False,
widget=forms.DateTimeInput(
attrs={
'type': 'datetime-local',
'readonly': 'true',
},
),
)
when = forms.DateTimeField(
label=_('When the task should run'),
required=True,