Skip to content

Commit

Permalink
Merge pull request #2950 from DFE-Digital/fe-eligible
Browse files Browse the repository at this point in the history
[LUPEYALPHA-557] Add eligible page to FE journey
  • Loading branch information
asmega authored Jul 2, 2024
2 parents edaee10 + aaf644e commit c546c77
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 0 deletions.
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
1 change: 1 addition & 0 deletions app/models/journeys/further_education_payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module FurtherEducationPayments
"subjects-taught" => SubjectsTaughtForm,
"teaching-qualification" => TeachingQualificationForm,
"poor-performance" => PoorPerformanceForm,
"check-your-answers" => CheckYourAnswersForm,
"ineligible" => IneligibleForm
}
}
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 @@ -66,6 +66,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 @@ -63,6 +63,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 c546c77

Please sign in to comment.