2009-01-14 12:46:01 +01:00
|
|
|
%p= pagination_links_remote @articles, :per_page => 10, |
|
2012-10-13 22:19:01 +02:00
|
|
|
:params => {:import_query => params[:import_query], :regional => params[:regional]} |
|
2009-01-06 11:49:19 +01:00
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Herkunft
|
|
|
|
%th Hersteller
|
|
|
|
%th Notiz
|
|
|
|
%th{:style => "width:4em"} Preis
|
|
|
|
%th Einheit
|
|
|
|
%th GebGröße
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- for article in @articles
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'import_search_results')}
|
|
|
|
%td= highlight_phrase article.name, params[:import_query]
|
|
|
|
%td= article.origin
|
|
|
|
%td= article.manufacturer
|
|
|
|
%td= article.note
|
|
|
|
%td= number_to_currency(article.price)
|
|
|
|
%td= article.unit
|
|
|
|
%td= article.unit_quantity
|
2009-01-16 16:19:26 +01:00
|
|
|
%td= link_to_remote 'importieren', |
|
|
|
|
:url => import_supplier_articles_path(@supplier, :shared_article_id => article.id), |
|
|
|
|
:method => :get |
|
2009-01-06 11:49:19 +01:00
|
|
|
|