2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-12 21:38:41 +01:00
|
|
|
Gefunden:
|
2009-01-06 11:49:19 +01:00
|
|
|
= @total
|
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
2009-01-15 12:14:01 +01:00
|
|
|
= pagination_links_remote @groups, :update => :ordergroups, :params => {:sort => params[:sort]}
|
2009-01-06 11:49:19 +01:00
|
|
|
%td{:style => "text-align:right"}
|
|
|
|
- if @total > 20
|
2009-01-15 12:14:01 +01:00
|
|
|
= items_per_page :update => :ordergroups
|
2009-01-06 11:49:19 +01:00
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
2009-02-12 21:38:41 +01:00
|
|
|
%th= sort_link_helper "Name", "name", @per_page
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Kontakt
|
2009-02-12 21:38:41 +01:00
|
|
|
%th= sort_link_helper "Kontostand", "account_balance", @per_page
|
2009-01-06 11:49:19 +01:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- for group in @groups
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'groups')}
|
2009-01-10 21:28:22 +01:00
|
|
|
%td= group.name
|
2009-02-02 16:35:43 +01:00
|
|
|
%td= group.contact
|
2009-01-06 11:49:19 +01:00
|
|
|
%td{:class => "currency", :style => "width:5em"}= number_to_currency(group.account_balance)
|
|
|
|
%td{:class => "actions"}
|
2009-02-12 21:38:41 +01:00
|
|
|
= link_to image_tag("euro_new.png", :size => "16x16", :alt => "Neue Transaktion", :border => "0"), {:action => 'new', :id => group}, {:title => "Neue Transaktion"}
|
|
|
|
= link_to image_tag("b_browse.png", :size => "16x16", :border => "0", :alt => 'Kontoauszug'), {:action => 'list', :id => group}, {:title => "Kontoauszug"}
|
2009-01-06 11:49:19 +01:00
|
|
|
|