Filter by:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <% unless current_user.volunteer? %>
-
<% end %>
-
-
+ <% end %>
diff --git a/app/views/casa_org/_contact_topics.html.erb b/app/views/casa_org/_contact_topics.html.erb
index 747435379f..a25b86b2ea 100644
--- a/app/views/casa_org/_contact_topics.html.erb
+++ b/app/views/casa_org/_contact_topics.html.erb
@@ -37,7 +37,14 @@
<%= contact_topic.active ? "Yes" : "No" %>
- <%= render(DropdownMenuComponent.new(menu_title: "Actions Menu", hide_label: true)) do %>
+ <%= render(DropdownMenuComponent.new(menu_title: "Actions Menu", hide_label: true)) do |component| %>
+ <% component.with_icon do %>
+
+ <% end %>
+
<%= link_to "Edit", edit_contact_topic_path(contact_topic), class: "dropdown-item" %>
<%= render(Modal::OpenLinkComponent.new(text: "Delete", target: id, klass: "dropdown-item")) %>
<% end %>
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
index 75ccef2185..84dbe5e50f 100644
--- a/app/views/layouts/_header.html.erb
+++ b/app/views/layouts/_header.html.erb
@@ -40,13 +40,8 @@
-
-
-
-
-
-
+ <% end %>
+
+ <% help_url = current_user.volunteer? ? help_volunteers_url : help_admins_supervisors_url %>
+ <%= link_to help_url, target: :_blank do %>
+
+ Help
+ <% end %>
+
+
+ <%= link_to destroy_user_session_path do %>
+
+ Sign Out
+ <% end %>
+
+ <% end %>
diff --git a/app/views/reimbursements/index.html.erb b/app/views/reimbursements/index.html.erb
index 0b584a4755..c8d599f2e0 100644
--- a/app/views/reimbursements/index.html.erb
+++ b/app/views/reimbursements/index.html.erb
@@ -36,9 +36,8 @@
-
- <%= render partial: "filter_trigger", locals: { title: "Occurred at" } %>
-
+ <% end %>
diff --git a/app/views/supervisors/index.html.erb b/app/views/supervisors/index.html.erb
index e8bcbd6855..64a8f8e2de 100644
--- a/app/views/supervisors/index.html.erb
+++ b/app/views/supervisors/index.html.erb
@@ -9,10 +9,7 @@
-
-
-
-
+ <% end %>
<% if policy(Supervisor).create? %>
diff --git a/app/views/volunteers/index.html.erb b/app/views/volunteers/index.html.erb
index b90f53baa8..b505f9ec02 100644
--- a/app/views/volunteers/index.html.erb
+++ b/app/views/volunteers/index.html.erb
@@ -29,89 +29,69 @@
Filter by:
-
-
-
-
-
-
+
+ <%= check_box_tag "status_option_inactive", "false", false,
+ class: "form-check-input",
+ data: { value: "false" } %>
+ <%= label_tag "status_option_inactive", "Inactive", class: "form-check-label" %>
+
+ <% end %>
-
-
-
-
-
-
+ <% end %>
+ <%= render(DropdownMenuComponent.new(menu_title: "Has Extra Languages", container_klass: "pull-left mx-2 my-1 extra-language-options")) do %>
+
+ <%= check_box_tag "extra_language_option_yes", "true", true,
+ class: "form-check-input",
+ data: { value: "true" } %>
+ <%= label_tag "extra_language_option_yes", "Yes", class: "form-check-label" %>
+
+
+ <%= check_box_tag "extra_language_option_no", "false", true,
+ class: "form-check-input",
+ data: { value: "false" } %>
+ <%= label_tag "extra_language_option_no", "No", class: "form-check-label" %>
+
+ <% end %>
diff --git a/spec/components/dropdown_menu_component_spec.rb b/spec/components/dropdown_menu_component_spec.rb
index 64f6ad7636..e0a8252141 100644
--- a/spec/components/dropdown_menu_component_spec.rb
+++ b/spec/components/dropdown_menu_component_spec.rb
@@ -25,8 +25,7 @@
render_inline(DropdownMenuComponent.new(menu_title: "Example Title")) { "Example Item" }
expect(page).to have_css("div.dropdown")
- expect(page).to have_css("button.btn.btn-secondary.dropdown-toggle svg")
- expect(page).to have_css("svg title", text: "Example Title")
+ expect(page).to have_css("button.btn.btn-secondary.dropdown-toggle")
expect(page).to have_css(".dropdown-menu", text: "Example Item")
end
@@ -37,7 +36,7 @@
end
it "renders the dropdown menu with additional classes" do
- render_inline(DropdownMenuComponent.new(menu_title: "Example", klass: "example-class")) { "Example Content" }
+ render_inline(DropdownMenuComponent.new(menu_title: "Example", container_klass: "example-class")) { "Example Content" }
expect(page).to have_css("div.dropdown.example-class")
end
|