Sha256: 6f2fe1f6f7e806e5a16fd464f1866b5fd7bbb9b1a8da3e735d1bd7409f9f59ce

Contents?: true

Size: 1.84 KB

Versions: 19

Compression:

Stored size: 1.84 KB

Contents

<% content_for :google_analytics do %>
  <%= render partial: 'spree/shared/google_checkout.js', locals: { order: @order, step_number: (@order.checkout_steps.index(@order.state) + 1) } %>
<% end %>

<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.text_field :email, class: 'form-control' %>
              </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.guest_token %>"
</script>

<% if I18n.locale != :en %>
  <%= javascript_include_tag 'jquery.validate/localization/messages_' + I18n.locale.to_s.downcase.gsub('-', '') %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_frontend-3.1.14 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.13 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.12 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.11 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.10 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.9 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.8 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.7 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.6 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.5 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.4 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.3 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.2 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.1 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.0 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.0.rc4 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.0.rc3 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.0.rc2 app/views/spree/checkout/edit.html.erb
spree_frontend-3.1.0.rc1 app/views/spree/checkout/edit.html.erb