fix delete order confirmation

This commit is contained in:
wvengen 2014-06-04 13:12:19 +02:00
parent c54e15dc04
commit 86a5576dc3

View file

@ -66,7 +66,7 @@
-# TODO btn-success class only if not received before -# TODO btn-success class only if not received before
= link_to t('orders.index.action_receive'), receive_order_path(@order), class: 'btn btn-success' = link_to t('orders.index.action_receive'), receive_order_path(@order), class: 'btn btn-success'
- unless @order.closed? - unless @order.closed?
= link_to t('ui.delete'), @order, data_confirm: t('.confirm_delete'), method: :delete, = link_to t('ui.delete'), @order, data: {confirm: t('.confirm_delete')}, method: :delete,
class: 'btn btn-danger' class: 'btn btn-danger'
%section#articles_table %section#articles_table