Enhance QuestionReviewForm by adding autofocus to comment field and improve status button rendering with active state
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user