+ Banners display at the top of the page and can be used to callout a message to volunteers. One example is displaying a banner with a link to a survey that volunteers can fill out. You can create multiple banners but only one can be active at a time.
+
+ <%= link_to new_banner_path, class: "btn-sm main-btn primary-btn btn-hover" do %>
+
+ New Banner
+ <% end %>
+
+
+
+
+
Name
+
Active?
+
Last Updated By
+
Updated At
+
Actions
+
+
+
+ <% @banners.each do |banner| %>
+
+
+ <%= banner.name %>
+
+
+ <% if banner.active? %>
+ Yes
+ <% else %>
+ No
+ <% end %>
+
+
+ <%= banner.user.display_name %>
+
+
+ <%= time_ago_in_words(banner.updated_at) %> ago
+
+
+ <%= link_to edit_banner_path(banner) do %>
+
+
+ Edit
+
+
+ <% end %>
+ <%= link_to 'Delete', banner_path(banner), class: 'btn btn-danger', method: :delete, data: { confirm: "Are you sure that you want to delete this banner?" } %>
+
<% if policy(assignment).unassign? %>
<%= button_to("Unassign Volunteer",
diff --git a/app/views/casa_cases/index.html.erb b/app/views/casa_cases/index.html.erb
index 422a8a21eb..85b4fc0667 100644
--- a/app/views/casa_cases/index.html.erb
+++ b/app/views/casa_cases/index.html.erb
@@ -1,11 +1,16 @@
+<% if Rails.env.development? %>
+
+
+<% end %>
+
<% if current_user.volunteer? %>
-
My <%= "Case".pluralize(@casa_cases.count) %>
+
My <%= "Case".pluralize(@casa_cases.count) %>
<% else %>
-
<%= "Case".pluralize(@casa_cases.count) %>
+
<%= "Case".pluralize(@casa_cases.count) %>
<% end %>
@@ -15,11 +20,24 @@
<% if policy(:dashboard).see_volunteers_section? %>
<%= link_to new_casa_case_path, class: "main-btn btn-sm primary-btn btn-hover ml-3" do %>
-
- New Case
+
+ New Case
<% end %>
<% end %>
+ <% if policy(:application).admin_or_supervisor? %>
+
+ <%= link_to case_groups_path, class: "main-btn btn-sm primary-btn btn-hover ml-3" do %>
+ Case Groups
+ <% end %>
+
+
+ <%= link_to new_bulk_court_date_path, class: "main-btn btn-sm primary-btn btn-hover ml-3" do %>
+
+ New Bulk Court Date
+ <% end %>
+
+ <% end %>
<% if policy(CasaCase).can_see_filters? %>
Status
Transition Aged Youth
Assigned To
-
Actions
@@ -77,10 +94,6 @@
Case was deactivated on: <%= I18n.l(casa_case.updated_at, format: :standard, default: nil) %>
<% end %>
<% end %>
-<% unless @presenter.case_contacts.any? %>
-
-
- <%= params[:filterrific] ?
- "No case contacts have been found." :
- "You have no case contacts for this case. \
+<% if @presenter.case_contacts.empty? %>
+ <% if params.key?(:casa_case_id) %>
+
+ <%= params[:filterrific] ?
+ "No case contacts have been found." :
+ "You have no case contacts for this case. \
Please click New Case Contact button above to create a case contact for your youth!" %>
+
-
+ <% else %>
+
+
+ <%= params[:filterrific] ?
+ "No case contacts have been found." :
+ "You have no case contacts for this case. \
+ Please click New Case Contact button above to create a case contact for your youth!" %>
+
+
+ <% end %>
<% end %>
diff --git a/app/views/case_court_reports/index.html.erb b/app/views/case_court_reports/index.html.erb
index 5efae18f12..ead4376d13 100644
--- a/app/views/case_court_reports/index.html.erb
+++ b/app/views/case_court_reports/index.html.erb
@@ -2,8 +2,7 @@
-
Report Categories
-
+
Report Categories
diff --git a/app/views/case_groups/_form.html.erb b/app/views/case_groups/_form.html.erb
new file mode 100644
index 0000000000..a1bbceb160
--- /dev/null
+++ b/app/views/case_groups/_form.html.erb
@@ -0,0 +1,42 @@
+
+
+
+
+
+ <% if case_group.persisted? %>
+ Edit Case Group
+ <% else %>
+ New Case Group
+ <% end %>
+
+ Case groups are used to bulk create court dates for all cases in a group. For example, if siblings attend the same court data you can create a case group for them and then use the
+ <%= link_to 'Bulk Court Date', new_bulk_court_date_path %>
+ form to create a court date for all of them.
+
+ <%= link_to new_case_group_path, class: "btn-sm main-btn primary-btn btn-hover" do %>
+
+ New Case Group
+ <% end %>
+
+
+
+
+
Name
+
Case Numbers
+
Updated At
+
Actions
+
+
+
+ <% @case_groups.each do |case_group| %>
+
+
+ <%= case_group.name %>
+
+
+
+ <% case_group.casa_cases.each do |casa_case| %>
+
+ <%= time_ago_in_words(case_group.updated_at) %> ago
+
+
+ <%= link_to edit_case_group_path(case_group) do %>
+
+
+ Edit
+
+
+ <% end %>
+ <%= link_to 'Delete', case_group_path(case_group), class: 'btn btn-danger', method: :delete, data: { confirm: "Are you sure that you want to delete this case group?" } %>
+