mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 22:14:15 +02:00
added placeholder to role selection, and handled validation error when user not selected
This commit is contained in:
parent
aa7e9d83a4
commit
c7aa2f3a38
3 changed files with 17 additions and 12 deletions
|
@ -229,7 +229,7 @@ class PortfolioPermissionsForm(forms.ModelForm):
|
|||
|
||||
# Dropdown for selecting the user role (e.g., Admin or Basic)
|
||||
role = forms.ChoiceField(
|
||||
choices=UserPortfolioRoleChoices.choices,
|
||||
choices=[("", "---------")] + UserPortfolioRoleChoices.choices,
|
||||
required=True,
|
||||
widget=forms.Select(attrs={"class": "admin-dropdown"}),
|
||||
label="Member access",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue