Skip to content

Commit

Permalink
link name pulls through competent authority (teaching_authority_name)
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Nov 3, 2023
1 parent 8e949ce commit 194aef3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ def index
@professional_standing_request =
assessment.professional_standing_request if assessment.professional_standing_request.verify_failed?

@region = @assessment.application_form.region

if @region.teaching_authority_name.present?
@teaching_authority_name = @region.teaching_authority_name
else
@teaching_authority_name = "Contact relevant competent authority"
end

render layout: "full_from_desktop"
end

Expand Down
25 changes: 14 additions & 11 deletions app/views/assessor_interface/review_verifications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@
The following verification tasks have been flagged for review:
</p>

<%= govuk_table do |table|
if @professional_standing_request.present?
table.with_caption(text: "LoPS")
table.with_body do |body|
body.with_row do |row|
row.with_cell { govuk_link_to region_certificate_name(@application_form.region), [:review, :assessor_interface, @application_form, @assessment, :professional_standing_request] }
row.with_cell { render(StatusTag::Component.new(@professional_standing_request.review_status)) }
end
end
end
end %>
<%= render(TaskList::Component.new(
[
{
title: "LoPS",
items: [
{
name: @teaching_authority_name,
link: [:review, :assessor_interface, @application_form, @assessment, :professional_standing_request],
status: @professional_standing_request.review_status,
}
],
}
]
)) %>

<div class="govuk-!-padding-top-3">
<%= govuk_button_link_to "Back to overview", [:assessor_interface, @application_form] %>
Expand Down

0 comments on commit 194aef3

Please sign in to comment.