Sha256: 8719ba128e3220e4e3bf426ce4a1f502f0043c3709f7b1e8119b1d0111276a40
Contents?: true
Size: 1.67 KB
Versions: 4
Compression:
Stored size: 1.67 KB
Contents
<% @body_id = 'cart' %> <div class='row'> <div class="span12"> <h1><%= t("shopping_cart")%></h1><br> </div> </div> <% 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 => 'btn btn-primary' %></p> <% end %> <% else %> <%= hook :outside_cart_form do %> <%= 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 class="row"> <div id="subtotal" class="span5 offset7"> <h3 class="pull-right"><%= "#{t("subtotal")}: #{order_price(@order)}" %> <%= link_to '#', :class => 'btn btn-mini', :onclick => "$('form#updatecart').submit(); return false;" do %> <i class="icon-refresh"></i> <%= t("update_cart") %> <% end %> </h3> </div> </div> <div class="row" style="padding-top: 20px;"> <div class="span6"> <%= link_to products_path, :class => 'btn btn-large' do %> <i class="icon-arrow-left"></i> <%= t("continue_shopping") %> <% end %> </div> <div class="span6"> <%= link_to checkout_path, :class => 'btn btn-primary btn-large pull-right' do %> <%= t("checkout") %> <i class="icon-arrow-right icon-white"></i> <% end %> </div> </div> <% end %> <% end %> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems