foodsoft/app/views/stock_takings/_stock_takings.html.haml

20 lines
617 B
Text
Raw Permalink Normal View History

2012-10-29 18:28:17 +01:00
- if StockTaking.count > 20
= items_per_page
= pagination_links_remote @stock_takings
%table.table.table-striped
%thead
%tr
2013-02-13 01:18:50 +01:00
%th= t '.date'
%th= t '.note'
2012-10-29 18:28:17 +01:00
%th
%tbody
- for stock_taking in @stock_takings
%tr
%td= link_to format_date(stock_taking.date), stock_taking
%td= truncate stock_taking.note
%td
2013-02-13 01:18:50 +01:00
= link_to t('ui.edit'), edit_stock_taking_path(stock_taking), class: 'btn btn-mini'
= link_to t('ui.delete'), stock_taking, :data => {:confirm => t('.confirm_delete')}, :method => :delete,
2013-02-13 01:18:50 +01:00
class: 'btn btn-mini btn-danger'