Sha256: 43c63f9b35807aae3415c09b609e9b202298adf5acd79ec5c39061f5ee4b8fc7
Contents?: true
Size: 1.38 KB
Versions: 10
Compression:
Stored size: 1.38 KB
Contents
.products-index.max-width .a %h5 New Product: = render 'ish_manager/products/form', product: Wco::Product.new %hr %h5.collapse-expand#stripeProducts Stripe Products (#{@stripe_products.length}): -# = link_to '[+]', new_product_path %ol - @stripe_products.each do |product_id, product| %li = link_to '[~]', edit_product_path( product.id ) .inline-block= button_to '[x]', product_path( product.id ), :method => :delete, :data => { :confirm => 'Are you sure?' } %span.gray= product.id - if product[:wco_product] = link_to product.name, product_path( product ) - else = product.name %ul %li New price: = render 'ish_manager/prices/form', price: Wco::Price.new({ product: product[:wco_product] }) - product[:prices].each do |price_id, price| %li %span.gray= price.id - price_str = "$#{ price[:unit_amount].to_f/100 }/#{ (price[:recurring]||{})[:interval]||'onetime' }" - if @wco_prices_hash[price.id] = link_to price_str, price_path( @wco_prices_hash[price.id] ) - else = price_str %hr %h5.collapse-expand#wcoProducts Wco::Products (#{@wco_products.length}): = render 'index_table', products: @wco_products -# = render 'index_list', products: @wco_products
Version data entries
10 entries across 10 versions & 1 rubygems