From 6b5bebdf781e067e97683507639343d35e6ade45 Mon Sep 17 00:00:00 2001
From: Mouse Reeve
Date: Sat, 26 Feb 2022 10:44:50 -0800
Subject: [PATCH] Cleans up scheduler form
---
bookwyrm/forms.py | 5 ++++
.../templates/settings/automod/rules.html | 28 +++++++++++++++++--
2 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py
index 00e6d5d8..561a86d0 100644
--- a/bookwyrm/forms.py
+++ b/bookwyrm/forms.py
@@ -563,3 +563,8 @@ class IntervalScheduleForm(CustomForm):
class Meta:
model = IntervalSchedule
fields = ["every", "period"]
+
+ widgets = {
+ "every": forms.NumberInput(attrs={"aria-describedby": "desc_every"}),
+ "period": forms.Select(attrs={"aria-describedby": "desc_period"}),
+ }
diff --git a/bookwyrm/templates/settings/automod/rules.html b/bookwyrm/templates/settings/automod/rules.html
index 0a1b1c3f..ef0a49be 100644
--- a/bookwyrm/templates/settings/automod/rules.html
+++ b/bookwyrm/templates/settings/automod/rules.html
@@ -18,8 +18,10 @@
{% trans "Auto-moderation rules will create reports for any local user or status with fields matching the provided string." %}
{% trans "Users or statuses that have already been reported (regardless of whether the report was resolved) will not be flagged." %}