app/views/orders/edit.html.erb in spree-0.7.1 vs app/views/orders/edit.html.erb in spree-0.8.0
- old
+ new
@@ -1,22 +1,22 @@
-<div id="order">
- <h1><%= t("shopping_cart")%></h1>
- <% form_for(:order, :url => object_url, :html => { :method => :put}) do |f| %>
- <%= render :partial => 'form', :locals => {:f => f} %>
+<% @body_id = 'cart' %>
- <div id="subtotal">
- <h3><%= "#{t("subtotal")}: #{order_price(@order)}" %></h3>
- <%= submit_tag t('update') %>
- <%= link_to t("checkout"), checkout_order_url(@order) %> <!-- todo: replace with cart image button -->
- </div>
+<h1><%= t("shopping_cart")%></h1>
- <p><%=link_to t("continue_shopping"), products_path %></p>
-
- <% unless @order.line_items.empty? %>
- <p id="clear_cart_link">
- <small>
- <%= link_to t("empty_cart"), object_url, :method => :delete %>
- </small>
- </p>
- <% end %>
- <% end %>
-</div>
\ No newline at end of file
+<% 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 -%>