Sha256: f79a24267c7820781334a1e265f447c1724f8644761b14bc0c7fdb653fec2f48
Contents?: true
Size: 775 Bytes
Versions: 5
Compression:
Stored size: 775 Bytes
Contents
%table.pure-table %thead %tr %th Product name %th Product ID %th Remote Name %th Supplier %th Last Stock %tbody - products.each do |product| %tr %input.local_product_id(type="hidden" value="#{product.id}") %td %a(href="/product/#{product.id}")= product.name %td= product.product_id %td - if product.remote_product.nil? %a(href="/product/#{product.id}/link") Linking view = haml "widgets/_ajax_link".to_sym, locals: {local_product: product, redirect_to: 'products'} - else = product.remote_product.name %td= product.supplier.try(:name) %td %a(href="") Show modal
Version data entries
5 entries across 5 versions & 1 rubygems