Sha256: d0e4889a9f04e026b6761c9dd748d8f74fdae40deae128b27738e62e2e7ed096

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

<% @body_id = 'cart' %>

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

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

  <%= hook :empty_cart do %>
    <p><%= t("your_cart_is_empty.") %></p>
    <p><%=link_to t("continue_shopping"), products_path, :class => 'button continue' %></p>
  <% end %>

<% else %>

  <%= form_for(@order, :url => update_cart_path, :html=>{:id=>'updatecart'}) do |order_form| %>
  <%= hook :inside_cart_form do %>

    <%= hook :cart_items do %>
      <%= render :partial => 'form', :locals => {:order_form => order_form} %>
    <% end %>

    <div id="subtotal">
      <h3><%= "#{t("subtotal")}: #{order_price(@order)}" %></h3>
      <div class="links">
        <%= link_to image_tag('/images/update.png') + t("update"), '#', :class => 'button checkout primary', :onclick => "$('form#updatecart').submit(); return false;" %>
        <%= link_to image_tag('/images/checkout.png') + t("checkout"), checkout_path, :class => 'button checkout primary' %>
      </div>
    </div>

    <p><%=link_to t("continue_shopping"), products_path, :class => 'button continue' %></p>

  <% end %>
  <% end %>

  <%= form_tag empty_cart_path, :method => :put do %>
    <p id="clear_cart_link">
      <input type="submit" value="<%= t('empty_cart') %>" class="button" />
    </p>
  <% end %>

<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/orders/edit.html.erb
spree_core-0.40.4 app/views/orders/edit.html.erb
spree_core-0.40.3 app/views/orders/edit.html.erb
spree_core-0.40.2 app/views/orders/edit.html.erb
spree_core-0.40.1 app/views/orders/edit.html.erb
spree_core-0.40.0 app/views/orders/edit.html.erb
spree_core-0.30.1 app/views/orders/edit.html.erb
spree_core-0.30.0 app/views/orders/edit.html.erb