lib/rawbotz/views/product/view.haml in rawbotz-0.1.4 vs lib/rawbotz/views/product/view.haml in rawbotz-0.1.5
- old
+ new
@@ -31,9 +31,17 @@
%label(for="packsize") Pack size
= @product.packsize
.pure-control-group
%label(for="shelve") Shelve
= @product.shelve_nr
+ - if @product.supplier_sku != ""
+ .pure-control-group
+ %label(for="supplier_sku") Supplier SKU
+ = @product.supplier_sku
+ - if @product.supplier_prod_name != ""
+ .pure-control-group
+ %label(for="supplier_prod_name") Supplier Product Name
+ = @product.supplier_prod_name
%h2 Actions
- if !@product.remote_product.present?
= haml "widgets/_link".to_sym, locals: {local_product: @product, redirect_to: 'product'}
%br