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

Version Path
ish_manager-0.1.8.503 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.500 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.499 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.498 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.497 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.496 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.495 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.494 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.493 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.492 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.491 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.490 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.489 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.488 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.487 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.486 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.485 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.484 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.483 app/views/ish_manager/products/index.haml
ish_manager-0.1.8.482 app/views/ish_manager/products/index.haml