Sha256: 31a68a39ded74abc081de459cd8dc7f983c105186f312883b3a0364d281fa93d

Contents?: true

Size: 1.17 KB

Versions: 20

Compression:

Stored size: 1.17 KB

Contents

.card
  .card-body
    %h2 Save Card Info

    %p 
      = succeed('.') do
        - distance = distance_of_time_in_words(Time.zone.now, order.delayed_payment_date)

        The payment date for this order

        - if order.delayed_payment_date_upcoming?
          is in #{distance} from now on #{order.delayed_payment_date.strftime('%F')}
        - elsif order.delayed_payment_date_today?
          was today
        - else
          was #{distance} ago on #{order.delayed_payment_date.strftime('%F')}
    
    - provider_locals = { order: order, deferred_url: deferred_url, declined_url: declined_url }

    - if order.deferred? && order.delayed?
      %p Your existing #{order.delayed_payment_method} will be charged on the payment date.

      = collapse('Change my card info') do
        - EffectiveOrders.delayed_providers.each do |provider|
          = render partial: "/effective/orders/#{provider}/form", locals: provider_locals
    - else
      %p
        Please enter your card information so it can be charged on the payment date.

      - EffectiveOrders.delayed_providers.each do |provider|
        = render partial: "/effective/orders/#{provider}/form", locals: provider_locals

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_orders-6.17.1 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.17.0 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.16.4 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.16.3 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.16.2 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.16.1 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.16.0 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.15.0 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.6 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.5 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.4 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.3 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.2 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.1 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.14.0 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.13.3 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.13.2 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.13.1 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.13.0 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.12.4 app/views/effective/orders/delayed/_form.html.haml