Sha256: 7caf1a248950650c84399d9e7d058fc86936af51710e5aa011ccbddd94552e24
Contents?: true
Size: 1.24 KB
Versions: 40
Compression:
Stored size: 1.24 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 - 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
40 entries across 40 versions & 1 rubygems