Add "Copy" button for settled orders #383

This commit is contained in:
Patrick Gansterer 2017-01-20 03:53:20 +01:00 committed by wvengen
parent e742958c0c
commit 233ed415c7

View file

@ -7,7 +7,7 @@
%th= heading_helper Order, :starts
%th= sort_link_helper heading_helper(Order, :ends), "ends"
%th= heading_helper Order, :status
%th{:colspan => "2"}
%th
%tbody
- @orders.each do |order|
%tr
@ -16,4 +16,6 @@
%td= format_time(order.starts)
%td= format_time(order.ends)
%td= t(order.state, scope: 'orders.state')
%td= link_to t('ui.show'), order, class: 'btn btn-small'
%td
= link_to t('ui.copy'), new_order_path(order_id: order, supplier_id: order.supplier), class: 'btn btn-small'
= link_to t('ui.show'), order, class: 'btn btn-small'