Fixed finance module to work with bootstrap design.
This commit is contained in:
parent
16de9124fe
commit
0236fb5a60
55 changed files with 440 additions and 486 deletions
26
app/views/finance/balancing/_orders.html.haml
Normal file
26
app/views/finance/balancing/_orders.html.haml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
- unless @orders.empty?
|
||||
- if Order.finished.count > 20
|
||||
= items_per_page
|
||||
= pagination_links_remote @orders
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th Name
|
||||
%th Ende
|
||||
%th Status
|
||||
%th zuletzt bearbeitet von
|
||||
%th
|
||||
%tbody
|
||||
- @orders.each do |order|
|
||||
%tr{:class => cycle("even","odd", :name => "order")}
|
||||
%td= link_to truncate(order.name), new_finance_order_path(order_id: order.id)
|
||||
%td=h format_time(order.ends) unless order.ends.nil?
|
||||
%td= order.closed? ? "abgerechnet (#{number_to_currency order.foodcoop_result})" : "beendet"
|
||||
%td= order.updated_by.nil? ? '??' : order.updated_by.nick
|
||||
%td
|
||||
- unless order.closed?
|
||||
= link_to "abrechnen", new_finance_order_path(order_id: order.id), class: 'btn btn-mini btn-primary'
|
||||
= link_to 'direkt schließen', close_direct_finance_order_path(order),
|
||||
:confirm => 'Wirklich die Bestellung schließen setzen?', :method => :put, class: 'btn btn-mini'
|
||||
- else
|
||||
%i derzeit gibt es keine beendeten Bestellungen
|
||||
Loading…
Add table
Add a link
Reference in a new issue