Skip to content

Commit

Permalink
Fix bugs with support form (#11222)
Browse files Browse the repository at this point in the history
* Fix bugs with support form

- Attachment is required
- url field label is "Url" instead of "URL"

* Fix incorrectly named body field for Front
  • Loading branch information
agjohnson committed Mar 18, 2024
1 parent 319ef26 commit f2bac04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readthedocs/core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,20 @@ def valid_value(self, value):
class SupportForm(forms.Form):
name = forms.CharField()
email = forms.EmailField()
explanation = forms.CharField(
body = forms.CharField(
label=_("Explanation of the issue"),
help_text=_("Please provide as much detail as possible."),
widget=forms.Textarea,
)
url = forms.URLField(
label=_("URL"),
help_text=_("Is there a specific page this happened?"),
required=False,
)
attachment = forms.FileField(
label=_("Screenshot or additional file"),
help_text=_("Anything else that would help us solve this issue?"),
required=False,
)
severity_level = forms.ChoiceField(
choices=(
Expand Down

0 comments on commit f2bac04

Please sign in to comment.