-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3233 from DFE-Digital/LUPEYALPHA-982-EY-practitio…
…ner-how-we-use-your-information [LUPEYALPHA-982] EY practitioner how-we-use-your-information page
- Loading branch information
Showing
10 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
app/views/early_years_payment/practitioner/claims/find_reference.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= govuk_button_to "Continue", claim_path(current_journey_routing_name), method: :patch %> |
52 changes: 52 additions & 0 deletions
52
app/views/early_years_payment/practitioner/claims/how_we_use_your_information.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<% title = "How we’ll use the information you provide" %> | ||
<% content_for(:page_title, page_title(title, journey: current_journey_routing_name)) %> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
|
||
<h1 class="govuk-heading-l"> | ||
<%= title %> | ||
</h1> | ||
|
||
<h2 class="govuk-heading-m"> | ||
How we process your claim | ||
</h2> | ||
|
||
<p class="govuk-body"> | ||
We’ll check the information you’ve given us with the early years provider where you currently work. | ||
</p> | ||
|
||
<h2 class="govuk-heading-m"> | ||
How we pay you | ||
</h2> | ||
|
||
<p class="govuk-body"> | ||
The Department for Education will make the payment directly to you. | ||
</p> | ||
|
||
<h2 class="govuk-heading-m"> | ||
Student loan deductions | ||
</h2> | ||
|
||
<p class="govuk-body"> | ||
If your payslip shows that you’re currently paying off a student loan, a deduction from your payment will go towards repaying it. | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
If your payment takes you over the amount you must earn to start paying back a student loan, a deduction may go towards repaying it. | ||
Read more about <%= govuk_link_to("when you start paying back a student loan", "https://www.gov.uk/repaying-your-student-loan/when-you-start-repaying") %> | ||
and <%= govuk_link_to("what you’ll pay", "https://www.gov.uk/repaying-your-student-loan/what-you-pay") %>. | ||
</p> | ||
|
||
<h2 class="govuk-heading-m"> | ||
Income Tax | ||
</h2> | ||
|
||
<p class="govuk-body"> | ||
The Department for Education will pay Income Tax and National Insurance on your incentive payment if your total annual income is less than £50,270. | ||
</p> | ||
|
||
<%= govuk_button_to "Continue", claim_path(current_journey_routing_name), method: :patch %> | ||
|
||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
app/views/early_years_payment/practitioner/claims/one_login_sign_in.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<%= 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 %> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1402,6 +1402,7 @@ en: | |
early_years_payment_practitioner: | ||
journey_name: Claim an early years financial incentive payment - practitioner | ||
feedback_email: [email protected] | ||
claim_description: for early years financial incentive payment | ||
activerecord: | ||
errors: | ||
models: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
spec/features/early_years_payment/practitioner/happy_path_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require "rails_helper" | ||
|
||
RSpec.feature "Early years payment practitioner" do | ||
scenario "Happy path" do | ||
when_early_years_payment_practitioner_journey_configuration_exists | ||
|
||
visit landing_page_path(Journeys::EarlyYearsPayment::Practitioner::ROUTING_NAME) | ||
|
||
# find-reference page stuff | ||
visit claim_path(Journeys::EarlyYearsPayment::Practitioner::ROUTING_NAME, :claim) # temporary step until landing page implemented | ||
click_on "Continue" | ||
|
||
# one login stuff | ||
click_on "Continue" | ||
|
||
expect(page.title).to have_text("How we’ll use the information you provide") | ||
expect(page).to have_content("How we’ll use the information you provide") | ||
click_on "Continue" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters