2009-04-11 19:39:01 +02:00
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= pagination_links_remote @order_groups, :update => :order_groups
|
|
|
|
%td{:style => "text-align:right"}
|
|
|
|
- if @total > 20
|
|
|
|
= items_per_page :update => :order_groups
|
|
|
|
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
2009-04-20 14:33:24 +02:00
|
|
|
%th= "#Mitglieder"
|
2009-04-11 19:39:01 +02:00
|
|
|
%th Kontakt
|
|
|
|
|
|
|
|
%tbody
|
|
|
|
- for order_group in @order_groups
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'order_group')}
|
2009-04-20 14:33:24 +02:00
|
|
|
%td= link_to h(order_group.name), {:controller => 'messages', :action => 'group', :id => order_group}, :title => "Bestellgruppe eine Nachricht schicken"
|
2009-04-11 19:39:01 +02:00
|
|
|
%th=h order_group.users.length
|
|
|
|
%td=h order_group.contact
|
|
|
|
|