Sha256: 0dede051c2f397ca39c77f6c9c168dc5ad2fc07b7d983a9da32894b42d9cbd90
Contents?: true
Size: 1.48 KB
Versions: 77
Compression:
Stored size: 1.48 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}): -# = link_to '[+]', new_product_path %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
77 entries across 77 versions & 1 rubygems