-
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.
This adds the final page of the consent flow allowing assessors to submit the consent and send emails.
- Loading branch information
1 parent
f69de51
commit df91dc1
Showing
8 changed files
with
126 additions
and
7 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
40 changes: 40 additions & 0 deletions
40
app/views/assessor_interface/qualification_requests/check_consent_methods.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,40 @@ | ||
<% title = "Consent methods selected" %> | ||
|
||
<% 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> | ||
|
||
<dl class="govuk-summary-list"> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key"> | ||
Qualification | ||
</dt> | ||
|
||
<dt class="govuk-summary-list__key"> | ||
Consent method | ||
</dt> | ||
|
||
<dd class="govuk-summary-list__actions"></dd> | ||
</div> | ||
|
||
<% @qualification_requests.each do |qualification_request| %> | ||
<div class="govuk-summary-list__row"> | ||
<dd class="govuk-summary-list__value"> | ||
<%= qualification_title(qualification_request.qualification) %> | ||
</dd> | ||
<dd class="govuk-summary-list__value"> | ||
<%= t(qualification_request.consent_method, scope: %i[helpers label assessor_interface_consent_method_form consent_method_options]) %> | ||
</dd> | ||
<dd class="govuk-summary-list__actions" style="vertical-align: middle;"> | ||
<a class="govuk-link" href="<%= consent_method_assessor_interface_application_form_assessment_qualification_request_path(@application_form, @assessment, qualification_request) %>"> | ||
Change<span class="govuk-visually-hidden"> name</span> | ||
</a> | ||
</dd> | ||
</div> | ||
<% end %> | ||
</dl> | ||
|
||
<%= form_with model: @form, url: [:submit_consent_methods, :assessor_interface, @application_form, @assessment, :qualification_requests] do |f| %> | ||
<%= render "shared/assessor_interface/continue_cancel_button", f: %> | ||
<% 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
12 changes: 12 additions & 0 deletions
12
.../autoload/page_objects/assessor_interface/qualification_requests_check_consent_methods.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 QualificationRequestsCheckConsentMethods < SitePrism::Page | ||
set_url "/assessor/applications/{reference}/assessments/{assessment_id}" \ | ||
"/qualification-requests/check-consent-methods" | ||
|
||
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