-
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 verification requests summary page
This adds a new page which summarises everything that is going to be requested for verification.
- Loading branch information
1 parent
4290593
commit 1853827
Showing
6 changed files
with
92 additions
and
0 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
56 changes: 56 additions & 0 deletions
56
app/views/assessor_interface/assessment_recommendation_verify/edit.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,56 @@ | ||
<% content_for :page_title, t(".heading") %> | ||
<% content_for :back_link_url, assessor_interface_application_form_path(@application_form) %> | ||
|
||
<h1 class="govuk-heading-xl"><%= t(".heading") %></h1> | ||
|
||
<p class="govuk-body">You have selected the following items for verification:</p> | ||
|
||
<%= govuk_summary_list do |summary_list| %> | ||
<% if @professional_standing %> | ||
<%= summary_list.with_row do |row| | ||
row.with_key { "LoPS" } | ||
row.with_value { region_teaching_authority_name(@application_form.region).upcase_first } | ||
row.with_action(text: "Change", href: [:professional_standing, :assessor_interface, @application_form, @assessment, :assessment_recommendation_verify], visually_hidden_text: "LoPS") | ||
end %> | ||
<% end %> | ||
|
||
<% if @qualifications.present? %> | ||
<%= summary_list.with_row do |row| | ||
row.with_key { "Qualifications" } | ||
row.with_value do %> | ||
<ul class="govuk-list govuk-list--bullet"> | ||
<% @qualifications.each do |qualification| %> | ||
<li><%= qualification_title(qualification) %></li> | ||
<% end %> | ||
</ul><% | ||
end | ||
row.with_action(text: "Change", href: [:verify_qualifications, :assessor_interface, @application_form, @assessment, :assessment_recommendation_verify], visually_hidden_text: "LoPS") | ||
end %> | ||
<% end %> | ||
|
||
<% if @work_histories.present? %> | ||
<%= summary_list.with_row do |row| | ||
row.with_key { "References" } | ||
row.with_value do %> | ||
<ul class="govuk-list govuk-list--bullet"> | ||
<% @work_histories.each do |work_history| %> | ||
<li><%= work_history_name(work_history) %></li> | ||
<% end %> | ||
</ul><% | ||
end | ||
row.with_action(text: "Change", href: [:reference_requests, :assessor_interface, @application_form, @assessment, :assessment_recommendation_verify], visually_hidden_text: "LoPS") | ||
end %> | ||
<% end %> | ||
<% end %> | ||
|
||
<h2 class="govuk-heading-m">Submit your verification requests</h2> | ||
|
||
<p class="govuk-body">Select submit to:</p> | ||
|
||
<ul class="govuk-list govuk-list--bullet"> | ||
<li>email reference requests to the referee</li> | ||
<li>email the applicant to let them know you have requested references</li> | ||
<li>move this application into verification</li> | ||
</ul> | ||
|
||
<%= govuk_button_to "Submit", [:assessor_interface, @application_form, @assessment, :assessment_recommendation_verify], method: :put %> |
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/assessment_recommendation_verify.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 AssessmentRecommendationVerify < SitePrism::Page | ||
set_url "/assessor/applications/{reference}/assessments/{assessment_id}" \ | ||
"/recommendation/verify/edit" | ||
|
||
element :submit_button, ".govuk-button" | ||
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