Sha256: 5e9ee95162c7a97ff22f58618134e925d3d3ddae30cb3000c2ddbdf4f7e6cdfd

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

<div class="product-variants-variant product-variants-variant--color" 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>
          <%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
            class: "m-1 m-sm-2 m-md-1 color-select-label",
            title: option_value[:name],
            data: { toggle: "tooltip", placement: "bottom" } do %>

            <%= 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",
              aria: { label: option_value[:name] },
              data: {
                "option-type-index" => index,
                "presentation" => option_value[:presentation],
                "variant-id" => option_value[:variant_id],
                "is-color" => true
              }
            %>

            <%= render partial: "spree/shared/color_select", locals: {
              color: option_value[:presentation],
              selected: false
            } %>
          <% end %>
        </li>
      <% end %>
    </ol>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_frontend-4.2.0.rc4 app/views/spree/products/_color_option_type.html.erb
spree_frontend-4.2.0.rc3 app/views/spree/products/_color_option_type.html.erb
spree_frontend-4.2.0.rc2 app/views/spree/products/_color_option_type.html.erb
spree_frontend-4.2.0.rc1 app/views/spree/products/_color_option_type.html.erb
spree_frontend-4.2.0.beta app/views/spree/products/_color_option_type.html.erb