Sha256: 29f5a1dcbfde4ebae94dca7a70557022464b2586d62f8bfb32bf5bd8d75bb011

Contents?: true

Size: 1.21 KB

Versions: 20

Compression:

Stored size: 1.21 KB

Contents

<div class="product-variants-variant" data-option-type-id="<%= option_type[:id] %>">
  <span class="d-block mb-2 text-center text-md-left text-uppercase product-variants-variant-title">
    <%= option_type[:presentation] %>
  </span>

  <div class="d-flex flex-wrap justify-content-center justify-content-md-start">
    <ol class="d-flex flex-wrap product-variants-variant-values">
      <% option_type[:option_values].each do |option_value| %>
        <li>
          <%= radio_button_tag "variant_option_value_id_#{option_type[:id]}",
            option_value[:id],
            option_value[:is_default] && index == 0,
            class: "product-variants-variant-values-radio",
            data: {
              "option-type-index" => index,
              "presentation" => option_value[:presentation],
              "variant-id" => option_value[:variant_id]
            }
          %>

          <%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
            class: "m-1 select-label",
            tabindex: 0,
            "aria-label" => option_value[:presentation] do %>

            <span><%= option_value[:presentation] %></span>
          <% end %>
        </li>
      <% end %>
    </ol>
  </div>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
spree_frontend-4.1.15 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.14 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.13.1 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.13 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.12 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.11 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.10 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.9 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.8 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.7 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.6 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.5 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.4 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.3 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.2 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.1 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.0 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.0.rc3 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.0.rc2 app/views/spree/products/_option_type.html.erb
spree_frontend-4.1.0.rc1 app/views/spree/products/_option_type.html.erb