Skip to content

Commit

Permalink
revert account page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-coggin committed Nov 23, 2023
1 parent 737addb commit 4126c1e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/user/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
- row.with_key { 'Name' }
- row.with_value(text: current_user.name, classes: %w[data-hj-suppress])
- row.with_action(text: 'Change name', href: edit_registration_name_path, html_attributes: { id: :edit_name_registration })
.govuk-body-small
= m('my_account.name_information')
- your_details.with_row do |row|
- row.with_key { 'Email' }
- row.with_value(text:current_user.email, classes: %w[data-hj-suppress])
- row.with_action(text: 'Change email', href: edit_email_user_path, html_attributes: { id: :edit_email_user })
- your_details.with_row do |row|
- row.with_key { 'Password' }
- row.with_value { t('my_account.password_changed', date: current_user.password_last_changed) }
- row.with_action(text: 'Change password', href: edit_password_user_path, html_attributes: { id: :edit_password_user })

= govuk_summary_list do |other_details|
- other_details.with_row do |row|
Expand Down

0 comments on commit 4126c1e

Please sign in to comment.