mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-29 18:40:10 -04:00
Handle postcode validation
This commit is contained in:
17
app/utils.py
17
app/utils.py
@@ -649,6 +649,23 @@ LETTER_VALIDATION_MESSAGES = {
|
||||
'letter specification'
|
||||
'</a>.'
|
||||
),
|
||||
},
|
||||
'not-a-real-uk-postcode': {
|
||||
'title': 'Postcode in the address block is not a real UK postcode',
|
||||
'detail': (
|
||||
'You need to give us a real UK postcode.<br>'
|
||||
'Files must meet our '
|
||||
'<a class="govuk-link govuk-link--destructive" href="{letter_spec_guidance}" target="_blank">'
|
||||
'letter specification'
|
||||
'</a>.'
|
||||
),
|
||||
'summary': (
|
||||
'Validation failed because the postcode is not a real UK postcode.<br>'
|
||||
'Files must meet our '
|
||||
'<a class="govuk-link govuk-link--no-visited-state" href="{letter_spec}" target="_blank">'
|
||||
'letter specification'
|
||||
'</a>.'
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user