Skip to content

Commit

Permalink
Fix duplicate ids and empty elements
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton committed Aug 22, 2023
1 parent 38179b6 commit 30a49ed
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/views/close_accounts/confirm.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- content_for :page_title do
= html_title t('close_account.confirm.heading')

.govuk-grid-row
.govuk-grid-column-two-thirds-from-desktop
= govuk_back_link(href: edit_reason_user_close_account_path)
Expand Down
3 changes: 3 additions & 0 deletions app/views/close_accounts/edit_reason.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- content_for :page_title do
= html_title 'Tell us why you want to close your account'

.govuk-grid-row
.govuk-grid-column-two-thirds-from-desktop
= govuk_back_link(href: user_path)
Expand Down
5 changes: 4 additions & 1 deletion app/views/close_accounts/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- content_for :page_title do
= html_title 'For security, enter your password.'

.govuk-grid-row
.govuk-grid-column-two-thirds-from-desktop
= govuk_back_link(href: user_path)
Expand All @@ -8,7 +11,7 @@
= f.govuk_password_field :current_password,
autofocus: true,
aria: { required: true },
label: { text: 'For security, enter your password.'},
label: { text: 'For security, enter your password.' },
hint: { text: 'Your password' } do
p= govuk_details(summary_text: 'Problems with your password?') do
p.govuk-heading-s= 'I have forgotten my password'
Expand Down
3 changes: 3 additions & 0 deletions app/views/errors/internal_server_error.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- content_for :page_title do
= html_title 'Sorry, there is a problem with the service'

.govuk-grid-row
.govuk-grid-column-two-thirds
h1.govuk-heading-xl
Expand Down
3 changes: 3 additions & 0 deletions app/views/errors/not_found.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- content_for :page_title do
= html_title 'Page not found'

.govuk-grid-row
.govuk-grid-column-two-thirds
h1.govuk-heading-xl
Expand Down
3 changes: 1 addition & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ en:
summary: |
%{description}
## What you'll learn
{: .govuk-heading-m}
**What you'll learn**
This module covers:
Expand Down
2 changes: 1 addition & 1 deletion config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# errors
add '/404'
add '/422'
# add '/422'
add '/500'

add users_timeout_path
Expand Down

0 comments on commit 30a49ed

Please sign in to comment.