Sha256: a3d6f88735038a4d5d35ec61c515bb063218f157645793115aa2003b6eef3340

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

.effective-order
  = effective_form_with(model: order, url: checkout_step1_form_url(order, namespace)) do |f|
    = render partial: 'effective/orders/order_notes', locals: { order: order }
    = render partial: 'effective/orders/order_items', locals: { order: order }

    - if current_cart.present?
      .effective-order-change-items
        = link_to 'Change Items', effective_orders.cart_path, rel: :nofollow, class: 'btn btn-secondary'

    - if EffectiveOrders.collect_user_fields.present? && f.object.user.present?
      = render partial: 'effective/orders/order_user_fields', locals: { form: f, user: f.object.user }

    - num_addresses = [EffectiveOrders.billing_address, EffectiveOrders.shipping_address].count(true)

    - if num_addresses > 0
      .effective-order-addresses
        .row
          - if EffectiveOrders.billing_address
            %div{class: "col-md-#{12 / num_addresses}"}
              %h2 Billing Address
              = effective_address_fields(f, :billing_address)

          - if EffectiveOrders.shipping_address
            %div{class: "col-md-#{12 / num_addresses}"}
              %h2 Shipping Address
              = effective_address_fields(f, :shipping_address)

    - if EffectiveOrders.collect_note
      = render partial: 'effective/orders/order_note_fields', locals: { form: f }

    - if EffectiveOrders.terms_and_conditions
      = render partial: 'effective/orders/order_terms_and_conditions_fields', locals: { form: f }

    = effective_save(f, 'Proceed to Checkout')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_orders-4.0.0beta2 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta1 app/views/effective/orders/_checkout_step1.html.haml