-
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.
We want to prevent providers from submitting mulitple verifications. We've had to move the `Authorisation` concern so it runs before the form callback stuff such that the answers haven't yet been updated when we check if the claim has been verified on POST.
- Loading branch information
Showing
10 changed files
with
166 additions
and
2 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
21 changes: 21 additions & 0 deletions
21
app/views/further_education_payments/provider/claims/_unauthorised_already_verified.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,21 @@ | ||
<h1 class="govuk-heading-xl"> | ||
This claim has already been verified | ||
</h1> | ||
|
||
<p class="govuk-body govuk-!-margin-top-6"> | ||
Email <%= govuk_mail_to("[email protected]") %> | ||
if you need to: | ||
</p> | ||
|
||
<%= govuk_list( | ||
[ | ||
"view the verification form", | ||
"make changes to the details provided in the verification form" | ||
], | ||
type: :bullet | ||
) %> | ||
|
||
<p class="govuk-body govuk-!-margin-top-6"> | ||
Make sure you include the claim reference number in your email so we can find | ||
the claim and process any changes promptly. | ||
</p> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,45 @@ | |
|
||
trait :eligible do | ||
end | ||
|
||
trait :verified do | ||
verification do | ||
{ | ||
"assertions" => [ | ||
{ | ||
"name" => "contract_type", | ||
"outcome" => true | ||
}, | ||
{ | ||
"name" => "teaching_responsibilities", | ||
"outcome" => true | ||
}, | ||
{ | ||
"name" => "further_education_teaching_start_year", | ||
"outcome" => true | ||
}, | ||
{ | ||
"name" => "teaching_hours_per_week", | ||
"outcome" => true | ||
}, | ||
{ | ||
"name" => "hours_teaching_eligible_subjects", | ||
"outcome" => false | ||
}, | ||
{ | ||
"name" => "subjects_taught", | ||
"outcome" => false | ||
} | ||
], | ||
"verifier" => { | ||
"dfe_sign_in_uid" => "123", | ||
"first_name" => "Seymoure", | ||
"last_name" => "Skinner", | ||
"email" => "[email protected]" | ||
}, | ||
"created_at" => "2024-01-01T12:00:00.000+00:00" | ||
} | ||
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
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