% content_for :title, 'Document Categories' %> <% content_for :header_left do %> <%= content_tag :h1, 'Document Categories' %> <% end %> <% content_for :header_right do %> <%= admin_new_button DocumentCategory %> <% end %> <%= render partial: 'admin/shared/header' %> <%= content_tag :div, class: 'w-100' do %> <% if @document_categories.any? %>
ID | Name | Status | |
---|---|---|---|
<%= dc.id %> | <%= dc.name %> | <%= dc.discarded? ? 'Inactive' : 'Active' %> | <%= admin_edit_button dc if dc.undiscarded? %> <%= admin_deactivate_button dc if dc.undiscarded? %> <%= admin_reactivate_button dc if dc.discarded? %> <%= admin_destroy_button dc %> |
No document categories found. Create one.
<% end %> <% end %>