Sha256: 6f89e2750d778f9ec17eb2c65e593438d63d3450114226f296984a75260efcbc

Contents?: true

Size: 1.36 KB

Versions: 98

Compression:

Stored size: 1.36 KB

Contents

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

  <div class="row" data-hook="checkout_header">
    <h1 class="columns three alpha" data-hook="checkout_title"><%= t('spree.checkout') %></h1>
    <div class="columns thirteen omega" data-hook="checkout_progress"><%= checkout_progress %></div>
  </div>

  <div class="row" data-hook="checkout_content">
    <div class="columns <%= if @order.state != 'confirm' then 'alpha twelve' else 'alpha omega sixteen' 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="field field-required" style='clear: both'>
            <%= form.label :email %><br />
            <%= form.email_field :email, required: true %>
          </div>
        <% end %>
        <%= render @order.state, form: form %>
      <% end %>
    </div>
    <% if @order.state != 'confirm' %>
      <div id="checkout-summary" data-hook="checkout_summary_box" class="columns omega four">
        <%= 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>

Version data entries

98 entries across 98 versions & 2 rubygems

Version Path
solidus_frontend-2.6.2 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.14 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.13 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.12 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.11 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.10 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.9 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.8 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.7 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.6 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.5 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.4 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.3 app/views/spree/checkout/edit.html.erb
solidus_frontend_devise_token_auth-2.8.0.alpha.2 app/views/spree/checkout/edit.html.erb
solidus_frontend-2.7.0 app/views/spree/checkout/edit.html.erb
solidus_frontend-2.6.1 app/views/spree/checkout/edit.html.erb
solidus_frontend-2.6.0 app/views/spree/checkout/edit.html.erb
solidus_frontend-2.6.0.rc1 app/views/spree/checkout/edit.html.erb