Browse Source

Use new formbuilder config option to disable bold radio labels (#779)

pull/782/head
Paul Robert Lloyd 2 years ago committed by GitHub
parent
commit
23d007215e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Gemfile.lock
  2. 3
      app/views/schemes/details.html.erb
  3. 3
      app/views/schemes/new.html.erb
  4. 6
      app/views/schemes/support.html.erb
  5. 3
      config/initializers/govuk_design_system_formbuilder.rb

8
Gemfile.lock

@ -175,7 +175,7 @@ GEM
pagy (~> 5.10.1) pagy (~> 5.10.1)
railties (>= 6.1) railties (>= 6.1)
view_component (~> 2.56.2) view_component (~> 2.56.2)
govuk_design_system_formbuilder (3.1.0) govuk_design_system_formbuilder (3.1.1)
actionview (>= 6.1) actionview (>= 6.1)
activemodel (>= 6.1) activemodel (>= 6.1)
activesupport (>= 6.1) activesupport (>= 6.1)
@ -225,11 +225,11 @@ GEM
net-protocol net-protocol
timeout timeout
nio4r (2.5.8) nio4r (2.5.8)
nokogiri (1.13.7-arm64-darwin) nokogiri (1.13.8-arm64-darwin)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.13.7-x86_64-darwin) nokogiri (1.13.8-x86_64-darwin)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.13.7-x86_64-linux) nokogiri (1.13.8-x86_64-linux)
racc (~> 1.4) racc (~> 1.4)
notifications-ruby-client (5.3.0) notifications-ruby-client (5.3.0)
jwt (>= 1.5, < 3) jwt (>= 1.5, < 3)

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

@ -49,8 +49,7 @@
:id, :id,
:name, :name,
:description, :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 %>
<% organisations = Organisation.all.map { |org| OpenStruct.new(id: org.id, name: org.name) } %> <% organisations = Organisation.all.map { |org| OpenStruct.new(id: org.id, name: org.name) } %>

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

@ -53,8 +53,7 @@
:id, :id,
:name, :name,
:description, :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? %> <% if current_user.support? %>
<%= f.govuk_collection_select :owning_organisation_id, <%= f.govuk_collection_select :owning_organisation_id,

6
app/views/schemes/support.html.erb

@ -23,8 +23,7 @@
:id, :id,
:name, :name,
:description, :description,
legend: { text: "Level of support given", size: "m" }, legend: { text: "Level of support given", size: "m" } %>
bold_labels: false %>
<% intended_length_of_stay_options_hints = { "Very short stay": "Up to one month.", "Short stay": "Up to one year.", "Medium stay": "More than one year but with an expectation to move on.", "Permanent": "Provides a home for life with no requirement for the tenant to move." } %> <% intended_length_of_stay_options_hints = { "Very short stay": "Up to one month.", "Short stay": "Up to one year.", "Medium stay": "More than one year but with an expectation to move on.", "Permanent": "Provides a home for life with no requirement for the tenant to move." } %>
@ -35,8 +34,7 @@
:id, :id,
:name, :name,
:description, :description,
legend: { text: "Intended length of stay", size: "m" }, legend: { text: "Intended length of stay", size: "m" } %>
bold_labels: false %>
<%= f.hidden_field :page, value: "support" %> <%= f.hidden_field :page, value: "support" %>

3
config/initializers/govuk_design_system_formbuilder.rb

@ -0,0 +1,3 @@
GOVUKDesignSystemFormBuilder.configure do |conf|
conf.default_collection_radio_buttons_auto_bold_labels = false
end
Loading…
Cancel
Save