tap/app/views/stocks/new.html.haml
2015-09-19 11:05:43 +02:00

13 lines
454 B
Text

= content_for :title, "Add stock"
.row
.col-md-6.col-md-offset-3
= f_form_for @stock do |f|
= render 'stocks/errors'
= f.fields_for :stock_entries do |se_field|
.row
.col-sm-3
= image_tag se_field.object.product.avatar
.col-sm-9
= se_field.hidden_field :product_id
= se_field.number_field :count, skip_label: true
= f.submit "Insert stock", class: 'btn btn-primary'