Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions app/views/all_casa_admins/patch_notes/_patch_note.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
<label for="patch-note-<%= patch_note.id %>-type">Patch Note Type:</label>
<select id="patch-note-<%= patch_note.id %>-type" disabled="true">
<% @patch_note_types&.each do |patch_note_type| %>
<% if patch_note_type.id === patch_note.patch_note_type_id %>
<option value="<%= patch_note_type.id %>" selected="selected">
<% else %>
<option value="<%= patch_note_type.id %>">
<% end %>
<%= patch_note_type.name %>
</option>
<option value="<%= patch_note_type.id %>" <% if patch_note_type.id === patch_note.patch_note_type_id %> selected="selected" <% end %>>
<%= patch_note_type.name %>
</option>
<% end %>
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/casa_admins/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<tbody>
<% @admins.each do |admin| %>
<tr id="admin-<%= admin.id %>" class="">
<tr id="admin-<%= admin.id %>">
<td scope="row" class="min-wdth">
<span class="ml-10 mb-10 mt-10 pb-1"><%= admin.email %></span>
<% unless admin.active? %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/casa_cases/_calendar_button.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- Button code -->
<% if date.present? %>
<%= tag.div class: "cal-btn", id: id, data: { title: title, start: date[:start], end: date[:end], tooltip: tooltip } do %>
<% end %>
<%= tag.div class: "cal-btn", id: id, data: { title: title, start: date[:start], end: date[:end], tooltip: tooltip } %>
<% end %>
4 changes: 2 additions & 2 deletions app/views/casa_cases/_court_dates.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<% else %>
<ul>
<% court_dates.each do |pcd| %>
<p>
<li>
<div class="court-date-row">
<%= link_to(pcd.decorate.court_date_info, casa_case_court_date_path(casa_case, pcd), class: "court-date-link") %>
<%= render 'calendar_button',
Expand All @@ -22,7 +22,7 @@
(Attached Report)
<% end %>
<% end %>
</p>
</li>
<% end %>
</ul>
<% end %>
Expand Down
28 changes: 14 additions & 14 deletions app/views/casa_cases/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@
<% if !@casa_case.active %>
<%= render "inactive_case", casa_case: @casa_case %>
<% end %>
<p>
<div>
<h6><strong>Case number:</strong> <%= @casa_case.case_number %>
<%= volunteer_badge(@casa_case, current_user) %>
</h6>
</p>
</div>
<% if @casa_case.hearing_type %>
<p>
<div>
<h6><strong>Hearing Type:</strong> <%= @casa_case.hearing_type_name %></h6>
</p>
</div>
<% end %>
<% if @casa_case.has_judge_name? %>
<p>
<div>
<h6><strong>Judge:</strong> <%= @casa_case.judge_name %></h6>
</p>
</div>
<% end %>
<p>
<div>
<h6><strong>Transition Aged Youth:</strong> <%= @casa_case.decorate.transition_aged_youth %></h6>
</p>
</div>
<div>
<h6>
<strong>
Expand All @@ -64,7 +64,7 @@
<%= @casa_case.decorate.duration_in_care %>
</h6>
</div>
<p>
<div>
<h6>
<strong>Next Court Date:</strong>
<%= I18n.l(@casa_case.next_court_date&.date, format: :day_and_date, default: '') %>
Expand All @@ -73,22 +73,22 @@
tooltip: "Add Next Court Date to Calendar",
title: "Next Court Date for [#{@casa_case.case_number}]" %>
</h6>
</p>
<p>
</div>
<div>
<h6>
<strong>Court Report Status:</strong>
<%= @casa_case.decorate.court_report_submission %></h6>
</p>
</div>
<% 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 %>
<p>
<div>
<h6>
<strong>Court Report Submitted Date:</strong>
<%= @casa_case.decorate.court_report_submitted_date %></h6>
</p>
</div>
<% end %>
<% if @casa_case.case_court_orders.exists? %>
<h6><strong>Court Orders:</strong></h6>
Expand Down
1 change: 1 addition & 0 deletions app/views/casa_org/_languages.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@
</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion app/views/case_contacts/_case_contact.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div>
<div class="mt-0">
<i class=" <%= "text-primary" %> <%= contact.decorate.medium_icon_classes %>"></i>
<div class="">
<div>
<h5 class="pt-0 mb-10 card-title d-flex align-items-center gap-2">
<strong class="<%= "text-primary" %>">
<%= "[DELETE] " if policy(contact).restore? && contact.deleted? %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</div>
<div class="modal-body">
Please double check your notes to ensure they don't contain any identifying details about your youth or anyone else.
<p class="mt-3">
<div class="mt-3">
<h6>Note</h6>
<div id="note-content"></div>
</p>
</div>
</div>

<div class="modal-footer justify-content-between">
Expand Down
12 changes: 5 additions & 7 deletions app/views/case_contacts/_followup.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<% if followup %>
<div>
<div>
<% if followup %>
<%= button_to resolve_followup_path(followup), method: :patch, class: "main-btn btn-sm success-btn btn-hover", id:"resolve", data: { turbo: false } do %>
<i class="bi bi-calendar"></i>Resolve Reminder
<% end %>
</div>
<% else %>
<div>
<% else %>
<button type="button"
class="followup-button main-btn btn-sm primary-btn-outline btn-hover"
id="followup-button-<%= contact.id %>"
data-turbo="false">
<i class="lni lni-calendar mr-5"></i>
Make Reminder
</button>
</div>
<% end %>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/devise/invitations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
type: "submit",
class: "main-btn primary-btn btn-hover btn-sm"
) do %>
<i class="lni lni-lock-alt mr-10"></i></i>Set my password
<i class="lni lni-lock-alt mr-10"></i>Set my password
<% end %>
</div>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box;">
<td class="cell c1776" style="box-sizing: border-box; width: 70%; vertical-align: middle;text-align:center;" width="70%" valign="middle">
<img style="max-width: 100%;" src="https://user-images.githubusercontent.com/8918762/120879374-7c813a00-c588-11eb-92d7-efa6fdfdfbf0.png" alt="Logo" class="c926" style="box-sizing: border-box; color: rgb(158, 83, 129); font-size: 50px;padding-top:10px;background:#00447c;">
<img src="https://user-images.githubusercontent.com/8918762/120879374-7c813a00-c588-11eb-92d7-efa6fdfdfbf0.png" alt="Logo" class="c926" style="max-width: 100%; box-sizing: border-box; color: rgb(158, 83, 129); font-size: 50px;padding-top:10px;background:#00447c;">
Copy link
Copy Markdown
Contributor Author

@marcoroth marcoroth Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, there were two style attributes. I now merged the first one into the second one.

Technically this could have some side-effects as browsers (and email clients) usually ignore the second attribute with the same name.

</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@
) do %>
<i class="lni lni-chevron-right-circle mr-10"></i>Log In
<% end %>
</div>
</div>
<% end %>
<div class="col-xxl-6 col-lg-12 col-md-6">
<div class="text-start text-md-end text-lg-start text-xxl-end mb-30">
</div>
</div>
<div class="col-xxl-6 col-lg-12 col-md-6">
</div>
</div>
</div>
</div>
</div>
</div>
37 changes: 19 additions & 18 deletions app/views/emancipations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
<% @emancipation_form_data.each do |category| %>
<h6 class="emancipation-category no-select" data-is-open="<%= emancipation_category_checkbox_checked(@current_case, category) ? "true" : "false" %>">
<div class="checkbox-style emacipation-category-input-label-pair">
<input
type="checkbox"
class="emancipation-category-check-box form-check-input"
value="<%= category.id %>"
<%= emancipation_category_checkbox_checked(@current_case, category) %>>
<%= tag.input(
type: "checkbox",
class: "emancipation-category-check-box form-check-input",
value: category.id,
checked: emancipation_category_checkbox_checked(@current_case, category)) %>

<div class="pt-10"><%= category.name %></div>
</div>
<% if category.emancipation_options.count > 0 %>
Expand All @@ -33,20 +34,20 @@
<% category.emancipation_options.each do |option| %>
<div class="check-item">
<% if category.mutually_exclusive %>
<input
type="radio"
id="O<%= option.id %>"
class="emancipation-radio-button"
name="C<%= category.id %>"
value="<%= option.id %>"
<%= emancipation_option_checkbox_checked(@current_case, option) %>>
<%= tag.input(
type: "radio",
id: "O#{option.id}",
class: "emancipation-radio-button",
name: "C#{category.id}",
value: option.id,
checked: emancipation_option_checkbox_checked(@current_case, option)) %>
<% else %>
<input
type="checkbox"
id="O<%= option.id %>"
class="emancipation-option-check-box"
value="<%= option.id %>"
<%= emancipation_option_checkbox_checked(@current_case, option) %>>
<%= tag.input(
type: "checkbox",
id: "O#{option.id}",
class: "emancipation-option-check-box",
value: option.id,
checked: emancipation_option_checkbox_checked(@current_case, option)) %>
<% end %>
<label><%= option.name %></label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/imports/_cases.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
class: 'form-control mt-4',
type: 'file',
style: "margin: auto;" %>
</div>

<%= button_tag id: "case-import-button", class: "main-btn primary-btn btn-hover pull-right",
disabled: true, data: {disable_with: "<i class='fa fa-spinner fa-spin'></i> Importing File"} do %>
Expand All @@ -39,3 +38,4 @@
})
</script>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/imports/_sms_opt_in_modal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<span class="form-check checkbox-style">
<%= 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" } %>
<span>
</span>
</div>
<div class="modal-footer">
<%= form.submit "Continue Import",
Expand Down
2 changes: 1 addition & 1 deletion app/views/imports/_supervisors.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
class: 'form-control mt-4',
type: 'file',
style: "margin: auto;" %>
</div>

<%= 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",
disabled: true, data: { disable_with: "<div class='spinner-border spinner-border-sm'></div> Importing File"} do %>
<i class="lni lni-upload"></i> Import Supervisors CSV
<% end %>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/imports/_volunteers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
class: 'form-control mt-4',
type: 'file',
style: "margin: auto;" %>
</div>

<%= 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",
disabled: true, data: { disable_with: "<div class='spinner-border spinner-border-sm'></div> Importing File" } do %>
<i class="lni lni-upload"></i> Import Volunteers CSV
<% end %>
<% end %>
</div>
1 change: 0 additions & 1 deletion app/views/layouts/_all_casa_admin_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
Patch Notes
<% end %>
</li>
<li>
<li class="<%= active_class(edit_all_casa_admins_path) %> nav-item">
<%= link_to edit_all_casa_admins_path do %>
<i class="lni lni-pencil-alt mr-10"></i>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_banner.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if @active_banner %>
<div class="bg-secondary-100 text-xl p-5 d-flex" data-controller="dismiss" data-dismiss-target="element" data-dismiss-url-value="<%= dismiss_banner_path(@active_banner) %>">
<div class="">
<div>
<%= @active_banner.content %>
</div>
<div class="ms-auto">
Expand Down
4 changes: 2 additions & 2 deletions app/views/learning_hours/_confirm_note.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</div>
<div class="modal-body">
New entry created
<p>
<div>
<h6>Note</h6>
<div id="note-content"></div>
</p>
</div>
</div>

<div class="modal-footer">
Expand Down
1 change: 1 addition & 0 deletions app/views/other_duties/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
</thead>
<tbody>
<% volunteer[:other_duties].decorate.each do |duty| %>
<tr>
<td><%= I18n.l(duty.occurred_at, format: :full, default: nil) %></td>
<td><%= I18n.l(duty.created_at, format: :full, default: nil) %></td>
<td><%= duty.duration_in_minutes %></td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_manage_volunteers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<% end %>
<br>
<h3 class="title">Assign a Volunteer to Case</h3>
<fieldset class="border-0" <%= 'disabled' unless available_volunteers.any? %>>
<fieldset class="border-0" <% if available_volunteers.none? %> disabled <% end %>>
<%= form_with(model: assignable_obj.new, url: assign_action) do |form| %>
<div class='form-group select-style-1'>
<label for="<%= select_id %>" class="mt-2">Select a Volunteer</label>
Expand Down
2 changes: 1 addition & 1 deletion app/views/supervisors/_manage_active.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
Change to Admin
<% end %>
<% end %>
</div>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/supervisors/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@
<% end %>
</tbody>
</table>
</div>
<% else %>
There are no active volunteers without supervisors to display here
<% end %>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
data: {confirm: "Contact your administrator at Ruby For Good to deactivate this account."} %>
<% end %>
<% end %>
</div>
<% end %>
<div class="accordionGroup">
<div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
Expand Down Expand Up @@ -119,7 +120,6 @@
</div>
</div>
</div>
</div>

<div>
<%= form_with(model: @user, scope: :user, url: users_path, method: :patch) do |form| %>
Expand Down
4 changes: 1 addition & 3 deletions app/views/volunteers/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@
<% end %>
</div>
</div>
</div>
</div>
</div>

</div>
</div>
Loading
Loading