mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-06 04:27:22 +02:00
Fix form field w/ refactor
This commit is contained in:
parent
9d872d065c
commit
3c1c888356
7 changed files with 17 additions and 6 deletions
|
@ -851,8 +851,16 @@ class NoOtherContactsForm(BaseDeletableRegistrarForm):
|
|||
|
||||
class CisaRepresentativeForm(BaseDeletableRegistrarForm):
|
||||
cisa_representative_email = forms.EmailField(
|
||||
required=False,
|
||||
label="Are you working with a CISA representative?", # TODO-NL: (design check) - is this the right label?
|
||||
required=True,
|
||||
max_length=None,
|
||||
error_messages={"invalid": ("Enter your email address in the required format, like name@example.com.")},
|
||||
label="Your representative’s email",
|
||||
validators=[
|
||||
MaxLengthValidator(
|
||||
320,
|
||||
message="Response must be less than 320 characters.",
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue