foodsoft/app/views/articles/_articles.html.haml

37 lines
1.5 KiB
Text
Raw Normal View History

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
%table#articles_table.table.table-hover
2009-01-06 11:49:19 +01:00
%thead
%tr
%th
%th= sort_link_helper heading_helper(Article, :name), "name"
2009-01-06 11:49:19 +01:00
%th
2013-10-10 19:22:43 +02:00
%th= sort_link_helper heading_helper(Article, :article_category), "article_category"
%th= sort_link_helper heading_helper(Article, :unit), "unit"
%th= sort_link_helper heading_helper(Article, :note), "note"
%th{:style => "width: 4em;"}= heading_helper Article, :unit_quantity, short: true
%th{:style => "width: 5em;"}= heading_helper Article, :price
%th{:style => "width: 3.5em;"}= heading_helper Article, :tax
%th{:style => "width: 4em;"}= heading_helper Article, :deposit
2019-10-14 09:25:34 +02:00
%th
2009-01-06 11:49:19 +01:00
%tbody#listbody
2019-10-14 09:25:34 +02:00
2012-10-19 01:12:47 +02:00
- unless @articles.empty?
- for article in @articles
= render(article)
2009-01-06 11:49:19 +01:00
%tfoot
%tr
%td{:colspan => '11'}
= check_box_tag :checkall, 1, false, 'data-check-all' => '#articlesInListForm', 'data-ignore-onchange' => true
%select{:name => "selected_action", 'data-submit-onchange' => true}
2013-03-09 00:40:07 +01:00
%option{:value => '', :selected => 'selected'}= t '.option_select'
%option{:value => "destroy", :data => {:confirm => t('.confirm_delete')}}= t '.option_delete'
2013-03-09 00:40:07 +01:00
%option{:value => "setNotAvailable"}= t '.option_not_available'
%option{:value => "setAvailable"}= t '.option_available'
= hidden_field_tag 'supplier_id', @supplier.id
2009-02-10 13:26:10 +01:00
2013-03-09 00:40:07 +01:00
= pagination_links_remote @articles