diff --git a/app/controllers/candidate_interface/course_choices/review_enic_interruption_controller.rb b/app/controllers/candidate_interface/course_choices/review_enic_interruption_controller.rb new file mode 100644 index 00000000000..843b4a698cc --- /dev/null +++ b/app/controllers/candidate_interface/course_choices/review_enic_interruption_controller.rb @@ -0,0 +1,24 @@ +module CandidateInterface + module CourseChoices + class ReviewEnicInterruptionController < CandidateInterface::CourseChoices::BaseController + before_action :redirect_to_your_applications_if_submitted + before_action :viewed_enic_interruption_page, only: :show + + def show + set_enic_reviewed_cookie + end + + private + + def viewed_enic_interruption_page + if cookies[:viewed_enic_interruption_page] == 'true' + redirect_to candidate_interface_course_choices_course_review_and_submit_path(@application_choice.id) + end + end + + def set_enic_reviewed_cookie + cookies[:viewed_enic_interruption_page] = { value: 'true' } + end + end + end +end diff --git a/app/models/application_form.rb b/app/models/application_form.rb index 1efd14612c7..1ae44245003 100644 --- a/app/models/application_form.rb +++ b/app/models/application_form.rb @@ -206,6 +206,20 @@ def touch_choices application_choices.touch_all end + def any_qualification_enic_reason_not_needed? + return false if application_qualifications.empty? + + application_qualifications.all?(&:enic_reason_not_needed?) + end + + def qualifications_enic_reasons_waiting_or_maybe? + return false if application_qualifications.empty? + + application_qualifications.count do |qualification| + qualification.enic_reason_waiting? || qualification.enic_reason_maybe? + end >= 1 + end + def missing_enic_reference_for_non_uk_qualifications? @missing_enic_reference_for_non_uk_qualifications ||= application_qualifications .where.not(institution_country: 'GB') diff --git a/app/views/candidate_interface/course_choices/review_enic_interruption/_not_needed.html.erb b/app/views/candidate_interface/course_choices/review_enic_interruption/_not_needed.html.erb new file mode 100644 index 00000000000..e550c2d5086 --- /dev/null +++ b/app/views/candidate_interface/course_choices/review_enic_interruption/_not_needed.html.erb @@ -0,0 +1,16 @@ +
Including a UK ENIC reference number in your application makes youn around 30% more likely to receive an offer.
+If you apply for a UK ENIC statement of comparability (opens in new tab) <%= govuk_link_to('save this application as a draft', candidate_interface_course_choices_course_review_path(current_application.id)) %> and include the reference number in your application it makes it easier for training providers to understand your qualifications.
+If you don’t include a UK ENIC statement of comparability and the provider asks for one, it could cause delays.
++ You have said you had, or planned. to <%= govuk_link_to('apply for a statement of comparability from UK ENIC (opens in new tab)', 'https://www.enic.org.uk/Qualifications/SOC/Default.aspx') %> + but you have not added the reference number to this application. +
+If you have a UK ENIC reference number, you should add it to your qualifications details.
+If you are still waiting then you can <%= govuk_link_to('save this application as a draft', candidate_interface_course_choices_course_review_path(current_application.id)) %> and come back to add your UK ENIC reference number later.
+You can also submit your application without the UK ENIC reference number and contact the training provider when it arrives.
+