mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Give specific error if international letters off
If a service doesn’t have permission to send international letters but someone tries to upload a letter with a valid international address we just tell them that the last line must be a UK postcode. This is a bit opaque and: - suggests that we’re not recognising at all that it’s not a UK letter - doesn’t explain why it must be a UK postcode This commit adds a new, error message which tells users why their letter can’t be sent. And hopefully will give them a better idea of how to resolve the problem, if they really do need to be able to send international letters.
This commit is contained in:
@@ -703,6 +703,15 @@ LETTER_VALIDATION_MESSAGES = {
|
||||
'Validation failed because the last line of the address is not a real UK postcode.'
|
||||
),
|
||||
},
|
||||
'cant-send-international-letters': {
|
||||
'title': 'There’s a problem with the address for this letter',
|
||||
'detail': (
|
||||
'You do not have permission to send letters to other countries.'
|
||||
),
|
||||
'summary': (
|
||||
'Validation failed because your service cannot send letters to other countries.'
|
||||
),
|
||||
},
|
||||
'not-a-real-uk-postcode-or-country': {
|
||||
'title': 'There’s a problem with the address for this letter',
|
||||
'detail': (
|
||||
|
||||
Reference in New Issue
Block a user