diff --git a/app/views/support/cases/school_details/participating_schools/edit.html.erb b/app/views/support/cases/school_details/participating_schools/edit.html.erb index f9dfb67d2..aaf66fca1 100644 --- a/app/views/support/cases/school_details/participating_schools/edit.html.erb +++ b/app/views/support/cases/school_details/participating_schools/edit.html.erb @@ -1,13 +1,11 @@ <%= turbo_frame_tag "school-details-frame" do %> -
- <%= link_to I18n.t("support.case.label.school_details.participating_schools.edit.back"), @back_url, class: "govuk-back-link pull-up" %> + <%= link_to I18n.t("support.case.label.school_details.participating_schools.edit.back"), @back_url, class: "govuk-back-link pull-up" %> - <%= render "components/school_picker/school_picker", - results_model: @case_school_picker, - filters_model: @filters, - scope: :participating_schools, - update_url: support_case_school_details_participating_schools_path, - filters_url: edit_support_case_school_details_participating_schools_path, - method: :patch %> -
+ <%= render "components/school_picker/school_picker", + results_model: @case_school_picker, + filters_model: @filters, + scope: :participating_schools, + update_url: support_case_school_details_participating_schools_path, + filters_url: edit_support_case_school_details_participating_schools_path, + method: :patch %> <% end %> diff --git a/app/views/support/cases/school_details/participating_schools/show.html.erb b/app/views/support/cases/school_details/participating_schools/show.html.erb index 8fea7e746..1061ddf93 100644 --- a/app/views/support/cases/school_details/participating_schools/show.html.erb +++ b/app/views/support/cases/school_details/participating_schools/show.html.erb @@ -1,29 +1,27 @@ <%= turbo_frame_tag "school-details-frame" do %> -
- <%= link_to I18n.t("support.case.label.school_details.back"), @back_url, class: "govuk-back-link pull-up" %> -

- <%= I18n.t("support.case.label.participating_schools") %> - <%= link_to I18n.t("support.case.link.change"), edit_support_case_school_details_participating_schools_path, class: "govuk-link govuk-link--no-visited-state" %> -

+ <%= link_to I18n.t("support.case.label.school_details.back"), @back_url, class: "govuk-back-link pull-up" %> +

+ <%= I18n.t("support.case.label.participating_schools") %> - <%= link_to I18n.t("support.case.link.change"), edit_support_case_school_details_participating_schools_path, class: "govuk-link govuk-link--no-visited-state" %> +

- - +
+ + + + + + + + + + <% @participating_schools.each do |school| %> - - - - + + + + - - - <% @participating_schools.each do |school| %> - - - - - - - <% end %> - -
<%= I18n.t("support.case.label.school_details.participating_schools.table.school_name") %><%= I18n.t("support.case.label.school_details.participating_schools.table.address") %><%= I18n.t("support.case.label.school_details.participating_schools.table.phase") %><%= I18n.t("support.case.label.school_details.participating_schools.table.local_authority") %>
<%= I18n.t("support.case.label.school_details.participating_schools.table.school_name") %><%= I18n.t("support.case.label.school_details.participating_schools.table.address") %><%= I18n.t("support.case.label.school_details.participating_schools.table.phase") %><%= I18n.t("support.case.label.school_details.participating_schools.table.local_authority") %><%= school.name %><%= school.formatted_address %><%= school.phase %><%= school.local_authority %>
<%= school.name %><%= school.formatted_address %><%= school.phase %><%= school.local_authority %>
-
+ <% end %> + + <% end %> diff --git a/app/views/support/cases/school_details/show.html.erb b/app/views/support/cases/school_details/show.html.erb index 7144cb2fc..8edc8d9ab 100644 --- a/app/views/support/cases/school_details/show.html.erb +++ b/app/views/support/cases/school_details/show.html.erb @@ -1,114 +1,112 @@ <%= turbo_frame_tag "school-details-frame" do %> -
-

- <%= I18n.t("support.case.header.school_detail") %> -

+

+ <%= I18n.t("support.case.header.school_detail") %> +

-
-
-
- <%= I18n.t("support.case.label.contact_name") %> -
-
- <%= @current_case.full_name %> -
-
- <% unless @current_case.closed? %> - <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> - <% end %> -
-
+
+
+
+ <%= I18n.t("support.case.label.contact_name") %> +
+
+ <%= @current_case.full_name %> +
+
+ <% unless @current_case.closed? %> + <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> + <% end %> +
+
-
-
- <%= I18n.t("support.case.label.contact_phone") %> -
-
- <%= @current_case.phone_number %> -
-
- <% unless @current_case.closed? %> - <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> - <% end %> -
-
+
+
+ <%= I18n.t("support.case.label.contact_phone") %> +
+
+ <%= @current_case.phone_number %> +
+
+ <% unless @current_case.closed? %> + <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> + <% end %> +
+
-
-
- <%= I18n.t("support.case.label.contact_extension_number") %> -
-
- <%= @current_case.extension_number %> -
-
- <% unless @current_case.closed? %> - <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> - <% end %> -
-
+
+
+ <%= I18n.t("support.case.label.contact_extension_number") %> +
+
+ <%= @current_case.extension_number %> +
+
+ <% unless @current_case.closed? %> + <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> + <% end %> +
+
-
-
- <%= I18n.t("support.case.label.contact_email") %> -
-
- <%= @current_case.email %> -
-
- <% unless @current_case.closed? %> - <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> - <% end %> -
-
+
+
+ <%= I18n.t("support.case.label.contact_email") %> +
+
+ <%= @current_case.email %> +
+
+ <% unless @current_case.closed? %> + <%= link_to "Change", edit_support_case_contact_details_path(@current_case), class: "govuk-link", target: "_top" %> + <% end %> +
+
-
-
- <%= I18n.t("support.case.label.organisation_name") %> -
-
- <%= @current_case.organisation_name if @current_case.organisation.present? %> -
-
- <% unless @current_case.closed? %> - <%= link_to @current_case.organisation.present? ? "Change" : "Add", - edit_support_case_organisation_path(@current_case), class: "govuk-link", target: "_top" %> - <% end %> -
-
+
+
+ <%= I18n.t("support.case.label.organisation_name") %> +
+
+ <%= @current_case.organisation_name if @current_case.organisation.present? %> +
+
+ <% unless @current_case.closed? %> + <%= link_to @current_case.organisation.present? ? "Change" : "Add", + edit_support_case_organisation_path(@current_case), class: "govuk-link", target: "_top" %> + <% end %> +
+
+ +
+
+ <%= I18n.t("support.case.label.organisation_type") %> +
+
+ <%= @current_case.organisation_type_name %> +
+
+
+
+ <% if @current_case.eligible_for_school_picker? %>
- <%= I18n.t("support.case.label.organisation_type") %> + <%= I18n.t("support.case.label.participating_schools") %>
- <%= @current_case.organisation_type_name %> + <%= @current_case.participating_schools.count %>
+ <%= link_to I18n.t("support.generic.view"), support_case_school_details_participating_schools_path(@current_case), class: "govuk-link" %>
- - <% if @current_case.eligible_for_school_picker? %> -
-
- <%= I18n.t("support.case.label.participating_schools") %> -
-
- <%= @current_case.participating_schools.count %> -
-
- <%= link_to I18n.t("support.generic.view"), support_case_school_details_participating_schools_path(@current_case), class: "govuk-link" %> -
-
- <% end %> -
- - <% if @current_case.organisation.present? %> -

- <%= link_to @current_case.organisation_gias_label, - @current_case.organisation_gias_url, - class: "govuk-link", target: "_blank", rel: "noreferrer noopener" - %> -

<% end %> -
+ + + <% if @current_case.organisation.present? %> +

+ <%= link_to @current_case.organisation_gias_label, + @current_case.organisation_gias_url, + class: "govuk-link", target: "_blank", rel: "noreferrer noopener" + %> +

+ <% end %> <% end %> diff --git a/app/views/support/cases/show/_school_details.html.erb b/app/views/support/cases/show/_school_details.html.erb index 0d103edbc..a5367841c 100644 --- a/app/views/support/cases/show/_school_details.html.erb +++ b/app/views/support/cases/show/_school_details.html.erb @@ -1,5 +1,5 @@ -<%= turbo_frame_tag "school-details-frame", src: support_case_school_details_path(@current_case) do %> -
+
+ <%= turbo_frame_tag "school-details-frame", src: support_case_school_details_path(@current_case) do %>

Loading...

-
-<% end %> + <% end %> +