Browse Source

Add the guidance for scheme selection

pull/788/head
Stéphane Meny 3 years ago
parent
commit
2d6dd318b9
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 2
      app/models/form/setup/questions/scheme_id.rb
  2. 5
      app/views/form/guidance/_scheme_selection.html.erb

2
app/models/form/setup/questions/scheme_id.rb

@ -7,6 +7,8 @@ class Form::Setup::Questions::SchemeId < ::Form::Question
@type = "select"
@answer_options = answer_options
@derived = true unless FeatureToggle.supported_housing_schemes_enabled?
@guidance_position = GuidancePosition::BOTTOM
@guidance_partial = "scheme_selection"
end
def answer_options

5
app/views/form/guidance/_scheme_selection.html.erb

@ -0,0 +1,5 @@
<% if current_user.data_provider? %>
<p class="govuk-body">If you can’t find the supported housing service you’re looking for or not sure which to choose, contact a data coordinator at <%= current_user.organisation.name %>.</p>
<% elsif current_user.data_coordinator? %>
<p class="govuk-body">or <%= govuk_link_to "create a new supported housing service", new_scheme_path %></p>
<% end %>
Loading…
Cancel
Save