-
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.
There's a couple of states this partial can be in * Verification email not sent to the provider - When the claim was flagged as a duplicate so we didn't send the email on claimant journey completion AND and admin is yet to manually send the verification email by clicking the button * Initial verification email sent to the provider - The claim was not flagged as a duplicate so the initial email was sent when the claimant journey was completed * Email sent by the admin - The claim was flagged as a duplicate but an admin has now clicked the send email button To make the view a bit less confussing we've pulled out a partial for the provider verification completed and uncompleted states.
- Loading branch information
Showing
5 changed files
with
284 additions
and
119 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
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> |
34 changes: 34 additions & 0 deletions
34
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,34 @@ | ||
<% if @tasks_presenter.provider_verification.verification_email_sent? %> | ||
<% if @tasks_presenter.provider_verification.verification_email_sent_by_admin_team? %> | ||
<% verification_email = @tasks_presenter.provider_verification.latest_admin_sent_email %> | ||
<div class="govuk-inset-text"> | ||
<p> | ||
The verification request was sent to the provider by | ||
<%= user_details(verification_email.created_by) %> on <%= l(verification_email.created_at) %> | ||
</p> | ||
</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.