Sha256: 71f2d2eceb68f435cee64368343bfbcfc82965737f328e088145d9c457043d29

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 KB

Contents

<% listname = attribute %>
<div class="Polaris-FormLayout__Item">
  <div class="">
    <fieldset class="Polaris-ChoiceList" id="<%= listname %>" aria-invalid="false">
      <legend class="Polaris-ChoiceList__Title"><%= title %></legend>
      <ul class="Polaris-ChoiceList__Choices">
        <% choices.each do |choice| %>
          <% inputname = polaris_random_input_name %>
          <li>
            <label class="Polaris-Choice" for="<%= inputname %>">
              <span class="Polaris-Choice__Control">
                <span class="Polaris-RadioButton">
                  <%= form.radio_button attribute, choice[:value], checked: selected == choice[:value], class: 'Polaris-RadioButton__Input', id: inputname %>
                  <span class="Polaris-RadioButton__Backdrop"></span>
                  <span class="Polaris-RadioButton__Icon"></span>
                </span>
              </span>
              <span class="Polaris-Choice__Label"><%= choice[:label] %></span>
            </label>
          </li>
        <% end %>
      </ul>
    </fieldset>
  </div>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
polaris_view_helpers-1.2.4 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.2.3 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.2.2 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.2.1 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.2.0 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.1.6 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.1.5 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.0.5 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.0.4 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.0.3 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.0.2 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.0.1 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-1.0.0 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-0.0.22 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-0.0.21 app/views/polaris/_choice_list.html.erb
polaris_view_helpers-0.0.20 app/views/polaris/_choice_list.html.erb