mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Add multiple letter contact blocks for services from Admin app
This commit is contained in:
@@ -480,13 +480,14 @@ class ServiceSmsSender(Form):
|
||||
raise ValidationError('Use letters and numbers only')
|
||||
|
||||
|
||||
class ServiceLetterContactBlock(Form):
|
||||
class ServiceLetterContactBlockForm(Form):
|
||||
letter_contact_block = TextAreaField(
|
||||
validators=[
|
||||
DataRequired(message="Can’t be empty"),
|
||||
NoCommasInPlaceHolders()
|
||||
]
|
||||
)
|
||||
is_default = BooleanField("Set as your default address")
|
||||
|
||||
def validate_letter_contact_block(form, field):
|
||||
line_count = field.data.strip().count('\n')
|
||||
|
||||
Reference in New Issue
Block a user