Sha256: 4db480ab016d477faf89e00becc68966d8aa87f1cc816c823567a0cf18cc5ab4

Contents?: true

Size: 989 Bytes

Versions: 7

Compression:

Stored size: 989 Bytes

Contents

<% @body_id = 'cart' %>

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

<% form_for(:order, :url => object_url, :html => { :method => :put, :id => 'updatecart' }) do |f| %>
  <%= render :partial => 'form', :locals => {:f => f} %>
  <% unless @order.line_items.empty? -%>
  <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_order_url(@order), :class => 'button checkout primary' %>
    </div>
  </div>
  <% end -%>
  <p><%=link_to t("continue_shopping"), products_path, :class => 'button continue' %></p>
  <% unless @order.line_items.empty? -%>
  <p id="clear_cart_link">
    <%= link_to t("empty_cart"), object_url, :method => :delete, :class => 'button empty'  %>
  </p>
  <% end -%>
<% end -%>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/views/orders/edit.html.erb
spree-0.8.4 app/views/orders/edit.html.erb
spree-0.8.5 app/views/orders/edit.html.erb
spree-0.8.0 app/views/orders/edit.html.erb
spree-0.8.1 app/views/orders/edit.html.erb
spree-0.8.2 app/views/orders/edit.html.erb
spree-0.8.3 app/views/orders/edit.html.erb