-
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 replaces the existing view which admins use with the newer LoPS response page.
- Loading branch information
1 parent
5d44cd1
commit bdea967
Showing
4 changed files
with
31 additions
and
35 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
27 changes: 9 additions & 18 deletions
27
app/views/assessor_interface/professional_standing_requests/edit_verify.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 |
---|---|---|
@@ -1,28 +1,19 @@ | ||
<% title = region_certificate_name(@application_form.region) %> | ||
|
||
<% content_for :page_title, "#{"Error: " if @form.errors.any?}#{title}" %> | ||
<% content_for :page_title, "#{"Error: " if @form.errors.any?}Record LoPS response" %> | ||
<% content_for :back_link_url, assessor_interface_application_form_path(@application_form) %> | ||
|
||
<%= form_with model: @form, url: [:verify, :assessor_interface, @application_form, @assessment, :professional_standing_request] do |f| %> | ||
<%= f.govuk_error_summary %> | ||
|
||
<h1 class="govuk-heading-xl"><%= title %></h1> | ||
|
||
<% if (location_note = @professional_standing_request.location_note).present? %> | ||
<h2 class="govuk-heading-m">How to find the response</h2> | ||
<%= govuk_inset_text { simple_format location_note } %> | ||
<% end %> | ||
<h1 class="govuk-heading-xl">Record LoPS response</h1> | ||
|
||
<% if @professional_standing_request.received? || @professional_standing_request.expired? || @professional_standing_request.ready_for_review %> | ||
<%= f.govuk_radio_buttons_fieldset :passed, legend: { text: t(".passed"), size: "s" } do %> | ||
<%= f.govuk_radio_button :passed, :true, link_errors: true %> | ||
<%= f.govuk_radio_button :passed, :false do %> | ||
<%= f.govuk_text_area :note, label: { text: t(".failure_assessor_note").html_safe } %> | ||
<% end %> | ||
<%= f.govuk_radio_buttons_fieldset :passed, legend: { text: "Does the response confirm that the LoPS is valid?" } do %> | ||
<%= f.govuk_radio_button :passed, :true, label: { text: "Yes, mark as completed" }, link_errors: true %> | ||
<%= f.govuk_radio_button :passed, :false, label: { text: "No, send for review" } do %> | ||
<%= f.govuk_text_area :note, label: { text: "Internal note: briefly explain to the assessor why you are sending this LoPS for review." } %> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= f.govuk_submit "Save and continue" do %> | ||
<%= govuk_link_to "Cancel", [:assessor_interface, @application_form] %> | ||
<% end %> | ||
<%= f.govuk_submit do %> | ||
<%= govuk_link_to "Cancel", [:assessor_interface, @application_form] %> | ||
<% 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