-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add send consent document to applicant page
This adds a page which allows the assessor to send the uploaded consent documents to the applicant.
- Loading branch information
1 parent
e816ddb
commit 0f7c85e
Showing
12 changed files
with
162 additions
and
30 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/assessor_interface/consent_requests/edit_request.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 @@ | ||
<% title = "Send consent #{"document".pluralize(@consent_requests.count)} to applicant" %> | ||
|
||
<% content_for :page_title, title %> | ||
<% content_for :back_link_url, back_history_path(default: assessor_interface_application_form_assessment_qualification_requests_path) %> | ||
|
||
<h1 class="govuk-heading-l"><%= title %></h1> | ||
|
||
<p class="govuk-body">You need to request a signature for the uploaded consent documents for:</p> | ||
|
||
<ul class="govuk-list govuk-list--bullet"> | ||
<% @consent_requests.each do |consent_request| %> | ||
<li><%= qualification_title(consent_request.qualification) %></li> | ||
<% end %> | ||
</ul> | ||
|
||
<p class="govuk-body">Select ‘Continue’ to automatically send an email and the uploaded consent document to the applicant.</p> | ||
|
||
<div class="govuk-button-group"> | ||
<%= govuk_button_to "Continue", [:request, :assessor_interface, @application_form, @assessment, :consent_requests] %> | ||
<%= render "shared/assessor_interface/cancel_link" %> | ||
</div> |
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
12 changes: 12 additions & 0 deletions
12
spec/support/autoload/page_objects/assessor_interface/send_signed_consent_documents.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,12 @@ | ||
# frozen_string_literal: true | ||
|
||
module PageObjects | ||
module AssessorInterface | ||
class SendSignedConsentDocuments < SitePrism::Page | ||
set_url "/assessor/applications/{reference}/assessments/{assessment_id}" \ | ||
"/consent-requests/request" | ||
|
||
element :continue_button, ".govuk-button:not(.govuk-button--secondary)" | ||
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