Sha256: 814548fa523a01f1b3c7055f9295b7a476b527b7422c858895698dad3b6efc93

Contents?: true

Size: 1.53 KB

Versions: 16

Compression:

Stored size: 1.53 KB

Contents

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

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

    <div data-hook="empty_cart">
      <p><%= Spree.t(:your_cart_is_empty) %></p>
      <p><%= link_to Spree.t(: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 'form', order_form: order_form %>
          </div>

          <div class="links columns sixteen alpha omega" data-hook="cart_buttons">
            <%= order_form.text_field :coupon_code, size: 10, placeholder: Spree.t(:coupon_code) %>
            <%= button_tag class: 'primary', id: 'update-button' do %>
              <%= Spree.t(:update) %>
            <% end %>
            <%= button_tag class: 'button checkout primary', id: 'checkout-link', name: 'checkout' do %>
              <%= Spree.t(: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 Spree.t(:empty_cart), class: 'button gray' %>
        <%= Spree.t(:or) %>
        <%= link_to Spree.t(:continue_shopping), products_path, class: 'continue button gray' %>
        </p>
      <% end %>
    </div>

  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
solidus_frontend-2.4.2 app/views/spree/orders/edit.html.erb
solidus_frontend-2.2.2 app/views/spree/orders/edit.html.erb
solidus_frontend-2.4.1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.3.1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.4.0 app/views/spree/orders/edit.html.erb
solidus_frontend-2.4.0.rc1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.4.0.beta1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.3.0 app/views/spree/orders/edit.html.erb
solidus_frontend-2.3.0.rc3 app/views/spree/orders/edit.html.erb
solidus_frontend-2.3.0.rc2 app/views/spree/orders/edit.html.erb
solidus_frontend-2.3.0.rc1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.3.0.beta1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.2.1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.2.0 app/views/spree/orders/edit.html.erb
solidus_frontend-2.2.0.rc1 app/views/spree/orders/edit.html.erb
solidus_frontend-2.2.0.beta1 app/views/spree/orders/edit.html.erb