Sha256: 93c9bd56098d3bd4a661bedae7eb9001468df20693a2b53dcb18bfd25d25d8d9
Contents?: true
Size: 1.38 KB
Versions: 38
Compression:
Stored size: 1.38 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
Version data entries
38 entries across 38 versions & 1 rubygems