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-760] EY scaffolding + landing page #3026

Merged
merged 10 commits into from
Jul 30, 2024
1 change: 1 addition & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
| Additional Payments | <${{ env.APP_URL }}/additional-payments/claim> |
| Student Loans | <${{ env.APP_URL }}/student-loans/claim> |
| Further Education | <${{ env.APP_URL }}/further-education-payments/landing-page> |
| Early Years Payment | <${{ env.APP_URL }}/early-years-payment-provider/landing-page> |
| Relocation Payments | <${{ env.APP_URL }}/get-a-teacher-relocation-payment/landing-page> |
| Admin | <${{ env.APP_URL }}/admin> |

Expand Down
3 changes: 2 additions & 1 deletion app/models/journeys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def self.table_name_prefix
AdditionalPaymentsForTeaching,
TeacherStudentLoanReimbursement,
GetATeacherRelocationPayment,
FurtherEducationPayments
FurtherEducationPayments,
EarlyYearsPayment::Provider
].freeze

def all
Expand Down
16 changes: 16 additions & 0 deletions app/models/journeys/early_years_payment/provider.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module Journeys
module EarlyYearsPayment
module Provider
extend Base
extend self

ROUTING_NAME = "early-years-payment-provider"
VIEW_PATH = "early_years_payment/provider"
I18N_NAMESPACE = "early_years_payment_provider"
POLICIES = [Policies::EarlyYearsPayment]
FORMS = {
"claims" => {}
}
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Journeys
module EarlyYearsPayment
module Provider
class EligibilityChecker < Journeys::EligibilityChecker
end
end
end
end
9 changes: 9 additions & 0 deletions app/models/journeys/early_years_payment/provider/session.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Journeys
module EarlyYearsPayment
module Provider
class Session < Journeys::Session
attribute :answers, SessionAnswersType.new
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Journeys
module EarlyYearsPayment
module Provider
class SessionAnswers < Journeys::SessionAnswers
def policy
Policies::EarlyYearsPayment
end
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Journeys
module EarlyYearsPayment
module Provider
class SessionAnswersType < ::Journeys::SessionAnswersType; end
end
end
end
25 changes: 25 additions & 0 deletions app/models/journeys/early_years_payment/provider/slug_sequence.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module Journeys
module EarlyYearsPayment
module Provider
class SlugSequence
SLUGS = %w[].freeze

def self.start_page_url
Rails.application.routes.url_helpers.landing_page_path("early-years-payment-provider")
end

attr_reader :journey_session

delegate :answers, to: :journey_session

def initialize(journey_session)
@journey_session = journey_session
end

def slugs
SLUGS
end
end
end
end
end
14 changes: 14 additions & 0 deletions app/models/policies/early_years_payment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module Policies
module EarlyYearsPayment
include BasePolicy
extend self

# Percentage of claims to QA
MIN_QA_THRESHOLD = 10

# TODO: This is needed once the reply-to email address has been added to Gov Notify
def notify_reply_to_id
nil
end
end
end
17 changes: 17 additions & 0 deletions app/models/policies/early_years_payment/eligibility.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module Policies
module EarlyYearsPayment
class Eligibility < ApplicationRecord
self.table_name = "early_years_payment_eligibilities"

has_one :claim, as: :eligibility, inverse_of: :eligibility

def policy
Policies::EarlyYearsPayment
end

def ineligible?
false
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module Policies
module EarlyYearsPayment
class PolicyEligibilityChecker
attr_reader :answers

delegate_missing_to :answers

def initialize(answers:)
@answers = answers
end

def status
return :ineligible if ineligible?

:eligible_now
end

def ineligible?
false
end
end
end
end
139 changes: 139 additions & 0 deletions app/views/early_years_payment/provider/landing_page.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl"><%= t("early_years_payment_provider.landing_page.title") %></h1>

<p class="govuk-body-l">
Use this service to make an early years financial incentive payment claim
for an employee.
</p>

<h2 class="govuk-heading-l govuk-!-margin-top-7">Eligibility</h2>

<p class="govuk-body">
To make a claim for an employee, they must:
</p>

<%= govuk_list [
"have applied for a job with an incentive attached",
"have started their job after 15 May 2024",
"spend most of the time in their job (70% or more) working directly with children - there is no minimum number of hours and applies to all EYFS part and full time roles"
], type: :bullet %>

<p class="govuk-body">
Working directly with children can involve any of the following:
</p>

<%= govuk_list [
"working in the room (for example this can include playrooms, baserooms or classrooms)",
"guiding, supporting, and interacting with children in their learning and development",
"giving hands-on care, including health and hygiene"
], type: :bullet %>

<h3 class="govuk-heading-m">Other conditions for the payment</h3>

<p class="govuk-body">
The purpose of this incentive scheme is to increase the number of people
working with children in permanent roles, within the early years sector.
</p>

<p class="govuk-body">
In the six months before starting their current job, your employee must
not have had a permanent job working directly with children in an early
years setting.
</p>

<p class="govuk-body">
If they did work in early years in the 6 months before starting their
current job, you can claim if this was in the following types of
employment:
</p>

<%= govuk_list [
"voluntary or unpaid work",
"casual and temporary"
], type: :bullet %>

<p class="govuk-body">
Casual or temporary work could include:
</p>

<%= govuk_list [
"zero-hour contracts",
"guaranteed minimum hour contracts",
"self-employed or freelance contracts",
"fixed term contracts (FTCs)",
"agency work and apprenticeship jobs"
], type: :bullet %>

<p class="govuk-body">
You can find more information about employment contracts on the
<%= govuk_link_to("ACAS website", "https://www.acas.org.uk/employment-contracts") %>.
</p>

<p class="govuk-body">
More information can be found in the
<%= govuk_link_to("guidance", "#") %>.
</p>

<h2 class="govuk-heading-l">Information you’ll need to provide</h2>

<p class="govuk-body">
You’ll need to provide some details about your employee to make a claim.
You’ll be doing this on behalf of the company, or organisation, the
employee works for.
</p>

<p class="govuk-body">
You should make sure you have collected their written consent to give us
this information before you start. You can use our
<%= govuk_link_to("consent form", "#") %>
to do this.
</p>

<p class="govuk-body">
You’ll need their:
</p>

<%= govuk_list [
"full name",
"start date",
"email address",
"PAYE reference number"
], type: :bullet %>

<p class="govuk-body">
You must also provide your employee with a privacy notice that explains
what information will be collected, why it is being collected and who it
will be shared with. You can use our
<%= govuk_link_to("privacy notice", "#") %>
for this.
</p>

<p class="govuk-body">
We’ll also ask you to confirm that they meet the eligibility criteria.
</p>

<h3 class="govuk-heading-m">Documents</h3>

<h2 class="govuk-heading-l">Cancel or get help with your claim</h2>

<p class="govuk-body">
If your employee leaves their job before they’ve been in it for 6 months,
you should cancel their claim.
</p>

<p class="govuk-body">
You can cancel a claim or get help on this service by contacting us at
<%= govuk_link_to t("early_years_payment_provider.feedback_email"), "mailto:#{t("early_years_payment_provider.feedback_email")}", no_visited_state: true %>.
</p>

<p class="govuk-body">
Read more about the
<%= govuk_link_to("early years financial incentive payment", "#") %>.
</p>

<% if @journey_open %>
<%= govuk_start_button(text: "Start now", href: "#") %>
<% end %>
</div>
</div>
4 changes: 4 additions & 0 deletions config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,7 @@ shared:
- lower_award_amount
- created_at
- updated_at
:early_years_payment_eligibilities:
- id
- created_at
- updated_at
Loading
Loading