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

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