Skip to content

Commit

Permalink
Reduce duplicate in survey research
Browse files Browse the repository at this point in the history
This reduces duplication by using a single view for the research
content, with an optional argument for showing the extra content that
was visible on one page.
  • Loading branch information
thomasleese committed Nov 8, 2023
1 parent 6a7a2eb commit c278523
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
8 changes: 8 additions & 0 deletions app/views/shared/_help_us_to_improve_this_service.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<% show_feedback ||= false %>

<aside class="govuk-!-margin-top-6">
<h2 class="govuk-heading-s">Help us to improve this service</h2>

<% if show_feedback %>
<p class="govuk-body">
Please <%= govuk_link_to "give us feedback", t("service.form.feedback") %> about your experience of using this service. It should take less than 2 minutes to complete.
</p>
<% end %>

<p class="govuk-body">
We're always trying to improve this service and boost teacher recruitment from overseas. So we'd like to talk to people about their experience of using this service.
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,7 @@
<%= render "shared/employment_warning" %>
<% end %>

<h2 class="govuk-heading-s">Help us to improve this service</h2>

<p class="govuk-body">
Please <%= govuk_link_to "give us feedback", t("service.form.feedback") %> about your experience of using this service. It should take less than 2 minutes to complete.
</p>

<p class="govuk-body">
We’re always trying to improve this service and boost teacher recruitment from overseas. So we’d like to talk to people about their experience of using this service.
</p>

<p class="govuk-body">
If you'd like to help, please <%= govuk_link_to "complete this form", t("service.form.research") %>.
</p>

<p class="govuk-body">If you match our search criteria, we'll invite you to take part in research.</p>
<%= render "shared/help_us_to_improve_this_service", show_feedback: true %>

<h2 class="govuk-heading-s">If you have any questions, contact:</h2>
<p class="govuk-body"><%= govuk_link_to t("service.email.enquiries"), "mailto:#{t("service.email.enquiries")}" %></p>

0 comments on commit c278523

Please sign in to comment.