From 1b6b4832ed6524fd001f7cfabec3fe2c75d69f58 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Fri, 27 Mar 2026 13:35:17 +0100 Subject: [PATCH 1/5] Address HTML markup issues reported by Herb --- app/views/casa_cases/_court_dates.html.erb | 4 +- app/views/casa_cases/show.html.erb | 28 +++++++------- app/views/casa_org/_languages.html.erb | 1 + .../_confirm_note_content_dialog.html.erb | 4 +- app/views/devise/invitations/edit.html.erb | 2 +- app/views/devise/sessions/new.html.erb | 4 +- app/views/emancipations/show.html.erb | 37 ++++++++++--------- app/views/imports/_cases.html.erb | 2 +- app/views/imports/_sms_opt_in_modal.html.erb | 2 +- app/views/imports/_supervisors.html.erb | 2 +- app/views/imports/_volunteers.html.erb | 2 +- .../layouts/_all_casa_admin_sidebar.html.erb | 1 - .../learning_hours/_confirm_note.html.erb | 4 +- app/views/other_duties/index.html.erb | 1 + app/views/shared/_manage_volunteers.html.erb | 2 +- app/views/supervisors/_manage_active.html.erb | 2 +- app/views/supervisors/index.html.erb | 2 +- app/views/users/edit.html.erb | 2 +- app/views/volunteers/index.html.erb | 4 +- public/404.html | 2 +- public/500.html | 2 +- 21 files changed, 55 insertions(+), 55 deletions(-) diff --git a/app/views/casa_cases/_court_dates.html.erb b/app/views/casa_cases/_court_dates.html.erb index 23b10075f4..759cc25fda 100644 --- a/app/views/casa_cases/_court_dates.html.erb +++ b/app/views/casa_cases/_court_dates.html.erb @@ -5,7 +5,7 @@ <% else %> <% end %> diff --git a/app/views/casa_cases/show.html.erb b/app/views/casa_cases/show.html.erb index 74d4892ed7..e69cdb3864 100644 --- a/app/views/casa_cases/show.html.erb +++ b/app/views/casa_cases/show.html.erb @@ -37,24 +37,24 @@ <% if !@casa_case.active %> <%= render "inactive_case", casa_case: @casa_case %> <% end %> -

+

Case number: <%= @casa_case.case_number %> <%= volunteer_badge(@casa_case, current_user) %>
-

+
<% if @casa_case.hearing_type %> -

+

Hearing Type: <%= @casa_case.hearing_type_name %>
-

+
<% end %> <% if @casa_case.has_judge_name? %> -

+

Judge: <%= @casa_case.judge_name %>
-

+
<% end %> -

+

Transition Aged Youth: <%= @casa_case.decorate.transition_aged_youth %>
-

+
@@ -64,7 +64,7 @@ <%= @casa_case.decorate.duration_in_care %>
-

+

Next Court Date: <%= I18n.l(@casa_case.next_court_date&.date, format: :day_and_date, default: '') %> @@ -73,22 +73,22 @@ tooltip: "Add Next Court Date to Calendar", title: "Next Court Date for [#{@casa_case.case_number}]" %>
-

-

+

+
Court Report Status: <%= @casa_case.decorate.court_report_submission %>
-

+
<% unless @casa_case.court_report_not_submitted? %> <% if @casa_case.court_report_submitted? && @casa_case.court_reports.attached? %> <%= link_to('Click to download', rails_blob_path(@casa_case.latest_court_report, disposition: 'attachment')) %> <% end %> -

+

Court Report Submitted Date: <%= @casa_case.decorate.court_report_submitted_date %>
-

+
<% end %> <% if @casa_case.case_court_orders.exists? %>
Court Orders:
diff --git a/app/views/casa_org/_languages.html.erb b/app/views/casa_org/_languages.html.erb index f76c8affa0..705de0b204 100644 --- a/app/views/casa_org/_languages.html.erb +++ b/app/views/casa_org/_languages.html.erb @@ -45,3 +45,4 @@ + diff --git a/app/views/case_contacts/_confirm_note_content_dialog.html.erb b/app/views/case_contacts/_confirm_note_content_dialog.html.erb index f3e7214def..894e9ab0ef 100644 --- a/app/views/case_contacts/_confirm_note_content_dialog.html.erb +++ b/app/views/case_contacts/_confirm_note_content_dialog.html.erb @@ -6,10 +6,10 @@ <% end %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 4b62a5c109..9e2e3ffaf9 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -66,6 +66,8 @@ ) do %> Log In <% end %> + + <% end %>
@@ -73,8 +75,6 @@
-
- diff --git a/app/views/emancipations/show.html.erb b/app/views/emancipations/show.html.erb index 090d7f2b13..5c609970c8 100644 --- a/app/views/emancipations/show.html.erb +++ b/app/views/emancipations/show.html.erb @@ -18,11 +18,12 @@ <% @emancipation_form_data.each do |category| %>
">
- > + <%= input_tag( + type: "checkbox", + class: "emancipation-category-check-box form-check-input", + value: category.id, + disabled: emancipation_category_checkbox_checked(@current_case, category)) %> +
<%= category.name %>
<% if category.emancipation_options.count > 0 %> @@ -33,20 +34,20 @@ <% category.emancipation_options.each do |option| %>
<% if category.mutually_exclusive %> - > + <%= input_tag( + type: "radio", + id: "O#{option.id}", + class: "emancipation-radio-button", + name: "C#{category.id}", + value: option.id, + disabled: emancipation_category_checkbox_checked(@current_case, option)) %> <% else %> - > + <%= input_tag( + type: "checkbox", + id: "O#{option.id}", + class: "emancipation-option-check-box", + value: option.id, + disabled: emancipation_option_checkbox_checked(@current_case, option)) %> <% end %>
diff --git a/app/views/imports/_cases.html.erb b/app/views/imports/_cases.html.erb index f4ba0a6b1c..09ea55ba4c 100644 --- a/app/views/imports/_cases.html.erb +++ b/app/views/imports/_cases.html.erb @@ -26,7 +26,6 @@ class: 'form-control mt-4', type: 'file', style: "margin: auto;" %> - <%= button_tag id: "case-import-button", class: "main-btn primary-btn btn-hover pull-right", disabled: true, data: {disable_with: " Importing File"} do %> @@ -39,3 +38,4 @@ }) <% end %> + diff --git a/app/views/imports/_sms_opt_in_modal.html.erb b/app/views/imports/_sms_opt_in_modal.html.erb index 1f8cdabfa6..20263345aa 100644 --- a/app/views/imports/_sms_opt_in_modal.html.erb +++ b/app/views/imports/_sms_opt_in_modal.html.erb @@ -17,7 +17,7 @@ <%= form.label :sms_opt_in_label, "Opt into SMS notifications", { class: "form-check-label"} %> <%= form.check_box :sms_opt_in, { id: "sms-opt-in-checkbox", class: "form-check-input" } %> - + <%= render "sms_opt_in_modal", { form: f } if @sms_opt_in_warning == "supervisor" %> <%= button_tag id: "supervisor-import-button", class: "main-btn primary-btn btn-hover pull-right", @@ -34,3 +33,4 @@ Import Supervisors CSV <% end %> <% end %> + diff --git a/app/views/imports/_volunteers.html.erb b/app/views/imports/_volunteers.html.erb index 75643d452b..110dbb86bf 100644 --- a/app/views/imports/_volunteers.html.erb +++ b/app/views/imports/_volunteers.html.erb @@ -27,7 +27,6 @@ class: 'form-control mt-4', type: 'file', style: "margin: auto;" %> - <%= render "sms_opt_in_modal", { form: f } if @sms_opt_in_warning == "volunteer" %> <%= button_tag id: "volunteer-import-button", class: "main-btn primary-btn btn-hover pull-right", @@ -35,3 +34,4 @@ Import Volunteers CSV <% end %> <% end %> + diff --git a/app/views/layouts/_all_casa_admin_sidebar.html.erb b/app/views/layouts/_all_casa_admin_sidebar.html.erb index 1c6ebebd9e..733fabdf5f 100644 --- a/app/views/layouts/_all_casa_admin_sidebar.html.erb +++ b/app/views/layouts/_all_casa_admin_sidebar.html.erb @@ -15,7 +15,6 @@ Patch Notes <% end %> -