Sha256: 38760256e4c8c46514361b62ef46f883cb60fe4639a87090f43e445f0e43162b

Contents?: true

Size: 1.46 KB

Versions: 72

Compression:

Stored size: 1.46 KB

Contents

<% @body_id = 'cart' %>
<div data-hook="cart_container">
  <h1><%= t('spree.shopping_cart') %></h1>

  <% if @order.line_items.empty? %>

    <div data-hook="empty_cart">
      <p><%= t('spree.your_cart_is_empty') %></p>
      <p><%= link_to t('spree.continue_shopping'), products_path, class: 'button continue' %></p>
    </div>

  <% else %>

    <div data-hook="outside_cart_form">
      <%= form_for @order, url: update_cart_path, html: {id: 'update-cart'} do |order_form| %>
        <div data-hook="inside_cart_form">

          <div data-hook="cart_items">
            <%= render 'spree/orders/form', order_form: order_form %>
          </div>

          <div class="links columns sixteen alpha omega" data-hook="cart_buttons">
            <%= button_tag t("spree.update"), class: "primary", id: "update-button" %>

            <%= button_tag class: 'button checkout primary', id: 'checkout-link', name: 'checkout' do %>
              <%= t('spree.checkout') %>
            <% end %>
          </div>
        </div>
      <% end %>
    </div>

    <div id="empty-cart" data-hook>
      <%= form_tag empty_cart_path, method: :put do %>
        <p id="clear_cart_link" data-hook>
        <%= submit_tag t('spree.empty_cart'), class: 'button gray' %>
        <%= t('spree.or') %>
        <%= link_to t('spree.continue_shopping'), products_path, class: 'continue button gray' %>
        </p>
      <% end %>

      <%= render template: 'spree/coupon_codes/new' %>
    </div>

  <% end %>
</div>

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
solidus_frontend-4.0.0 app/views/spree/orders/edit.html.erb
solidus_frontend-4.0.0.dev app/views/spree/orders/edit.html.erb
solidus_frontend-3.4.0 app/views/spree/orders/edit.html.erb
solidus_frontend-3.1.9 app/views/spree/orders/edit.html.erb
solidus_frontend-3.4.0.dev app/views/spree/orders/edit.html.erb
solidus_frontend-3.3.0 app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.5 app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.4 app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.3 app/views/spree/orders/edit.html.erb
solidus_frontend-3.1.8 app/views/spree/orders/edit.html.erb
solidus_frontend-3.0.8 app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.2 app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.1 app/views/spree/orders/edit.html.erb
solidus_frontend-3.3.0.alpha app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.0 app/views/spree/orders/edit.html.erb
solidus_frontend-3.2.0.alpha app/views/spree/orders/edit.html.erb
solidus_frontend-3.0.7 app/views/spree/orders/edit.html.erb
solidus_frontend-2.11.17 app/views/spree/orders/edit.html.erb
solidus_frontend-3.1.7 app/views/spree/orders/edit.html.erb
solidus_frontend-2.11.16 app/views/spree/orders/edit.html.erb