Don't allow changes to settled orders (PR #614)

This commit is contained in:
Tom Carchrae 2019-03-26 12:14:39 -07:00 committed by wvengen
parent a524dd0325
commit 99052fa3a7
7 changed files with 24 additions and 7 deletions

View file

@ -11,7 +11,7 @@
%th= heading_helper Article, :deposit
%th{:colspan => "2"}
= link_to t('.add_article'), new_order_order_article_path(@order), remote: true,
class: 'btn btn-small'
class: 'btn btn-small' unless @order.closed?
%tbody#result_table
- for order_article in @articles
= render :partial => "order_article_result", :locals => {:order_article => order_article}