-
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 #3167 from DFE-Digital/LUPEYALPHA-356/provider-ver…
…ification-email Record who sent the email to the provider
- Loading branch information
Showing
7 changed files
with
301 additions
and
106 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
38 changes: 38 additions & 0 deletions
38
app/views/admin/tasks/_provider_verification_submitted.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,38 @@ | ||
<p class="govuk-body"> | ||
This task was verified by the provider | ||
(<%= @tasks_presenter.provider_name %>). | ||
</p> | ||
|
||
<table class="govuk-table govuk-!-margin-bottom-9"> | ||
<caption class="govuk-table__caption govuk-visually-hidden"> | ||
<%= @current_task_name.humanize %> | ||
</caption> | ||
<thead> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header"> | ||
Eligibility check | ||
</th> | ||
<th scope="col" class="govuk-table__header"> | ||
Claimant submitted | ||
</th> | ||
<th scope="col" class="govuk-table__header"> | ||
Provider response | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody class="govuk-table__body"> | ||
<% @tasks_presenter.provider_verification.rows.each do |row| %> | ||
<tr class="govuk-table__row govuk-!-width-one-quarter"> | ||
<th scope="row" class="govuk-table__header"> | ||
<%= row.label %> | ||
</th> | ||
<td class="govuk-table__cell govuk-!-width-one-half"> | ||
<%= Array.wrap(row.claimant_answer).join("<br><br>").html_safe %> | ||
</td> | ||
<td class="govuk-table__cell govuk-!-width-one-quarter"> | ||
<%= row.provider_answer %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> |
35 changes: 35 additions & 0 deletions
35
app/views/admin/tasks/_provider_verification_unsubmitted.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,35 @@ | ||
<% if @tasks_presenter.provider_verification.verification_email_sent? %> | ||
<% if @tasks_presenter.provider_verification.verification_email_sent_by_admin_team? %> | ||
<div class="govuk-inset-text"> | ||
<% @tasks_presenter.provider_verification.admin_sent_emails.each do |verification_email| %> | ||
<p> | ||
The verification request was sent to the provider by | ||
<%= user_details(verification_email.created_by) %> on <%= l(verification_email.created_at) %> | ||
</p> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
|
||
<%= govuk_button_to( | ||
"Resend provider verification request", | ||
admin_claim_further_education_payments_provider_verification_emails_path(@claim), | ||
class: "govuk-!-margin-bottom-0" | ||
) %> | ||
<% else %> | ||
<p class="govuk-body"> | ||
This task has not been sent to the provider yet. | ||
</p> | ||
|
||
<div class="govuk-inset-text"> | ||
<p> | ||
You need to check the matching details and confirm if this is a | ||
duplicate claim. If it isn't a duplicate claim, send the verification | ||
request to the provider. | ||
</p> | ||
<%= govuk_button_to( | ||
"Send provider verification request", | ||
admin_claim_further_education_payments_provider_verification_emails_path(@claim), | ||
class: "govuk-!-margin-bottom-0" | ||
) %> | ||
</div> | ||
<% 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
Oops, something went wrong.