diff --git a/app/models/organisation.rb b/app/models/organisation.rb index 7970c7c37..609aa3cbf 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -63,15 +63,16 @@ class Organisation < ApplicationRecord def display_attributes [ - { name: "name", value: name, editable: true }, - { name: "address", value: address_string, editable: true }, - { name: "telephone_number", value: phone, editable: true }, - { name: "type", value: display_provider_type, editable: false }, - { name: "rent_periods", value: rent_period_labels, editable: false, format: :bullet }, + { name: "Name", value: name, editable: true }, + { name: "Address", value: address_string, editable: true }, + { name: "Telephone_number", value: phone, editable: true }, + { name: "Type of provider", value: display_provider_type, editable: false }, + { name: "Registration number", value: housing_registration_no || "", editable: false }, + { name: "Rent_periods", value: rent_period_labels, editable: false, format: :bullet }, { name: "Owns housing stock", value: holds_own_stock ? "Yes" : "No", editable: false }, - { name: "other_stock_owners", value: other_stock_owners, editable: false }, - { name: "managing_agents", value: managing_agents, editable: false }, - { name: "data_protection_agreement", value: data_protection_agreement_string, editable: false }, + { name: "Other stock owners", value: other_stock_owners, editable: false }, + { name: "Managing agents", value: managing_agents, editable: false }, + { name: "Data protection agreement", value: data_protection_agreement_string, editable: false }, ] end end diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index 3227e7b88..5cd8b64e0 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -22,7 +22,7 @@ <% row.action( visually_hidden_text: attr[:name].to_s.humanize.downcase, href: edit_organisation_path, - html_attributes: { "data-qa": "change-#{attr[:name]}" }, + html_attributes: { "data-qa": "change-#{attr[:name].downcase}" }, ) %> <% end %> <% else %>