-
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
70530e1
commit 85b633a
Showing
10 changed files
with
148 additions
and
13 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
23 changes: 23 additions & 0 deletions
23
...ews/assessor_interface/qualification_requests/edit_send_signed_consent_documents.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,23 @@ | ||
<% consent_requests = @qualification_requests.consent_method_signed %> | ||
|
||
<% 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 |qualification_request| %> | ||
<li><%= qualification_title(qualification_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", [:send_signed_consent_documents, :assessor_interface, @application_form, @assessment, :qualification_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
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}" \ | ||
"/qualification-requests/send-signed-consent-documents" | ||
|
||
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