Sha256: 96939dad8732a5bc4543d81a636b4967424ff802635e5f9521729496e6431f22

Contents?: true

Size: 1.18 KB

Versions: 22

Compression:

Stored size: 1.18 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",
            "aria-label" => option_value[:presentation] do %>

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

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
spree_frontend-4.2.7 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.3 app/views/spree/products/_option_type.html.erb
spree_frontend-4.7.0 app/views/spree/products/_option_type.html.erb
spree_frontend-4.6.0 app/views/spree/products/_option_type.html.erb
spree_frontend-4.5.0 app/views/spree/products/_option_type.html.erb
spree_frontend-4.2.6 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.2 app/views/spree/products/_option_type.html.erb
spree_frontend-4.4.0 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.1 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.0 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.0.rc3 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.0.rc2 app/views/spree/products/_option_type.html.erb
spree_frontend-4.3.0.rc1 app/views/spree/products/_option_type.html.erb
harpiya_frontend-4.3.0.alpha app/views/harpiya/products/_option_type.html.erb
spree_frontend-4.2.5 app/views/spree/products/_option_type.html.erb
spree_frontend-4.2.4 app/views/spree/products/_option_type.html.erb
spree_frontend-4.2.3.1 app/views/spree/products/_option_type.html.erb
spree_frontend-4.2.3 app/views/spree/products/_option_type.html.erb
spree_frontend-4.2.2 app/views/spree/products/_option_type.html.erb
spree_frontend-4.2.1 app/views/spree/products/_option_type.html.erb