Don't allow changes to settled orders (PR #614)
This commit is contained in:
parent
a524dd0325
commit
99052fa3a7
7 changed files with 24 additions and 7 deletions
|
|
@ -21,7 +21,7 @@
|
|||
%td= order_article.price.deposit
|
||||
%td
|
||||
= link_to t('ui.edit'), edit_order_order_article_path(order_article.order, order_article), remote: true,
|
||||
class: 'btn btn-mini'
|
||||
class: 'btn btn-mini' unless order_article.order.closed?
|
||||
%td
|
||||
= link_to t('ui.delete'), order_order_article_path(order_article.order, order_article), method: :delete,
|
||||
remote: true, data: {confirm: t('.confirm')}, class: 'btn btn-danger btn-mini'
|
||||
remote: true, data: {confirm: t('.confirm')}, class: 'btn btn-danger btn-mini' unless order_article.order.closed?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue