diff --git a/app/forms/journeys/further_education_payments/check_your_answers_form.rb b/app/forms/journeys/further_education_payments/check_your_answers_form.rb new file mode 100644 index 0000000000..ead9c4a800 --- /dev/null +++ b/app/forms/journeys/further_education_payments/check_your_answers_form.rb @@ -0,0 +1,9 @@ +module Journeys + module FurtherEducationPayments + class CheckYourAnswersForm < Form + def save + true + end + end + end +end diff --git a/app/forms/journeys/further_education_payments/eligible_form.rb b/app/forms/journeys/further_education_payments/eligible_form.rb new file mode 100644 index 0000000000..c1cebb5e1b --- /dev/null +++ b/app/forms/journeys/further_education_payments/eligible_form.rb @@ -0,0 +1,9 @@ +module Journeys + module FurtherEducationPayments + class EligibleForm < Form + def save + true + end + end + end +end diff --git a/app/models/journeys/further_education_payments.rb b/app/models/journeys/further_education_payments.rb index 1ff183dfe7..9318586060 100644 --- a/app/models/journeys/further_education_payments.rb +++ b/app/models/journeys/further_education_payments.rb @@ -13,7 +13,8 @@ module FurtherEducationPayments "further-education-provision-search" => FurtherEducationProvisionSearchForm, "select-provision" => SelectProvisionForm, "contract-type" => ContractTypeForm, - "subjects-taught" => SubjectsTaughtForm + "subjects-taught" => SubjectsTaughtForm, + "check-your-answers" => CheckYourAnswersForm } } end diff --git a/app/models/journeys/further_education_payments/slug_sequence.rb b/app/models/journeys/further_education_payments/slug_sequence.rb index d9f41f5322..1634d30156 100644 --- a/app/models/journeys/further_education_payments/slug_sequence.rb +++ b/app/models/journeys/further_education_payments/slug_sequence.rb @@ -18,6 +18,7 @@ class SlugSequence RESULTS_SLUGS = %w[ check-your-answers + eligible ineligible ].freeze diff --git a/app/views/further_education_payments/claims/check_your_answers.html.erb b/app/views/further_education_payments/claims/check_your_answers.html.erb index 533f8cb82e..4cfef0b5be 100644 --- a/app/views/further_education_payments/claims/check_your_answers.html.erb +++ b/app/views/further_education_payments/claims/check_your_answers.html.erb @@ -1,3 +1,7 @@

FE check your answers goes here

+ +<%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %> + <%= f.govuk_submit %> +<% end %> diff --git a/app/views/further_education_payments/claims/eligible.html.erb b/app/views/further_education_payments/claims/eligible.html.erb new file mode 100644 index 0000000000..9a1a8936d9 --- /dev/null +++ b/app/views/further_education_payments/claims/eligible.html.erb @@ -0,0 +1,26 @@ +
+
+ <%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %> + <%= govuk_panel( + title_text: "You’re eligible for a financial incentive payment", + html_attributes: { + class: "govuk-panel--informational" + } + ) %> + +
+ Based on what you’ve told us, you can apply for an early career further education financial incentive payment of: +
+ +
+ £??? +
+ +
+ For more information about why you are eligible, read about the <%= govuk_link_to "levelling up premium payments for early career further education teachers", "https://www.gov.uk/guidance/levelling-up-premium-payments-for-fe-teachers", new_tab: true %>. +
+ + <%= f.govuk_submit "Apply now" %> + <% end %> +
+
diff --git a/spec/features/further_education_payments/happy_js_path_spec.rb b/spec/features/further_education_payments/happy_js_path_spec.rb index 11c728af8d..080f5f7cea 100644 --- a/spec/features/further_education_payments/happy_js_path_spec.rb +++ b/spec/features/further_education_payments/happy_js_path_spec.rb @@ -56,6 +56,10 @@ click_button "Continue" expect(page).to have_content("FE check your answers goes here") + click_button "Continue" + + expect(page).to have_content("You’re eligible for a financial incentive payment") + expect(page).to have_content("Apply now") end def when_further_education_payments_journey_configuration_exists diff --git a/spec/features/further_education_payments/happy_path_spec.rb b/spec/features/further_education_payments/happy_path_spec.rb index 7e38c5c95b..02840ff853 100644 --- a/spec/features/further_education_payments/happy_path_spec.rb +++ b/spec/features/further_education_payments/happy_path_spec.rb @@ -53,6 +53,10 @@ click_button "Continue" expect(page).to have_content("FE check your answers goes here") + click_button "Continue" + + expect(page).to have_content("You’re eligible for a financial incentive payment") + expect(page).to have_content("Apply now") end def when_further_education_payments_journey_configuration_exists