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

15 lines
579 B
Text
Raw Normal View History

.row
.col-md-7
2016-02-04 00:23:12 +01: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 14:24:02 +01: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-04 00:23:12 +01:00
%p= product.name
2016-02-04 14:24:02 +01:00
= image_tag product.avatar(:dagschotel), class: "center img-responsive"
.col-md-5
%h4 or create a new one
= render 'products/form'