|
5 | 5 |
|
6 | 6 | <% content_for :page_title, title_with_error_prefix(t(".title.#{preliminary_key}.#{section_key}"), error: @form.errors.any?) %>
|
7 | 7 | <% content_for :back_link_url, assessor_interface_application_form_path(@application_form) %>
|
8 |
| -<% content_for(:assessment_section_top_of_form) do %> |
9 |
| - <%= render "linked_application_forms", |
10 |
| - application_forms_contact_email_used_as_teacher: @view_object.work_history_application_forms_contact_email_used_as_teacher, |
11 |
| - application_forms_contact_email_used_as_reference: @view_object.work_history_application_forms_contact_email_used_as_reference %> |
12 | 8 |
|
13 |
| - <%= render "shared/assessor_header", |
| 9 | +<%= render "linked_application_forms", |
| 10 | + application_forms_contact_email_used_as_teacher: @view_object.work_history_application_forms_contact_email_used_as_teacher, |
| 11 | + application_forms_contact_email_used_as_reference: @view_object.work_history_application_forms_contact_email_used_as_reference %> |
| 12 | + |
| 13 | +<%= render "shared/assessor_header", |
14 | 14 | title: t(".title.#{preliminary_key}.#{section_key}"),
|
15 | 15 | application_form: @view_object.application_form %>
|
16 | 16 |
|
17 |
| - <% if @view_object.show_teacher_name_and_date_of_birth? %> |
18 |
| - <h2 class="govuk-heading-m"><%= @view_object.teacher_name_and_date_of_birth %></h2> |
19 |
| - <% end %> |
| 17 | +<% if @view_object.show_teacher_name_and_date_of_birth? %> |
| 18 | + <h2 class="govuk-heading-m"><%= @view_object.teacher_name_and_date_of_birth %></h2> |
| 19 | +<% end %> |
20 | 20 |
|
21 |
| - <%= render "#{section_key}_summary", |
| 21 | +<%= render "#{section_key}_summary", |
22 | 22 | region: @view_object.region,
|
23 | 23 | application_form: @view_object.application_form,
|
24 | 24 | assessment: @view_object.assessment,
|
25 | 25 | assessment_section: @view_object.assessment_section,
|
26 | 26 | highlighted_work_history_contact_emails: @view_object.highlighted_work_history_contact_emails %>
|
27 |
| -<% end %> |
28 | 27 |
|
29 | 28 | <% if @view_object.show_form? %>
|
30 | 29 | <%= render "form", form: @form, view_object: @view_object %>
|
31 |
| -<% elsif @view_object.show_english_language_exemption_content? %> |
| 30 | +<% else @view_object.show_english_language_exemption_content? %> |
32 | 31 | <%= render "english_language_exemption_content", application_form: @view_object.application_form %>
|
33 |
| -<% else %> |
34 |
| - <%= yield :assessment_section_top_of_form %> |
35 | 32 | <% end %>
|
0 commit comments