Refactored finance/ordergroups|transactions module.
This commit is contained in:
parent
fc1d130113
commit
ea6348bc5c
38 changed files with 967 additions and 443 deletions
30
app/views/finance/ordergroups/_ordergroups.html.haml
Normal file
30
app/views/finance/ordergroups/_ordergroups.html.haml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
%p
|
||||
Gefunden:
|
||||
= @ordergroups.size
|
||||
%p
|
||||
%table{:style => "width:100%"}
|
||||
%tr
|
||||
%td
|
||||
= pagination_links_remote @ordergroups, :update => :ordergroups, :params => {:sort => params[:sort]}
|
||||
%td{:style => "text-align:right"}
|
||||
- if @ordergroups.size > 20
|
||||
= items_per_page
|
||||
%table.list
|
||||
%thead
|
||||
%tr
|
||||
%th= sort_link_helper "Name", "name", :per_page => @per_page
|
||||
%th Kontakt
|
||||
%th= sort_link_helper "Kontostand", "account_balance", :per_page => @per_page
|
||||
%th
|
||||
%tbody
|
||||
- for ordergroup in @ordergroups
|
||||
%tr{:class => cycle('even','odd', :name => 'ordergroups')}
|
||||
%td= ordergroup.name
|
||||
%td= ordergroup.contact
|
||||
%td{:class => "currency", :style => "width:5em"}= number_to_currency(ordergroup.account_balance)
|
||||
%td{:class => "actions"}
|
||||
= link_to image_tag("euro_new.png", :size => "16x16", :alt => "Neue Transaktion", :border => "0"),
|
||||
new_finance_ordergroup_transaction_path(ordergroup), :title => "Neue Transaktion"
|
||||
= link_to image_tag("b_browse.png", :size => "16x16", :border => "0", :alt => 'Kontoauszug'),
|
||||
finance_ordergroup_transactions_path(ordergroup), :title => "Kontoauszug"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue