Skip to content

Commit

Permalink
Update select qualifications views
Browse files Browse the repository at this point in the history
This updates the content on the two views related to selecting the
qualification requests, and choose whether to verify qualifications in
the first place.
  • Loading branch information
thomasleese committed Feb 15, 2024
1 parent d10f9c4 commit 7f7e4b3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
<% content_for :page_title, title_with_error_prefix(t(".heading"), error: @form.errors.any?) %>
<% content_for :back_link_url, verify_qualifications_assessor_interface_application_form_assessment_assessment_recommendation_verify_path(@application_form) %>
<% title = "Verify qualifications" %>

<% content_for :page_title, title_with_error_prefix(title, error: @form.errors.any?) %>
<% content_for :back_link_url, verify_qualifications_assessor_interface_application_form_assessment_assessment_recommendation_verify_path(@application_form, @assessment) %>

<%= form_with model: @form, url: [:qualification_requests, :assessor_interface, @application_form, @assessment, :assessment_recommendation_verify] do |f| %>
<%= f.govuk_error_summary %>

<%= hidden_field_tag :back_to_summary, params[:back_to_summary] %>

<h1 class="govuk-heading-xl"><%= t(".heading") %></h1>
<h1 class="govuk-heading-xl"><%= title %></h1>

<p class="govuk-body">The list of submitted qualifications is shown below.</p>

<p class="govuk-body">The list of qualifications that the applicant has submitted is shown below:</p>
<p class="govuk-body">Select the qualifications you want to verify. You will be able to check your selection before submitting.</p>

<%= f.govuk_collection_check_boxes :qualification_ids,
@application_form.qualifications.order_by_role,
:id,
->(qualification) { qualification_title(qualification) },
small: true,
legend: nil %>

<%= f.govuk_text_area :qualifications_assessor_note %>

<%= govuk_inset_text do %>
<p class="govuk-body">
You can deselect 1 or more qualifications from the list if you do not want to verify them.
</p>
<% end %>

<p class="govuk-body">
If you’re happy to proceed, select ‘Continue’.
</p>

<%= f.govuk_submit do %>
<%= govuk_link_to "Cancel", [:assessor_interface, @application_form] %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<% content_for :page_title, title_with_error_prefix(t(".heading"), error: @form.errors.any?) %>
<% title = "Do you want to verify qualifications?" %>

<% content_for :page_title, title_with_error_prefix(title, error: @form.errors.any?) %>
<% content_for :back_link_url, assessor_interface_application_form_path(@application_form) %>

<%= form_with model: @form, url: [:verify_qualifications, :assessor_interface, @application_form, @assessment, :assessment_recommendation_verify] do |f| %>
<%= hidden_field_tag :back_to_summary, params[:back_to_summary] %>

<%= f.govuk_error_summary %>

<h1 class="govuk-heading-xl"><%= t(".heading") %></h1>
<h1 class="govuk-heading-xl"><%= title %></h1>

<p class="govuk-body">
If you choose to verify this applicant’s qualifications, you’ll need to submit 1 or more verification requests to Ecctis.
If you choose to verify this qualifications an admin will request consent and submit verification requests to Ecctis.
</p>

<p class="govuk-body">
On the next screen you’ll see a list of the applicant’s qualifications. You can select which ones you want to verify.
You can select which qualifications to verify on the next screen.
</p>

<%= f.govuk_collection_radio_buttons :verify_qualifications, %i[true false], :itself, legend: nil %>
Expand Down
10 changes: 3 additions & 7 deletions config/locales/assessor_interface.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,10 @@ en:
assessment_recommendation_verify:
edit:
heading: Verification requests
edit_qualification_requests:
heading: Verify qualifications
edit_verify_qualifications:
heading: Do you want to verify qualifications?
edit_reference_requests:
heading: Request work history references
edit_professional_standing:
heading: Do you want to verify LoPS?
edit_reference_requests:
heading: Request work history references

assessment_sections:
show:
Expand Down Expand Up @@ -408,7 +404,7 @@ en:
assessor_interface/verify_qualifications_form:
attributes:
verify_qualifications:
inclusion: Select whether you want to verify qualifications
inclusion: Tell us if you want to verify qualifications
assessor_interface/reviewer_assignment_form:
attributes:
reviewer_id:
Expand Down
6 changes: 2 additions & 4 deletions config/locales/helpers.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ en:
false: "No"
failure_assessor_note: '<strong class="govuk-!-font-weight-bold">Internal note:</strong> Briefly explain why you selected ‘No’'
failed_options:
true: Yes, mark as ‘Rejected’
true: Yes, mark as rejected
false: No, allow more time for a response
assessor_interface_requestable_review_form:
passed_options:
Expand All @@ -135,7 +135,7 @@ en:
assessor_interface_verify_qualifications_form:
verify_qualifications_options:
true: Yes, verify qualifications
false: No, skip this step
false: No, do not verify
assessor_interface_work_history_contact_form:
name: Change full name
job: Change job title
Expand Down Expand Up @@ -285,8 +285,6 @@ en:
received: Have you received a response about this qualification?
passed: Does the response show that the qualification is legitimate?
failed: Do you want to mark this qualification as ‘Rejected’?
assessor_interface_select_qualifications_form:
qualification_ids: Qualification
assessor_interface_select_work_histories_form:
work_history_ids: Schools
eligibility_interface_region_form:
Expand Down

0 comments on commit 7f7e4b3

Please sign in to comment.