Sha256: ad0085906e3e6ae0c35e542592eb524c205586775403fc7b259f751d75693e06

Contents?: true

Size: 1.54 KB

Versions: 19

Compression:

Stored size: 1.54 KB

Contents

<% @body_id = 'checkout-page' %>

<div id="checkout" data-hook>
  <%= render partial: 'spree/shared/error_messages', locals: { target: @order } %>

  <div class="row" data-hook="checkout_header">
    <div class="col-sm-3">
      <h1 data-hook="checkout_title"><%= Spree.t(:checkout) %></h1>
    </div>
    <div class="col-sm-9" data-hook="checkout_progress">
      <%= checkout_progress %>
    </div>
  </div>

  <div class="row" data-hook="checkout_content">
    <div class="<%= if @order.state != 'confirm' then 'col-md-9' else 'col-md-12' end %>" data-hook="checkout_form_wrapper">
      <%= form_for @order, url: update_checkout_path(@order.state), html: { id: "checkout_form_#{@order.state}" } do |form| %>
        <% if @order.state == 'address' || !@order.email? %>
          <div class="panel panel-default">
            <div class="panel-body">
              <div class="form-group">
                <%= form.label :email %>
                <%= form.email_field :email, class: 'form-control', required: true %>
              </div>
            </div>
          </div>
        <% end %>
        <%= form.hidden_field :state_lock_version %>
        <%= render @order.state, form: form %>
      <% end %>
    </div>
    <% if @order.state != 'confirm' %>
      <div id="checkout-summary" data-hook="checkout_summary_box" class="col-md-3">
        <%= render partial: 'summary', locals: { order: @order } %>
      </div>
    <% end %>
  </div>
</div>

<script>
  Spree.current_order_id = "<%= @order.number %>"
  Spree.current_order_token = "<%= @order.token %>"
</script>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_frontend-3.7.14.1 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.14 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.13 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.12 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.11 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.10 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.9 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.8 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.7 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.6 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.5 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.4 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.3 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.2 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.1 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.0 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.0.rc3 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.0.rc2 app/views/spree/checkout/edit.html.erb
spree_frontend-3.7.0.rc1 app/views/spree/checkout/edit.html.erb