2012-10-15 21:19:17 +02:00
|
|
|
- if Workgroup.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @workgroups
|
|
|
|
%table.table.table-striped
|
2009-01-13 19:01:56 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-02-03 18:36:03 +01:00
|
|
|
%th= t '.name'
|
|
|
|
%th= t '.members'
|
2013-02-03 19:38:18 +01:00
|
|
|
%th= t 'admin.access_to'
|
2013-12-12 00:13:19 +01:00
|
|
|
%th= t 'ui.actions'
|
2009-01-13 19:01:56 +01:00
|
|
|
%tbody
|
|
|
|
- for workgroup in @workgroups
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
2009-01-13 19:01:56 +01:00
|
|
|
%td= link_to workgroup.name, [:admin, workgroup]
|
|
|
|
%td= workgroup.users.size
|
2009-02-02 16:35:43 +01:00
|
|
|
%td= format_roles(workgroup)
|
2009-01-13 19:01:56 +01:00
|
|
|
%td
|
2013-04-04 02:49:52 +02:00
|
|
|
= link_to t('ui.edit'), edit_admin_workgroup_path(workgroup), class: 'btn btn-mini'
|
2016-03-04 20:10:11 +01:00
|
|
|
= link_to t('ui.delete'), [:admin, workgroup], :data => {:confirm => t('ui.confirm_delete', name: workgroup.name)},
|
2012-10-15 21:19:17 +02:00
|
|
|
:method => :delete, class: 'btn btn-mini btn-danger'
|