foodsoft/app/views/stockit/new.html.haml

16 lines
583 B
Text
Raw Normal View History

- title "Neuen Lagerartikel anlegen"
:javascript
function fillNewStockArticle(text, li) {
2012-10-24 12:19:53 +02:00
new Ajax.Updater('stock_article_form', '#{url_for(:controller => "stockit", :action => "fill_new_stock_article_form")}', {
parameters: {article_id: li.id}
});
}
%p
Suche nach Artikeln aus allen Katalogen:
= text_field_with_auto_complete :article, :name, {}, |
{:url => {:action => 'auto_complete_for_article_name'}, |
:after_update_element => 'fillNewStockArticle'} |
#stock_article_form
= render :partial => 'form', :locals => {:stock_article => @stock_article}