2013-02-11 11:19:26 +01:00
|
|
|
- title t('.title')
|
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
|
2013-02-11 11:19:26 +01:00
|
|
|
= t '.search_text'
|
2011-05-27 14:09:01 +02:00
|
|
|
= text_field_tag 'article_search'
|
2009-02-11 18:09:04 +01:00
|
|
|
#stock_article_form
|
2013-02-11 11:19:26 +01:00
|
|
|
= render :partial => 'form', :locals => {:stock_article => @stock_article}
|