-
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 functionality to submit consent documentsonce they've been signed.
- Loading branch information
1 parent
27526ee
commit 3c54bfa
Showing
10 changed files
with
146 additions
and
4 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
19 changes: 17 additions & 2 deletions
19
app/views/teacher_interface/application_forms/show/_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
18 changes: 18 additions & 0 deletions
18
app/views/teacher_interface/qualification_requests/check.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,18 @@ | ||
<% content_for :page_title, "Check your uploaded consent documents" %> | ||
<% content_for :back_link_url, back_history_path(default: teacher_interface_application_form_qualification_requests_path) %> | ||
|
||
<h1 class="govuk-heading-l">Check your uploaded consent documents</h1> | ||
|
||
<%= render(CheckYourAnswersSummary::Component.new( | ||
id: "check-your-answers", | ||
model: @assessment, | ||
title: t(".check_your_answers"), | ||
fields: @view_object.check_your_answers_fields | ||
)) %> | ||
|
||
<% if @view_object.can_submit? %> | ||
<h2 class="govuk-heading-m">Submit your consent documents</h2> | ||
<p class="govuk-body">By selecting the ‘Submit’ button you confirm that, to the best of your knowledge, the details you’ve provided are correct.</p> | ||
<p class="govuk-body">You will not be able to change your response, add new documents, or delete anything once you submit.</p> | ||
<%= govuk_button_to "Submit", submit_teacher_interface_application_form_qualification_requests_path %> | ||
<% 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
13 changes: 13 additions & 0 deletions
13
spec/support/autoload/page_objects/teacher_interface/check_qualification_requests.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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module PageObjects | ||
module TeacherInterface | ||
class CheckQualificationRequests < SitePrism::Page | ||
set_url "/teacher/application/qualification-requests/check" | ||
|
||
element :heading, "h1" | ||
section :summary_card, GovukSummaryCard, ".govuk-summary-card" | ||
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