foodsoft/app/views/stock_takings/show.html.haml
wvengen 7841245795 migrate to Rails 4.0 (closes foodcoops#214)
Conflicts:
	Gemfile.lock
2014-02-24 12:46:28 +01:00

27 lines
815 B
Text

- title t('.title')
.well.well-small
%dl.dl-horizontal
%dt= t '.date'
%dd= format_date @stock_taking.date
%dt= t '.note'
%dd= simple_format @stock_taking.note
%table.table.table-striped
%tr
%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
.btn-group
= 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')},
class: 'btn btn-danger'