Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LUPEYALPHA-557] Add eligible page to FE journey #2950

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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