2012-10-19 01:12:47 +02:00
|
|
|
- if @supplier.articles.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @articles
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-11-10 16:44:05 +01:00
|
|
|
%table#articles_table.table.table-hover
|
2009-01-06 11:49:19 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th
|
2012-11-10 16:44:05 +01:00
|
|
|
%th= sort_link_helper "Name", "name"
|
2009-01-06 11:49:19 +01:00
|
|
|
%th
|
2012-11-10 16:44:05 +01:00
|
|
|
%th= sort_link_helper "Kategorie", "category"
|
|
|
|
%th= sort_link_helper "Einheit", "unit"
|
|
|
|
%th= sort_link_helper "Notiz", "note"
|
2009-02-10 13:26:10 +01:00
|
|
|
%th{:style => "width: 4em;"} Gebgr.
|
2011-05-19 19:49:37 +02:00
|
|
|
%th{:style => "width: 5em;"} Preis
|
2009-02-10 13:26:10 +01:00
|
|
|
%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
|
|
|
|
|
2012-10-19 01:12:47 +02:00
|
|
|
- unless @articles.empty?
|
2011-05-19 19:49:37 +02:00
|
|
|
- for article in @articles
|
|
|
|
= render(article)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tfoot
|
|
|
|
%tr
|
2009-01-16 16:19:26 +01:00
|
|
|
%td{:colspan => '11'}
|
2011-05-19 19:49:37 +02:00
|
|
|
= check_box_tag :checkall, 1, false, 'data-check-all' => '#articlesInListForm', 'data-ignore-onchange' => true
|
|
|
|
%select{:name => "selected_action", 'data-submit-onchange' => true}
|
2009-01-06 11:49:19 +01:00
|
|
|
%option{:value => '', :selected => 'selected'} Aktion wählen ...
|
2011-05-19 19:49:37 +02:00
|
|
|
%option{:value => "destroy", 'data-confirm' => 'Willst Du wirklich alle gewählten Artikel löschen?'} Artikel löschen
|
|
|
|
%option{:value => "setNotAvailable"} Artikel sind nicht mehr verfügbar
|
|
|
|
%option{:value => "setAvailable"} Artikel sind verfügbar
|
2009-01-16 16:19:26 +01:00
|
|
|
= hidden_field_tag 'supplier_id', @supplier.id
|
2009-02-10 13:26:10 +01:00
|
|
|
|
2012-10-19 01:12:47 +02:00
|
|
|
= pagination_links_remote @articles
|