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

28 lines
815 B
Plaintext
Raw Normal View History

2013-02-13 01:18:50 +01:00
- title t('.title')
2012-10-29 18:28:17 +01:00
.well.well-small
%dl.dl-horizontal
2013-02-13 01:18:50 +01:00
%dt= t '.date'
2012-10-29 18:28:17 +01:00
%dd= format_date @stock_taking.date
2013-02-13 01:18:50 +01:00
%dt= t '.note'
2012-10-29 18:28:17 +01:00
%dd= simple_format @stock_taking.note
2012-10-29 18:28:17 +01:00
%table.table.table-striped
%tr
2013-02-13 01:18:50 +01:00
%th= t '.article'
%th= t '.supplier'
%th= t '.unit'
%th= t '.amount'
- for stock_change in @stock_taking.stock_changes
%tr
%td= stock_change.stock_article.name
%td= stock_change.stock_article.supplier.name
%td= stock_change.stock_article.unit
%td= stock_change.quantity
2012-10-29 18:28:17 +01:00
.btn-group
2013-02-13 01:18:50 +01:00
= link_to t('ui.edit'), edit_stock_taking_path(@stock_taking), class: 'btn'
= link_to t('.overview'), stock_takings_path, class: 'btn'
= link_to t('ui.delete'), @stock_taking, :method => :delete, :data => {:confirm => t('.confirm_delete')},
2013-02-13 01:18:50 +01:00
class: 'btn btn-danger'