2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-10 13:26:10 +01:00
|
|
|
Gefundene Artikel:
|
2009-01-06 11:49:19 +01:00
|
|
|
%b= @total
|
|
|
|
|
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
2009-01-14 12:46:01 +01:00
|
|
|
= pagination_links_remote @articles, :params => {:sort => params[:sort]}
|
2009-01-06 11:49:19 +01:00
|
|
|
%td{:style => "text-align:right"}
|
|
|
|
- if @total > 30
|
2009-01-14 12:46:01 +01:00
|
|
|
= items_per_page :per_page_options => [30, 100, 500]
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
|
|
%table#articles_table.list.articles
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
%th[sort_td_class_helper "name"]
|
2009-02-10 13:26:10 +01:00
|
|
|
= sort_link_helper "Name", "name"
|
2009-01-06 11:49:19 +01:00
|
|
|
%th
|
|
|
|
%th[sort_td_class_helper "category"]
|
2009-02-10 13:26:10 +01:00
|
|
|
= sort_link_helper "Kategorie", "category"
|
2009-01-06 11:49:19 +01:00
|
|
|
%th[sort_td_class_helper "unit"]
|
2009-02-10 13:26:10 +01:00
|
|
|
= sort_link_helper "Einheit", "unit"
|
2009-01-06 11:49:19 +01:00
|
|
|
%th[sort_td_class_helper "note"]
|
2009-02-10 13:26:10 +01:00
|
|
|
= sort_link_helper "Notiz", "note"
|
|
|
|
%th{:style => "width: 4em;"} Gebgr.
|
|
|
|
%th{:style => "width: 4em;"} Preis
|
|
|
|
%th{:style => "width: 3.5em;"} MwSt
|
|
|
|
%th{:style => "width: 4em;"} Pfand
|
2009-01-06 11:49:19 +01:00
|
|
|
%th{:style => "width: 3em;"}
|
|
|
|
|
|
|
|
%tbody#listbody
|
|
|
|
|
|
|
|
- if @total > 0
|
|
|
|
- for @article in @articles
|
2009-01-16 16:19:26 +01:00
|
|
|
%tr{ :class => cycle('even','odd') + row_classes(@article), :id => @article.id, :onclick => "checkRow('#{@article.id.to_s}')"}
|
2009-01-06 11:49:19 +01:00
|
|
|
= render :partial => 'article_row'
|
|
|
|
%tfoot
|
|
|
|
%tr
|
2009-01-16 16:19:26 +01:00
|
|
|
%td{:colspan => '11'}
|
|
|
|
= check_box_tag :checkall, 1, false, :onclick => 'checkUncheckAll(this)'
|
2009-01-06 11:49:19 +01:00
|
|
|
%select{:name => "selected_action"}
|
|
|
|
%option{:value => '', :selected => 'selected'} Aktion wählen ...
|
2009-08-13 17:23:14 +02:00
|
|
|
%option{:value => "destroy", :onclick => "if (confirm('Willst Du wirklich alle gewählten Artikel löschen?')) { this.up('form').submit(); }; return false;"} Artikel löschen
|
|
|
|
%option{:value => "setNotAvailable", :onclick => "this.up('form').submit()"} Artikel sind nicht mehr verfügbar
|
|
|
|
%option{:value => "setAvailable", :onclick => "this.up('form').submit()"} Artikel sind verfügbar
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-16 16:19:26 +01:00
|
|
|
= hidden_field_tag 'supplier_id', @supplier.id
|
2009-02-10 13:26:10 +01:00
|
|
|
|
|
|
|
%p= pagination_links_remote @articles, :params => {:sort => params[:sort]}
|
2009-08-13 17:23:14 +02:00
|
|
|
= hidden_field_tag :per_page, params[:per_page]
|