mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 11:00:36 +00:00
Update forms.py
This commit is contained in:
parent
403e282d88
commit
85c688b147
1 changed files with 12 additions and 22 deletions
|
@ -150,19 +150,13 @@ class EditUserForm(CustomForm):
|
|||
help_texts = {f: None for f in fields}
|
||||
widgets = {
|
||||
"avatar": ClearableFileInputWithWarning(
|
||||
attrs={'aria-describedby': "desc_avatar"}
|
||||
),
|
||||
"name": forms.TextInput(
|
||||
attrs={'aria-describedby': "desc_name"}
|
||||
),
|
||||
"summary": forms.Textarea(
|
||||
attrs={'aria-describedby': "desc_summary"}
|
||||
),
|
||||
"email": forms.EmailInput(
|
||||
attrs={'aria-describedby': "desc_email"}
|
||||
attrs={"aria-describedby": "desc_avatar"}
|
||||
),
|
||||
"name": forms.TextInput(attrs={"aria-describedby": "desc_name"}),
|
||||
"summary": forms.Textarea(attrs={"aria-describedby": "desc_summary"}),
|
||||
"email": forms.EmailInput(attrs={"aria-describedby": "desc_email"}),
|
||||
"discoverable": forms.CheckboxInput(
|
||||
attrs={'aria-describedby': "desc_discoverable"}
|
||||
attrs={"aria-describedby": "desc_discoverable"}
|
||||
),
|
||||
}
|
||||
|
||||
|
@ -180,16 +174,12 @@ class LimitedEditUserForm(CustomForm):
|
|||
help_texts = {f: None for f in fields}
|
||||
widgets = {
|
||||
"avatar": ClearableFileInputWithWarning(
|
||||
attrs={'aria-describedby': "desc_avatar"}
|
||||
),
|
||||
"name": forms.TextInput(
|
||||
attrs={'aria-describedby': "desc_name"}
|
||||
),
|
||||
"summary": forms.Textarea(
|
||||
attrs={'aria-describedby': "desc_summary"}
|
||||
attrs={"aria-describedby": "desc_avatar"}
|
||||
),
|
||||
"name": forms.TextInput(attrs={"aria-describedby": "desc_name"}),
|
||||
"summary": forms.Textarea(attrs={"aria-describedby": "desc_summary"}),
|
||||
"discoverable": forms.CheckboxInput(
|
||||
attrs={'aria-describedby': "desc_discoverable"}
|
||||
attrs={"aria-describedby": "desc_discoverable"}
|
||||
),
|
||||
}
|
||||
|
||||
|
@ -322,13 +312,13 @@ class SiteForm(CustomForm):
|
|||
exclude = []
|
||||
widgets = {
|
||||
"instance_short_description": forms.TextInput(
|
||||
attrs={'aria-describedby': "desc_instance_short_description"}
|
||||
attrs={"aria-describedby": "desc_instance_short_description"}
|
||||
),
|
||||
"require_confirm_email": forms.CheckboxInput(
|
||||
attrs={'aria-describedby': "desc_require_confirm_email"}
|
||||
attrs={"aria-describedby": "desc_require_confirm_email"}
|
||||
),
|
||||
"invite_request_text": forms.Textarea(
|
||||
attrs={'aria-describedby': "desc_invite_request_text"}
|
||||
attrs={"aria-describedby": "desc_invite_request_text"}
|
||||
),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue