Sha256: 47db62f2627d2573fec8d21be6ce5d320c94a5499bf14a6bc822758613f03f92

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

<div id="shipping-method" data-hook>
  <div data-hook="shipping_method_inner">
    <div id="methods">
      <%= form.fields_for :shipments do |ship_form| %>
        <div class="shipment">
          <h4 class="text-uppercase checkout-content-header checkout-content-shipping-methods-header">
            <%= Spree.t('checkout_page.delivery_method') %>
          </h4>

          <ul class="checkout-content-shipping-methods-list">
            <% ship_form.object.shipping_rates.each do |rate| %>
              <li class="shipping-method">
                <label class="spree-radio-label">
                  <%= ship_form.radio_button :selected_shipping_rate_id,
                    rate.id,
                    data: {
                      behavior: 'shipping-method-selector',
                      cost: rate.display_cost
                    } %>
                  <span class="spree-radio-label-custom-input"></span>
                  <span class="rate-name"><%= rate.name %></span>
                  <p class="rate-cost"><%= rate.display_cost %></p>
                </label>
              </li>
            <% end %>
          </ul>
        </div>
      <% end %>
    </div>
    <% if Spree::Config[:shipping_instructions] %>
      <p id="minstrs" data-hook>
        <h4 class="h5">
          <%= Spree.t(:shipping_instructions) %>
        </h4>
        <%= form.text_area :special_instructions, cols: 40, rows: 4, class: "form-control" %>
      </p>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_frontend-4.1.0.rc2 app/views/spree/checkout/_delivery.html.erb
spree_frontend-4.1.0.rc1 app/views/spree/checkout/_delivery.html.erb