mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 07:18:58 -04:00
Check for invalid chars in letter addresses
This now adds validation for invalid characters on the LetterAddressForm for one off letters. It also adds a validation failed message for uploaded letters, precompiled letters sent through the API, and CSV rows with errors.
This commit is contained in:
@@ -90,6 +90,8 @@
|
||||
{% else %}
|
||||
Last line of the address must be a real UK postcode
|
||||
{% endif %}
|
||||
{% elif item.as_postal_address.has_invalid_characters %}
|
||||
Address lines must not start with any of the following characters: @ ( ) = [ ] ” \ / ,
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user