app/views/volunteers/edit.html.erb
<%= link_to 'Back', volunteers_path, class: "my-2" %>
<div class="row">
<div class="col-sm-12 form-header">
<h1>Editing Volunteer</h1>
<%= render "volunteer_reminder_form", volunteer: @volunteer %>
</div>
<div class="col-sm-12 form-header">
<%= link_to impersonate_volunteer_path(@volunteer),
class: "main-btn primary-btn btn-hover casa-case-button btn-sm my-3" do %>
<i class="lni lni-user mr-10"></i> Impersonate
<% end %>
</div>
</div>
<div class="card card-container">
<div class="card-body">
<%= form_for @volunteer, url: volunteer_path(@volunteer) do |form| %>
<%= render "/shared/error_messages", resource: @volunteer %>
<%= render "/shared/edit_form", resource: @volunteer, f: form %>
<%= render "/shared/invite_login", resource: @volunteer %>
<p>
<%= render "manage_active", user: @volunteer %>
</p>
<div class="actions">
<%= button_tag(
type: "submit",
class: "main-btn primary-btn btn-hover btn-sm my-1"
) do %>
<i class="lni lni-checkmark-circle mr-5"></i> Submit
<% end %>
</div>
<% end %>
</div>
</div>
<%= render 'notes' %>
<%= render 'manage_cases' %>
<%= render 'manage_supervisor' %>