Sha256: 26eedbcaa69c4efdeda42a3da5adc08840e04fa02eaa93a38ab641e853d293e1

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 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.beginning_of_day)

        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

4 entries across 4 versions & 1 rubygems

Version Path
effective_orders-6.18.2 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.18.1 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.18.0 app/views/effective/orders/delayed/_form.html.haml
effective_orders-6.17.2 app/views/effective/orders/delayed/_form.html.haml