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 @@ +