Browse Source

Add inset text

pull/2084/head
Kat 2 years ago
parent
commit
fa9dcf839f
  1. 1
      app/views/schemes/confirm_secondary.html.erb
  2. 1
      app/views/schemes/details.html.erb
  3. 1
      app/views/schemes/edit_name.html.erb
  4. 1
      app/views/schemes/primary_client_group.html.erb
  5. 1
      app/views/schemes/secondary_client_group.html.erb
  6. 1
      app/views/schemes/support.html.erb

1
app/views/schemes/confirm_secondary.html.erb

@ -7,6 +7,7 @@
<% end %>
<%= render partial: "organisations/headings", locals: { main: "Does this scheme provide for another client group?", sub: @scheme.service_name } %>
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %>
<%= form_for(@scheme, method: :patch) do |f| %>
<div class="govuk-grid-row">

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

@ -14,6 +14,7 @@
<% else %>
<%= render partial: "organisations/headings", locals: { main: "Create a new supported housing scheme", sub: nil } %>
<% end %>
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %>
<%= f.govuk_text_field :service_name,
label: { text: "Scheme name", size: "m" },

1
app/views/schemes/edit_name.html.erb

@ -10,6 +10,7 @@
<%= f.govuk_error_summary %>
<%= render partial: "organisations/headings", locals: { main: "Scheme details", sub: @scheme.service_name } %>
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %>
<%= f.govuk_text_field :service_name,
label: { text: "Scheme name", size: "m" },

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

@ -16,6 +16,7 @@
<%= f.govuk_error_summary %>
<%= render partial: "organisations/headings", locals: { main: "What client group is this scheme intended for?", sub: @scheme.service_name } %>
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %>
<% 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,

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

@ -12,6 +12,7 @@
<%= f.govuk_error_summary %>
<%= render partial: "organisations/headings", locals: { main: "What is the other client group?", sub: @scheme.service_name } %>
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %>
<% secondary_client_group_selection = Scheme.secondary_client_groups.keys.excluding("Missing", @scheme.primary_client_group).map { |key, _| OpenStruct.new(id: key, name: key) } %>
<%= f.govuk_collection_radio_buttons :secondary_client_group,

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

@ -12,6 +12,7 @@
<%= f.govuk_error_summary %>
<%= render partial: "organisations/headings", locals: { main: "What support does this scheme provide?", sub: @scheme.service_name } %>
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %>
<% support_level_options_hints = { "Low level": "Staff visiting once a week, fortnightly or less.", "Medium level": "Staff on site daily or making frequent visits with some out-of-hours cover.", "High level": "Intensive level of staffing provided on a 24-hour basis." } %>

Loading…
Cancel
Save