Browse Source

further styling

juris_katrina_test
JG 2 years ago
parent
commit
ce7b8db6e2
  1. 2
      app/models/scheme.rb
  2. 8
      app/views/schemes/details.html.erb
  3. 7
      app/views/schemes/new.html.erb
  4. 2
      app/views/schemes/primary_client_group.html.erb
  5. 2
      app/views/schemes/secondary_client_group.html.erb

2
app/models/scheme.rb

@ -49,7 +49,7 @@ class Scheme < ApplicationRecord
PRIMARY_CLIENT_GROUP = {
"Homeless families with support needs": "O",
"Offenders & people at risk of offending": "H",
"Offenders and people at risk of offending": "H",
"Older people with support needs": "M",
"People at risk of domestic violence": "L",
"People with a physical or sensory disability": "A",

8
app/views/schemes/details.html.erb

@ -40,13 +40,13 @@
:name,
legend: { text: "What is this type of scheme?", size: "m" } %>
<% care_acts_selection = Scheme.registered_under_care_acts.keys.reverse.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<%= f.govuk_collection_radio_buttons :registered_under_care_act,
care_acts_selection,
@scheme.care_acts_options_with_hint,
:id,
:name,
legend: { text: "Is this scheme registered under the Care Standards Act 2000?", size: "m" } %>
:description,
legend: { text: "Is this scheme registered under the Care Standards Act 2000?", size: "m" },
bold_labels: false %>
<% organisations = Organisation.all.map { |org| OpenStruct.new(id: org.id, name: org.name) } %>

7
app/views/schemes/new.html.erb

@ -44,14 +44,13 @@
:name,
legend: { text: "What is this type of scheme?", size: "m" } %>
<% care_acts_selection = @scheme.care_acts_options_with_hints %>
<%= f.govuk_collection_radio_buttons :registered_under_care_act,
care_acts_selection,
@scheme.care_acts_options_with_hint,
:id,
:name,
:description,
legend: { text: "Is this scheme registered under the Care Standards Act 2000?", size: "m" } %>
legend: { text: "Is this scheme registered under the Care Standards Act 2000?", size: "m" },
bold_labels: false %>
<% if current_user.support? %>
<%= f.govuk_collection_select :owning_organisation_id,

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

@ -14,7 +14,7 @@
<div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %>
<% primary_client_group_selection = Scheme.primary_client_groups.keys.excluding("Missing").map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<% primary_client_group_selection = Scheme.primary_client_groups.keys.excluding("Missing").map { |key, _| OpenStruct.new(id: key, name: key) } %>
<%= f.govuk_collection_radio_buttons :primary_client_group,
primary_client_group_selection,
:id,

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

@ -14,7 +14,7 @@
<div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %>
<% secondary_client_group_selection = Scheme.secondary_client_groups.keys.excluding("Missing").map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<% secondary_client_group_selection = Scheme.secondary_client_groups.keys.excluding("Missing").map { |key, _| OpenStruct.new(id: key, name: key) } %>
<%= f.govuk_collection_radio_buttons :secondary_client_group,
secondary_client_group_selection,
:id,

Loading…
Cancel
Save