Sha256: e46f98516fa75ab850629e6935f588164cf41c6e6c5072634b1a1b6b274dcf69

Contents?: true

Size: 1.44 KB

Versions: 13

Compression:

Stored size: 1.44 KB

Contents

<% @body_id = 'cart' %>

<h1><%= t(:shopping_cart) %></h1>

<% if @order.line_items.empty? %>

  <div data-hook="empty_cart">
    <p><%= t(:your_cart_is_empty) %></p>
    <p><%= link_to t(:continue_shopping), products_path, :class => 'button continue' %></p>
  </div>

<% else %>
  <div data-hook="outside_cart_form">
    <%= form_for @order, :url => update_cart_path, :html => {:id => 'update-cart'} do |order_form| %>
      <div data-hook="inside_cart_form">

        <div data-hook="cart_items">
          <%= render :partial => 'form', :locals => { :order_form => order_form } %>
        </div>

        <div class="links columns ten alpha" data-hook="cart_buttons">
          <%= button_tag :class => 'primary', :id => 'update-button' do %>
            <%= t(:update) %>
          <% end %>
         <%= link_to t(:checkout), checkout_path, :class => 'button checkout primary', :id => 'checkout-link' %>
        </div>

        <div id="subtotal" data-hook class="columns six omega">
          <h5><%= t(:subtotal) %>: <span class="order-total"><%= order_subtotal(@order) %></span></h5>
        </div>

      </div>
    <% end %>
  </div>
  <div id="empty-cart" data-hook>
  <%= form_tag empty_cart_path, :method => :put do %>
    <p id="clear_cart_link" data-hook>
      <%= submit_tag t(:empty_cart), :class => 'button' %>
      <%= t(:or) %>
      <%= link_to t(:continue_shopping), products_path, :class => 'continue button' %>
    </p>
  <% end %>
  </div>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/orders/edit.html.erb
spree_core-1.0.6 app/views/spree/orders/edit.html.erb
spree_core-1.1.1 app/views/spree/orders/edit.html.erb
spree_core-1.1.0 app/views/spree/orders/edit.html.erb
spree_core-1.0.4 app/views/spree/orders/edit.html.erb
spree_core-1.1.0.rc2 app/views/spree/orders/edit.html.erb
spree_core-1.1.0.rc1 app/views/spree/orders/edit.html.erb
spree_core-1.0.3 app/views/spree/orders/edit.html.erb
spree_core-1.0.2 app/views/spree/orders/edit.html.erb
spree_core-1.0.1 app/views/spree/orders/edit.html.erb
spree_core-1.0.0 app/views/spree/orders/edit.html.erb
spree_core-1.0.0.rc4 app/views/spree/orders/edit.html.erb
spree_core-1.0.0.rc3 app/views/spree/orders/edit.html.erb