Enhance QuestionReviewForm by adding autofocus to comment field and improve status button rendering with active state

This commit is contained in:
Ross
2025-10-25 17:28:50 +01:00
parent d19e937bd4
commit e687b55e6a
3 changed files with 48 additions and 51 deletions
+1 -1
View File
@@ -842,7 +842,7 @@ class QuestionReviewForm(ModelForm):
widgets = {
# Use Bootstrap "btn-check" inputs so we can style labels as button toggles
"status": RadioSelect(attrs={"class": "btn-check", "autocomplete": "off"}),
"comment": Textarea(attrs={"class": "form-control form-control-sm", "placeholder": "Comment (optional)", "rows": 2}),
"comment": Textarea(attrs={"class": "form-control form-control-sm", "placeholder": "Comment (optional)", "rows": 2, "autofocus": "autofocus"}),
}
def __init__(self, *args, **kwargs):