Allow creation of StockArticles also if there are no Articles for a supplier in delivery form

This commit is contained in:
Julius 2013-07-14 22:00:38 +02:00
parent b303b48853
commit 0e66414534
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@
%tfoot
%tr
%th{:colspan => 5}
%input#new_stock_article{:style => 'width: 500px;'}
- if articles_for_select2(@supplier).empty?
= link_to t('.create_stock_article'), new_stock_article_supplier_deliveries_path(@supplier), :remote => true, :class => 'btn'
- else
%input#new_stock_article{:style => 'width: 500px;'}
%tbody
- for article in stock_articles_for_table(@supplier)
= render :partial => 'stock_article_for_adding', :locals => {:article => article}