Sha256: d0d5f1a5b1e1919406e504b8651cce1a267101f254eb47344ce4725d13232f4a
Contents?: true
Size: 1.43 KB
Versions: 45
Compression:
Stored size: 1.43 KB
Contents
.products-index.maxwidth .a %h5 New Product: = render 'wco/products/form', product: Wco::Product.new %hr .row .col-md-6 %h5.collapse-expand#stripeProducts Stripe Products (#{@stripe_products.length}): %ol - @stripe_products.each do |product_id, product| %li .flex-row = button_to '[x]', product_path( product.id ), method: :delete, data: { :confirm => 'Are you sure?' } = link_to '[~]', edit_product_path( product.id ) %span.gray= product.id - if product[:wco_product] = link_to product.name, product_path( product ) - else = product.name %ul %li New price: = render 'wco/prices/form', price: Wco::Price.new({ product: product[:wco_product] }) - product[:prices].each do |price_id, price| %li %span.gray= price.id - if @wco_prices_hash[price.id] = link_to "#{price.unit_amount.to_f/100}/#{price.type}", price_path( @wco_prices_hash[price.id] ) - else = "#{price.unit_amount.to_f/100}/#{price.type}" %hr .col-md-6 %h5.collapse-expand#wcoProducts Wco::Product`s (#{@wco_products.length}): = render 'table', products: @wco_products -# = render 'list', products: @wco_products
Version data entries
45 entries across 45 versions & 1 rubygems