2009-01-14 12:46:01 +01:00
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= pagination_links_remote @ordergroups, { :update => "ordergroups" }
|
|
|
|
%td{:style => "text-align:right"}
|
|
|
|
- if @total > 20
|
|
|
|
= items_per_page :update => "ordergroups"
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Kontakt
|
|
|
|
%th Adresse
|
2009-01-14 12:46:01 +01:00
|
|
|
%th Mitglieder
|
|
|
|
%th
|
|
|
|
%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
|
|
|
|
= link_to image_tag('b_users.png', :size => '16x16', :border => "0", :alt => 'Mitlglieder bearbeiten'), memberships_admin_ordergroup_path(ordergroup)
|
|
|
|
= link_to(image_tag('b_edit.png', :size => "16x16", :border => "0", :alt => 'Gruppe bearbeiten'), edit_admin_ordergroup_path(ordergroup))
|
|
|
|
= link_to(image_tag('b_drop.png', :size => "16x16", :border => "0", :alt => 'Gruppe löschen'), [:admin, ordergroup], |
|
|
|
|
:confirm => 'Willst du ' + ordergroup.name + ' wirklich löschen?', :method => :delete) |
|