Sha256: 765d423c28c97e6e8323c3e862a92d9b9bbcad0846f590a6a6dc43b4855d0b23

Contents?: true

Size: 1.47 KB

Versions: 37

Compression:

Stored size: 1.47 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 }

    = f.submit 'Proceed to Checkout'

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
effective_orders-4.0.0beta19 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta18 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta17 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta16 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta15 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta14 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta13 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta12 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta11 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta10 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta9 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta8 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta7 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta6 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta5 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta4 app/views/effective/orders/_checkout_step1.html.haml
effective_orders-4.0.0beta3 app/views/effective/orders/_checkout_step1.html.haml