tap/app/views/products/link.html.haml
2016-02-04 14:24:02 +01:00

14 lines
579 B
Text

.row
.col-md-7
%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
= button_to product_barcodes_path(product), class: "btn btn-default product", data: { product: product.id, dismiss: :modal }, params: { "barcode[code]" => params[:barcode] } do
%p= product.name
= image_tag product.avatar(:dagschotel), class: "center img-responsive"
.col-md-5
%h4 or create a new one
= render 'products/form'