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

Version Path
wco_models-3.1.0.110 app/views/wco/products/index.haml
wco_models-3.1.0.109 app/views/wco/products/index.haml
wco_models-3.1.0.108 app/views/wco/products/index.haml
wco_models-3.1.0.107 app/views/wco/products/index.haml
wco_models-3.1.0.106 app/views/wco/products/index.haml
wco_models-3.1.0.105 app/views/wco/products/index.haml
wco_models-3.1.0.104 app/views/wco/products/index.haml
wco_models-3.1.0.103 app/views/wco/products/index.haml
wco_models-3.1.0.102 app/views/wco/products/index.haml
wco_models-3.1.0.101 app/views/wco/products/index.haml
wco_models-3.1.0.100 app/views/wco/products/index.haml
wco_models-3.1.0.99 app/views/wco/products/index.haml
wco_models-3.1.0.98 app/views/wco/products/index.haml
wco_models-3.1.0.97 app/views/wco/products/index.haml
wco_models-3.1.0.96 app/views/wco/products/index.haml
wco_models-3.1.0.95 app/views/wco/products/index.haml
wco_models-3.1.0.94 app/views/wco/products/index.haml
wco_models-3.1.0.93 app/views/wco/products/index.haml
wco_models-3.1.0.92 app/views/wco/products/index.haml
wco_models-3.1.0.91 app/views/wco/products/index.haml