mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-30 13:03:14 +02:00
tests and requirements form
This commit is contained in:
parent
10d3225cc0
commit
2644839e9a
7 changed files with 191 additions and 127 deletions
|
@ -885,6 +885,28 @@ class CisaRepresentativeYesNoForm(BaseYesNoForm):
|
|||
field_name = "has_cisa_representative"
|
||||
|
||||
|
||||
class PurposeDetailsForm(BaseDeletableRegistrarForm):
|
||||
|
||||
field_name = "purpose"
|
||||
|
||||
purpose = forms.CharField(
|
||||
label="Purpose",
|
||||
widget=forms.Textarea(
|
||||
attrs={
|
||||
"aria-label": "What is the purpose of your requested domain? Describe how you’ll use your .gov domain. \
|
||||
Will it be used for a website, email, or something else?"
|
||||
}
|
||||
),
|
||||
validators=[
|
||||
MaxLengthValidator(
|
||||
2000,
|
||||
message="Response must be less than 2000 characters.",
|
||||
)
|
||||
],
|
||||
error_messages={"required": "Describe how you’ll use the .gov domain you’re requesting."},
|
||||
)
|
||||
|
||||
|
||||
class AnythingElseForm(BaseDeletableRegistrarForm):
|
||||
anything_else = forms.CharField(
|
||||
required=True,
|
||||
|
@ -934,6 +956,7 @@ class AnythingElseYesNoForm(BaseYesNoForm):
|
|||
|
||||
|
||||
class RequirementsForm(RegistrarForm):
|
||||
|
||||
is_policy_acknowledged = forms.BooleanField(
|
||||
label="I read and agree to the requirements for operating a .gov domain.",
|
||||
error_messages={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue