Add "Copy" button for settled orders #383
This commit is contained in:
parent
e742958c0c
commit
233ed415c7
1 changed files with 4 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue