2009-01-13 19:01:56 +01:00
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
2011-06-10 12:18:55 +02:00
|
|
|
= pagination_links_remote @workgroups
|
2009-01-13 19:01:56 +01:00
|
|
|
%td{:style => "text-align:right"}
|
2011-06-10 12:18:55 +02:00
|
|
|
= items_per_page
|
2009-01-13 19:01:56 +01:00
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Mitglieder
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Zugriff auf
|
2009-01-13 19:01:56 +01:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- for workgroup in @workgroups
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'groups')}
|
|
|
|
%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
|
2011-06-10 12:18:55 +02:00
|
|
|
= link_to icon(:edit), edit_admin_workgroup_path(workgroup)
|
|
|
|
= link_to icon(:delete), [:admin, workgroup], :confirm => 'Willst du ' + workgroup.name + ' wirklich löschen?',
|
|
|
|
:method => :delete
|