diff --git a/rocky/reports/forms.py b/rocky/reports/forms.py index 9388d4fe4f4..58ec6a06956 100644 --- a/rocky/reports/forms.py +++ b/rocky/reports/forms.py @@ -40,10 +40,11 @@ class ReportScheduleStartDateChoiceForm(BaseRockyForm): class ReportScheduleStartDateForm(BaseRockyForm): start_date = forms.DateField( - label="", - widget=DateInput(format="%Y-%m-%d"), + label=_("Start date"), + widget=DateInput(format="%Y-%m-%d", attrs={"form": "generate_report"}), initial=lambda: datetime.now(tz=timezone.utc).date(), required=True, + input_formats=["%Y-%m-%d"], ) @@ -59,8 +60,8 @@ class ReportRecurrenceChoiceForm(BaseRockyForm): class ReportScheduleRecurrenceForm(BaseRockyForm): recurrence = forms.ChoiceField( - label="", - required=False, + label=_("Recurrence"), + required=True, widget=forms.Select(attrs={"form": "generate_report"}), choices=[("daily", _("Daily")), ("weekly", _("Weekly")), ("monthly", _("Monthly")), ("yearly", _("Yearly"))], ) diff --git a/rocky/reports/templates/partials/export_report_settings.html b/rocky/reports/templates/partials/export_report_settings.html index e012a3dc819..09e5384b0ae 100644 --- a/rocky/reports/templates/partials/export_report_settings.html +++ b/rocky/reports/templates/partials/export_report_settings.html @@ -15,33 +15,42 @@