Sha256: fa76129b073fc216c426284d04d23d92919bef82e1b42a71037495153a724243

Contents?: true

Size: 1.72 KB

Versions: 20

Compression:

Stored size: 1.72 KB

Contents

= render partial: 'effective/orders/order', locals: { order: order }

- if order.persisted? && order.user == current_user
  .effective-order-change-items
    = link_to 'Change Addresses', effective_orders.edit_order_path(order), rel: :nofollow, class: 'btn btn-secondary'

.effective-order-purchase-actions
  - provider_locals = { order: order, purchased_url: purchased_url, declined_url: declined_url, deferred_url: deferred_url }

  - if EffectiveOrders.free? && order.free?
    = render partial: '/effective/orders/free/form', locals: provider_locals

  - elsif EffectiveOrders.refund? && order.refund?
    = render partial: '/effective/orders/refund/form', locals: provider_locals

  - else
    - if EffectiveOrders.pretend?
      = render partial: '/effective/orders/pretend/form', locals: provider_locals

    - if EffectiveOrders.moneris?
      = render partial: '/effective/orders/moneris/form', locals: provider_locals

    - if EffectiveOrders.moneris_checkout?
      = render partial: '/effective/orders/moneris_checkout/form', locals: provider_locals

    - if EffectiveOrders.paypal?
      = render partial: '/effective/orders/paypal/form', locals: provider_locals

    - if EffectiveOrders.stripe?
      = render partial: '/effective/orders/stripe/form', locals: provider_locals

    - if EffectiveOrders.deferred? && order.user == current_user
      %p.my-4.text-center - or -
      = render partial: '/effective/orders/deferred/form', locals: provider_locals

  - if EffectiveResources.authorized?(controller, :admin, :effective_orders) && order.user != current_user
    - if EffectiveOrders.mark_as_paid?
      .effective-order-admin-purchase-actions
        = render partial: '/effective/orders/mark_as_paid/form', locals: provider_locals

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_orders-5.2.1 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.2.0 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.17 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.16 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.15 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.14 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.13 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.12 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.11 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.10 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.9 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.8 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.7 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.6 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.5 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.4 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.3 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.2 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.1 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-5.1.0 app/views/effective/orders/_checkout_step2.html.haml