2012-10-15 21:19:17 +02:00
|
|
|
- if Ordergroup.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @ordergroups
|
|
|
|
%table.table.table-striped
|
2009-01-14 12:46:01 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-02-03 18:10:11 +01:00
|
|
|
%th= t '.name'
|
|
|
|
%th= t '.contact'
|
|
|
|
%th= t '.address'
|
|
|
|
%th= t '.members'
|
|
|
|
%th= t '.actions'
|
2009-01-14 12:46:01 +01:00
|
|
|
%tbody
|
|
|
|
- for ordergroup in @ordergroups
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'groups')}
|
|
|
|
%td= link_to ordergroup.name, [:admin, ordergroup]
|
2009-02-02 16:35:43 +01:00
|
|
|
%td= ordergroup.contact
|
|
|
|
%td= link_to_gmaps ordergroup.contact_address
|
2009-01-14 12:46:01 +01:00
|
|
|
%td= ordergroup.users.size
|
|
|
|
%td
|
2013-02-03 18:10:11 +01:00
|
|
|
= link_to t('.edit'), edit_admin_ordergroup_path(ordergroup), class: 'btn btn-mini'
|
|
|
|
= link_to t('.delete'), [:admin, ordergroup], :confirm => t('.confirm', name: ordergroup.name),
|
2012-10-15 21:19:17 +02:00
|
|
|
:method => :delete, class: 'btn btn-mini btn-danger'
|