<% @body_id = 'cart' %>

<%= Spree.t(:shopping_cart) %>

<% if @order.line_items.empty? %>
<%= Spree.t(:your_cart_is_empty) %>

<%= link_to Spree.t(:continue_shopping), products_path, class: 'btn btn-outline-secondary' %>

<% else %>
<%= form_for @order, url: update_cart_path, html: { id: 'update-cart' } do |order_form| %>
<%= render partial: 'form', locals: { order_form: order_form } %>
<% if Spree::Frontend::Config[:coupon_codes_enabled] %>
<%= order_form.label :coupon_code, class: 'mr-2' %>
<%= order_form.text_field :coupon_code, size: '30', class: 'form-control' %>
<%= button_tag Spree.t(:coupon_code_apply), class: 'btn btn-outline-secondary' %>
<% end %>
<% end %>
<%= form_tag empty_cart_path, method: :put do %> <% end %>
<% end %>