-
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 #3144 from DFE-Digital/fe-admin-claims
FE admin claims
- Loading branch information
Showing
12 changed files
with
78 additions
and
8 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
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
13 changes: 13 additions & 0 deletions
13
app/models/policies/further_education_payments/admin_tasks_presenter.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,13 @@ | ||
module Policies | ||
module FurtherEducationPayments | ||
class AdminTasksPresenter | ||
include Admin::PresenterMethods | ||
|
||
attr_reader :claim | ||
|
||
def initialize(claim) | ||
@claim = claim | ||
end | ||
end | ||
end | ||
end |
2 changes: 2 additions & 0 deletions
2
app/models/policies/further_education_payments/eligibility.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
28 changes: 28 additions & 0 deletions
28
app/models/policies/further_education_payments/eligibility_admin_answers_presenter.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,28 @@ | ||
module Policies | ||
module FurtherEducationPayments | ||
class EligibilityAdminAnswersPresenter | ||
include Admin::PresenterMethods | ||
|
||
attr_reader :eligibility | ||
|
||
def initialize(eligibility) | ||
@eligibility = eligibility | ||
end | ||
|
||
def answers | ||
[].tap do |a| | ||
a << current_school | ||
end | ||
end | ||
|
||
private | ||
|
||
def current_school | ||
[ | ||
translate("admin.current_school"), | ||
display_school(eligibility.current_school) | ||
] | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -827,6 +827,12 @@ en: | |
feedback_email: "[email protected]" | ||
support_email_address: "[email protected]" | ||
claim_subject: "Further education payment" | ||
policy_acronym: FE | ||
policy_short_name: Targeted Retention Incentive Payment For FE Teachers | ||
admin: | ||
task_questions: | ||
matching_details: | ||
title: Is this claim still valid despite having matching details with other claims? | ||
forms: | ||
ineligible: | ||
courses: | ||
|
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
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