2009-02-12 18:32:20 +01:00
|
|
|
- title "Neuen Lagerartikel anlegen"
|
2009-02-11 18:09:04 +01:00
|
|
|
|
2011-05-27 14:09:01 +02:00
|
|
|
- content_for :head do
|
|
|
|
:javascript
|
|
|
|
$(function() {
|
|
|
|
$('#article_search').autocomplete({
|
|
|
|
source: '#{articles_search_stock_articles_path}',
|
|
|
|
select: function(e, ui) {
|
|
|
|
alert(ui.item.value);
|
|
|
|
//location.href = '#{nil}' + ui.item.value;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2009-02-11 18:09:04 +01:00
|
|
|
|
2013-01-26 15:57:29 +01:00
|
|
|
/
|
|
|
|
TODO: Fix this
|
|
|
|
%p
|
2009-02-12 18:32:20 +01:00
|
|
|
Suche nach Artikeln aus allen Katalogen:
|
2011-05-27 14:09:01 +02:00
|
|
|
= text_field_tag 'article_search'
|
2009-02-11 18:09:04 +01:00
|
|
|
#stock_article_form
|
|
|
|
= render :partial => 'form', :locals => {:stock_article => @stock_article}
|