Skip to content

Commit

Permalink
Content changes made to preview page for further_information_requests
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Oct 13, 2023
1 parent ef4f333 commit 63210e7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def item_name(item)
"teacher_interface.further_information_request.show.failure_reason.#{item.failure_reason_key}",
)
when "work_history_contact"
"Add your work history contact’s details"
"Add work history details"
when "document"
"Upload your #{I18n.t("document.document_type.#{item.document.document_type}")} document"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,47 @@
<% content_for :back_link_url, edit_assessor_interface_application_form_assessment_path(@application_form, @assessment) %>

<h1 class="govuk-heading-xl">
Check the further information you’re asking the applicant for
Check the information you’re asking the applicant for
</h1>

<p class="govuk-body">This screen shows your reasons for requesting further information, along with your notes to the applicant.</p>
<p class="govuk-body">If you need to change your notes, you’ll need to go back to the relevant section.</p>

<h2 class="govuk-heading-l">Your further information request reasons and notes</h2>

<% @further_information_request.items.each do |item| %>
<section class="app-further-information-request-item">
<h3 class="govuk-heading-s"><%= t(item.failure_reason_key, scope: %i[assessor_interface assessment_sections failure_reasons as_statement]) %></h3>
<p class="govuk-body govuk-!-margin-bottom-2">Your note to the applicant:</p>
<% @further_information_request.items.group_by(&:failure_reason_key).each do |failure_reason_key, items| %>
<% if failure_reason_key == "school_details_cannot_be_verified" %>
<section class="app-further-information-request-item">
<h2 class="govuk-heading-s">Reason for request</h2>
<% if items.size == 1 %>
<p class="govuk-body">We were unable to verify the details for <%= items.first.work_history.school_name %></p>
<% elsif items.size > 1 %>
<p class="govuk-body">We were unable to verify the details for:</p>
<ul class="govuk-list govuk-list--bullet">
<% items.each do |item| %>
<li><%= item.work_history.school_name %></li>
<% end %>
</ul>
<%end%>
<h2 class="govuk-heading-s">Note to applicant</h2>

<%= govuk_inset_text do %>
<%= simple_format item.failure_reason_assessor_feedback %>
<%= govuk_inset_text do %>
<%= simple_format items.first.failure_reason_assessor_feedback %>
<% end %>
</section>
<% else %>
<% items.each do |item| %>
<section class="app-further-information-request-item">
<h3 class="govuk-heading-s"><%= t(item.failure_reason_key, scope: %i[assessor_interface assessment_sections failure_reasons as_statement]) %></h3>

<h2 class="govuk-heading-s">Note to applicant</h2>

<%= govuk_inset_text do %>
<%= simple_format item.failure_reason_assessor_feedback %>
<% end %>
</section>
<% end %>
</section>
<% end %>
<% end %>

<h2 class="govuk-heading-l">Send the further information request email</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<h2 class="govuk-heading-m">We need some more information</h2>

<p class="govuk-body">The assessor needs you to provide some additional information so they can continue reviewing your application.</p>

<div class="govuk-inset-text">
You may need to upload 1 or more documents. Make sure any files you upload clearly show the whole document or page, and that any text is easy to read.
</div>

<p class="govuk-body">You must add all of the requested information, so the assessor can continue reviewing your QTS application.</p>
<p class="govuk-body">The assessor needs you to provide more information so they can continue reviewing your application.</p>

<%= govuk_start_button(text: "Start now", href: teacher_interface_application_form_further_information_request_path(view_object.further_information_request)) %>
4 changes: 2 additions & 2 deletions config/locales/helpers.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ en:
assessor_interface_assessment_section_form:
selected_failure_reasons: Select all options that are relevant to you.
failure_reason_notes:
text: This FI reason gives the applicant a free text box. Use this space to give them clear instructions on what they need to provide.
text: This FI allows the applicant to send us a typed response. Use this space to give them clear instructions on what they need to provide.
document: This FI reason asks the applicant to upload a file. Use this space to give them clear instructions on what they need to provide.
decline: As this reason triggers a decline, you do not need to add a note, but you can use the space below to add anything you feel might be helpful, if you want to.
assessor_interface_create_note_form:
Expand Down Expand Up @@ -278,7 +278,7 @@ en:
assessor_interface_assessment_section_form:
selected_failure_reasons: What are the reasons for your recommendation?
scotland_full_registration: Does the applicant have or are they eligible for full registration?
school_details_cannot_be_verified_work_history_checked: Choose the schools that need reference details to be amended
school_details_cannot_be_verified_work_history_checked: Select the school that we were unable to verify (there may be more than one)
assessor_interface_filter_form:
action_required_by: Action required by
assessor_ids: Assessor name
Expand Down

0 comments on commit 63210e7

Please sign in to comment.