Sha256: b941b6ea20d85b9e83c7b45d8053ab5b94cc3879da4773342de94525361ba837

Contents?: true

Size: 1.85 KB

Versions: 37

Compression:

Stored size: 1.85 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
  .form-actions.form-actions-bordered.justify-content-end
    - provider_locals = { order: order, purchased_url: purchased_url, declined_url: declined_url }

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

    - elsif EffectiveOrders.refunds? && order.refund?
      -# Nothing

    - 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.paypal?
        = render partial: '/effective/orders/paypal/form', locals: provider_locals

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

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

  - if EffectiveOrders.pretend? && EffectiveOrders.pretend_message.present?
    %p.text-right= EffectiveOrders.pretend_message

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
effective_orders-4.2.7 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.6 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.5 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.4 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.3 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.2 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.1 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.2.0 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.1.5 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.1.4 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.1.3 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.1.2 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.1.1 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.1.0 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.0.6 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.0.5 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.0.4 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.0.3 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.0.2 app/views/effective/orders/_checkout_step2.html.haml
effective_orders-4.0.1 app/views/effective/orders/_checkout_step2.html.haml