Browse Source

fixup! CLDC-4156: Add new question wording

remove hints from function name
CLDC-4156-schemes-care-standard-recode
Samuel Young 1 week ago
parent
commit
03e7d92236
  1. 2
      app/models/scheme.rb
  2. 2
      app/views/schemes/details.html.erb
  3. 2
      app/views/schemes/new.html.erb

2
app/models/scheme.rb

@ -261,7 +261,7 @@ class Scheme < ApplicationRecord
]
end
def self.care_acts_options_with_hints
def self.care_acts_options
Scheme.registered_under_care_acts.keys.map { |key, _| OpenStruct.new(id: key, name: key.to_s) }
end

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

@ -39,7 +39,7 @@
legend: { text: "What is this type of scheme?", size: "m" } %>
<%= f.govuk_collection_radio_buttons :registered_under_care_act,
Scheme.care_acts_options_with_hints,
Scheme.care_acts_options,
:id,
:name,
:description,

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

@ -34,7 +34,7 @@
legend: { text: "What is this type of scheme?", size: "m" } %>
<%= f.govuk_collection_radio_buttons :registered_under_care_act,
Scheme.care_acts_options_with_hints,
Scheme.care_acts_options,
:id,
:name,
:description,

Loading…
Cancel
Save