tap/app/views/products/link.html.haml

15 lines
579 B
Plaintext
Raw Normal View History

.row
.col-md-7
2016-02-03 23:23:12 +00:00
%h4.center Select a product to link the barcode to an existing product ...
%p
#product_buttons.row
- Product.all.each do |product|
%tr
.col-md-3
2016-02-04 13:24:02 +00:00
= button_to product_barcodes_path(product), class: "btn btn-default product", data: { product: product.id, dismiss: :modal }, params: { "barcode[code]" => params[:barcode] } do
2016-02-03 23:23:12 +00:00
%p= product.name
2016-02-04 13:24:02 +00:00
= image_tag product.avatar(:dagschotel), class: "center img-responsive"
.col-md-5
%h4 or create a new one
= render 'products/form'