2012-10-02 12:01:40 -04:00
|
|
|
%h3.page_title
|
|
|
|
Groups
|
2012-10-22 16:37:50 -04:00
|
|
|
%small
|
|
|
|
allows you to keep projects organized.
|
|
|
|
Use groups for uniting related projects.
|
|
|
|
|
2012-10-02 12:01:40 -04:00
|
|
|
= link_to 'New Group', new_admin_group_path, class: "btn small right"
|
|
|
|
%br
|
|
|
|
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
|
|
|
|
= text_field_tag :name, params[:name], class: "xlarge"
|
|
|
|
= submit_tag "Search", class: "btn submit primary"
|
|
|
|
|
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%th Name
|
2012-11-23 13:31:09 -05:00
|
|
|
%th Path
|
2012-10-02 12:01:40 -04:00
|
|
|
%th Projects
|
|
|
|
%th Edit
|
|
|
|
%th.cred Danger Zone!
|
|
|
|
|
|
|
|
- @groups.each do |group|
|
|
|
|
%tr
|
|
|
|
%td= link_to group.name, [:admin, group]
|
2012-11-23 13:31:09 -05:00
|
|
|
%td= group.path
|
2012-10-02 12:01:40 -04:00
|
|
|
%td= group.projects.count
|
|
|
|
%td= link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn small"
|
|
|
|
%td.bgred= link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn small danger"
|
|
|
|
= paginate @groups, theme: "admin"
|