Sha256: 60081b3418e14dbeabe19381b5d5c461dcb5d1f4ff551ee0fb56efa9790a900b
Contents?: true
Size: 1.72 KB
Versions: 4
Compression:
Stored size: 1.72 KB
Contents
.effective-order = simple_form_for(order, (EffectiveOrders.simple_form_options || {}).merge(url: checkout_step1_form_url(order, namespace))) do |f| = render partial: 'effective/orders/order_items', locals: { order: order, form: f } - unless f.object.pending? || (current_cart && current_cart.blank?) = link_to 'Change Items', effective_orders.cart_path, rel: :nofollow, class: 'btn btn-default' - if order.errors[:order_items].present? %p.inline-errors= order.errors[:order_items].first - if order.errors[:total].present? %p.inline-errors= order.errors[:total].first - if EffectiveOrders.collect_user_fields.present? && (f.object.user rescue nil).present? = render partial: 'effective/orders/order_user_fields', locals: { form: f, user: f.object.user } - num_addresses = [EffectiveOrders.require_billing_address, EffectiveOrders.require_shipping_address].count(true) - if num_addresses > 0 .row - if EffectiveOrders.require_billing_address %div{class: "col-sm-#{12 / num_addresses}"} %h2 Billing Address = effective_address_fields(f, :billing_address) - if EffectiveOrders.require_shipping_address %div{class: "col-sm-#{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 } %p.text-right = f.submit 'Save and Continue', class: 'btn btn-primary', rel: :nofollow, data: { disable_with: 'Saving...' }
Version data entries
4 entries across 4 versions & 1 rubygems