<%= t('spree.shopping_cart') %>
<% if @order.line_items.empty? %>
<%= t('spree.your_cart_is_empty') %>
<%= link_to t('spree.continue_shopping'), products_path, class: 'button continue' %>
<% else %>
<%= form_for @order, url: update_cart_path, html: {id: 'update-cart'} do |order_form| %>
<%= render 'form', order_form: order_form %>
<%= order_form.text_field :coupon_code, size: 10, placeholder: t('spree.coupon_code') %>
<%= button_tag class: 'primary', id: 'update-button' do %>
<%= t('spree.update') %>
<% end %>
<%= button_tag class: 'button checkout primary', id: 'checkout-link', name: 'checkout' do %>
<%= t('spree.checkout') %>
<% end %>
<% end %>
<%= form_tag empty_cart_path, method: :put do %>
<%= submit_tag t('spree.empty_cart'), class: 'button gray' %>
<%= t('spree.or') %>
<%= link_to t('spree.continue_shopping'), products_path, class: 'continue button gray' %>
<% end %>
<%= render "spree/shared/paypal_cart_button" %>
<% end %>