- checked<% end %> onclick="return confirm('WARNING: Marking a volunteer inactive will make them unable to login. They will receive an email saying their account has been marked inactive. Are you sure you want to do this?')">
-
-
+ <% if @volunteer_active %>
+ Volunteer is Active
+ <% if current_user.role == "casa_admin" || @volunteer.supervisor == current_user %>
+ <%= link_to "Deactivate volunteer",
+ deactivate_volunteer_path(@volunteer),
+ method: :patch,
+ class: "btn btn-outline-danger",
+ data:
+ { confirm: "WARNING: Marking a volunteer inactive will make them unable to login.
+
They will receive an email saying their account has been marked inactive.
+
Are you sure you want to do this?".html_safe },
+ hint: "NOTE: This will make connected cases unassigned and
+ the volunteer won't be able to log in to the system anymore".html_safe %>
+ <% end %>
+ <% else %>
+
+ Volunteer was deactivated on: <%= @volunteer.updated_at.strftime("%m-%d-%Y") %>
+
+ <% end %>
@@ -70,7 +76,10 @@
Case Number
Transition Aged Youth
-
Actions
+
Assignment status
+ <% if @volunteer_active %>
+
Actions
+ <% end %>
@@ -87,24 +96,26 @@
<% end %>
-
+<% if @volunteer_active %>
+
-