foodsoft/app/views/finance/transactions/_ordergroups.html.haml

28 lines
1.2 KiB
Text
Raw Normal View History

2009-01-06 11:49:19 +01:00
%p
= _("Found") + ":"
= @total
%p
%table{:style => "width:100%"}
%tr
%td
= 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
= items_per_page :update => :ordergroups
2009-01-06 11:49:19 +01:00
%table.list
%thead
%tr
%th= sort_link_helper _("Name"), "name", @per_page
%th= sort_link_helper _("Size of group"), "size", @per_page
%th= sort_link_helper _("Account balance"), "account_balance", @per_page
%th
%tbody
- for group in @groups
%tr{:class => cycle('even','odd', :name => 'groups')}
%td= group.name
2009-01-06 11:49:19 +01:00
%td= group.actual_size
%td{:class => "currency", :style => "width:5em"}= number_to_currency(group.account_balance)
%td{:class => "actions"}
= link_to image_tag("euro_new.png", :size => "16x16", :alt => _("New transaction"), :border => "0"), {:action => 'new', :id => group}, {:title => _("New transaction")}
= link_to image_tag("b_browse.png", :size => "16x16", :border => "0", :alt => 'Kontoauszug'), {:action => 'list', :id => group}, {:title => _("List transactions")}
2009-01-06 11:49:19 +01:00