Skip to content

Commit

Permalink
add eligible page to FE journey
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jul 1, 2024
1 parent 3fd9cbf commit 779a4a8
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Journeys
module FurtherEducationPayments
class CheckYourAnswersForm < Form
def save
true
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Journeys
module FurtherEducationPayments
class EligibleForm < Form
def save
true
end
end
end
end
3 changes: 2 additions & 1 deletion app/models/journeys/further_education_payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SlugSequence

RESULTS_SLUGS = %w[
check-your-answers
eligible
ineligible
].freeze

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p class="govuk-body">
FE check your answers goes here
</p>

<%= 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 %>
26 changes: 26 additions & 0 deletions app/views/further_education_payments/claims/eligible.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= 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"
}
) %>

<div class="govuk-heading-m">
Based on what you’ve told us, you can apply for an early career further education financial incentive payment of:
</div>

<div class="govuk-heading-l">
£???
</div>

<div class="govuk-body">
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 %>.
</div>

<%= f.govuk_submit "Apply now" %>
<% end %>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions spec/features/further_education_payments/happy_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 779a4a8

Please sign in to comment.