Browse Source

Update content, add back button

pull/1976/head
Kat 3 years ago
parent
commit
b943abb1aa
  1. 2
      app/models/form/lettings/questions/scheme_id.rb
  2. 2
      app/views/form/guidance/_scheme_selection.html.erb
  3. 6
      app/views/schemes/changes.html.erb
  4. 2
      spec/models/form/lettings/questions/scheme_id_spec.rb

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

@ -3,7 +3,7 @@ class Form::Lettings::Questions::SchemeId < ::Form::Question
super("scheme_id", hsh, page)
@check_answer_label = "Scheme name"
@header = "What scheme is this log for?"
@hint_text = "Enter scheme name or postcode"
@hint_text = "Enter postcode or scheme name"
@type = "select"
@answer_options = answer_options
@top_guidance_partial = "finding_scheme"

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

@ -1,5 +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>
<p class="govuk-body">If you’re not sure which scheme to choose, ask a data coordinator. Find your data coordinators on the <%= govuk_link_to("users page", users_path) %>.</p>
<% elsif current_user.data_coordinator? %>
<p class="govuk-body"><%= govuk_link_to "Create a new supported housing scheme", new_scheme_path %></p>
<% end %>

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

@ -1,3 +1,7 @@
<% content_for :before_content do %>
<%= govuk_back_link(href: :back) %>
<% end %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop">
<h1 class="govuk-heading-l">Schemes and locations</h1>
@ -24,6 +28,6 @@
<p class="govuk-body">If you upload logs in bulk, you can use either the new or old scheme codes in your template.</p>
<h2 class="govuk-heading-m">If you can’t find a scheme</h2>
<p class="govuk-body">You should be able to recognise a scheme migrated from old CORE by viewing its details or locations. Try searching for it by postcode.</p>
<p class="govuk-body">If you still can’t find a scheme that was migrated from old CORE, either create a new one if you know the details, or <%= govuk_link_to("contact the service desk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11", rel: "noreferrer noopener", target: "_blank") %> to report the problem. Only data coordinators can create and edit schemes.</p>
<p class="govuk-body">If you still can’t find a scheme that was migrated from old CORE, either create a new one if you know the details, or <%= govuk_link_to("contact the helpdesk", "https://dluhcdigital.atlassian.net/servicedesk/customer/portal/6/group/11", rel: "noreferrer noopener", target: "_blank") %> to report the problem. Only data coordinators can create and edit schemes.</p>
</div>
</div>

2
spec/models/form/lettings/questions/scheme_id_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::SchemeId, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("Enter scheme name or postcode")
expect(question.hint_text).to eq("Enter postcode or scheme name")
end
it "has the correct conditional_for" do

Loading…
Cancel
Save