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 Dec 22, 2023
1 parent bd12f73 commit 5bf183b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
<% 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 %>

<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">You will be able to check your selection before submitting.</p>

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

<%= 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>
small: true %>

<%= f.govuk_submit do %>
<%= govuk_link_to "Cancel", [:assessor_interface, @application_form] %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<% 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| %>
<%= 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
4 changes: 0 additions & 4 deletions config/locales/assessor_interface.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ en:
heading: Send application for review

assessment_recommendation_verify:
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:
Expand Down
16 changes: 8 additions & 8 deletions config/locales/helpers.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,24 @@ 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’"
false: "No, allow more time for a response"
true: Yes, mark as rejected
false: No, allow more time for a response
assessor_interface_requestable_review_form:
passed_options:
true: "Yes"
false: "No"
true: Yes, mark as accepted
false: No, mark as rejected
assessor_interface_requestable_verify_passed_form:
passed_options:
true: "Yes, mark as completed"
false: "No, send for review"
true: Yes, mark as completed
false: No, send for review
assessor_interface_verify_professional_standing_form:
verify_professional_standing_options:
true: Yes, verify LoPS
false: No, do not verify
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 @@ -281,7 +281,7 @@ en:
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
qualification_ids: Select the qualifications you want to verify.
assessor_interface_select_work_histories_form:
work_history_ids: School
eligibility_interface_region_form:
Expand Down

0 comments on commit 5bf183b

Please sign in to comment.