Skip to content

Commit

Permalink
Update UK address form to be in line with GOV.UK Design System
Browse files Browse the repository at this point in the history
  • Loading branch information
hnryjmes authored and kevincarrogan committed Jan 14, 2025
1 parent b03f8eb commit 6530805
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions exporter/core/organisation/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,33 +261,31 @@ class Layout:
)

address_line_1 = AddressLineField(
label="Building and street",
label="Address line 1",
error_messages={
"required": "Enter a real building and street name",
"required": "Enter address line 1, typically the building and street",
},
)
address_line_2 = AddressLineField(
label="",
label="Address line 2 (optional)",
required=False,
)

city = AddressLineField(
label="Town or city",
error_messages={
"required": "Enter a real city",
"required": "Enter town or city",
},
)
region = AddressLineField(
label="County or state",
error_messages={
"required": "Enter a county or state",
},
label="County (optional)",
required=False,
)

postcode = forms.CharField(
label="Postcode",
error_messages={
"required": "Enter a real postcode",
"required": "Enter postcode",
},
)

Expand Down

0 comments on commit 6530805

Please sign in to comment.