Sha256: 01b364a683b360057d059a0d852ad40ab8876b693be2fb0616f1b5f57e6f0129

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

= render order

.effective-order.effective-order-purchase-actions
  - if EffectiveOrders.moneris_enabled
    = render :partial => '/effective/orders/moneris/form', :locals => {:order => order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url}

  - if EffectiveOrders.paypal_enabled
    = render :partial => '/effective/orders/paypal/form', :locals => {:order => order}

  - if EffectiveOrders.stripe_enabled
    = render :partial => '/effective/orders/stripe/form', :locals => {:order => order}

  - if EffectiveOrders.allow_pretend_purchase_in_production
    = link_to 'Purchase Order', effective_orders.pretend_purchase_path(order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url), :class => 'btn btn-primary', :data => {'disable_with' => 'Purchasing...' }
    %p= EffectiveOrders.allow_pretend_purchase_in_production_message
  - elsif (Rails.env.development? || Rails.env.test?)
    = link_to 'Purchase Order (development only)', effective_orders.pretend_purchase_path(order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url), :class => 'btn btn-primary', :data => {'disable_with' => 'Purchasing...' }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_orders-1.3.11 app/views/effective/orders/_checkout_step_2.html.haml
effective_orders-1.3.10 app/views/effective/orders/_checkout_step_2.html.haml
effective_orders-1.3.9 app/views/effective/orders/_checkout_step_2.html.haml
effective_orders-1.3.8 app/views/effective/orders/_checkout_step_2.html.haml