Browse Source

required changes from comments

pull/669/head
JG 3 years ago
parent
commit
6b895c47e5
  1. 2
      app/models/scheme.rb
  2. 2
      app/views/schemes/show.html.erb

2
app/models/scheme.rb

@ -68,7 +68,7 @@ class Scheme < ApplicationRecord
{ name: "Name", value: service_name },
{ name: "Confidential information", value: sensitive_display },
{ name: "Managing agent", value: organisation.name },
{ name: "Type of service", value: scheme_type_display },
{ name: "Type of scheme", value: scheme_type_display },
{ name: "Registered under Care Standards Act 2000", value: registered_under_care_act_display },
{ name: "Total number of units", value: total_units },
{ name: "Primary client group", value: primary_client_group_display },

2
app/views/schemes/show.html.erb

@ -12,7 +12,7 @@
<%= govuk_summary_list do |summary_list| %>
<% @scheme.display_attributes.each do |attr| %>
<%= summary_list.row do |row| %>
<% row.key { attr[:name].eql?("Registered under Care Standards Act 2000") ? "Registered under Care Standards Act 2000" : attr[:name].to_s.humanize} %>
<% row.key { attr[:name].eql?("Registered under Care Standards Act 2000") ? "Registered under Care Standards Act 2000" : attr[:name].to_s.humanize } %>
<% row.value { details_html(attr) } %>
<% end %>
<% end %>

Loading…
Cancel
Save