Sha256: d0d5f1a5b1e1919406e504b8651cce1a267101f254eb47344ce4725d13232f4a

Contents?: true

Size: 1.43 KB

Versions: 45

Compression:

Stored size: 1.43 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}):
      %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

45 entries across 45 versions & 1 rubygems

Version Path
wco_models-3.1.0.155 app/views/wco/products/index.haml
wco_models-3.1.0.154 app/views/wco/products/index.haml
wco_models-3.1.0.153 app/views/wco/products/index.haml
wco_models-3.1.0.152 app/views/wco/products/index.haml
wco_models-3.1.0.151 app/views/wco/products/index.haml
wco_models-3.1.0.150 app/views/wco/products/index.haml
wco_models-3.1.0.149 app/views/wco/products/index.haml
wco_models-3.1.0.148 app/views/wco/products/index.haml
wco_models-3.1.0.147 app/views/wco/products/index.haml
wco_models-3.1.0.146 app/views/wco/products/index.haml
wco_models-3.1.0.145 app/views/wco/products/index.haml
wco_models-3.1.0.144 app/views/wco/products/index.haml
wco_models-3.1.0.143 app/views/wco/products/index.haml
wco_models-3.1.0.142 app/views/wco/products/index.haml
wco_models-3.1.0.141 app/views/wco/products/index.haml
wco_models-3.1.0.140 app/views/wco/products/index.haml
wco_models-3.1.0.139 app/views/wco/products/index.haml
wco_models-3.1.0.138 app/views/wco/products/index.haml
wco_models-3.1.0.137 app/views/wco/products/index.haml
wco_models-3.1.0.136 app/views/wco/products/index.haml