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
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue