x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<fieldset class="Polaris-ChoiceList"> <legend class="Polaris-ChoiceList__Title"> Company name </legend> <ul class="Polaris-ChoiceList__Choices"> <li> <div> <label class="Polaris-Choice"> <span class="Polaris-Choice__Control"> <span class="Polaris-RadioButton"> <input type="radio" name="company_name" id="company_name_hidden" value="hidden" aria-checked="false" class="Polaris-RadioButton__Input" /> <span class="Polaris-RadioButton__Backdrop"></span> </span> </span> <span class="Polaris-Choice__Label"> Hidden </span> </label> </div> </li> <li> <div> <label class="Polaris-Choice"> <span class="Polaris-Choice__Control"> <span class="Polaris-RadioButton"> <input type="radio" name="company_name" id="company_name_optional" value="optional" aria-checked="false" class="Polaris-RadioButton__Input" /> <span class="Polaris-RadioButton__Backdrop"></span> </span> </span> <span class="Polaris-Choice__Label"> Optional </span> </label> </div> </li> <li> <div> <label class="Polaris-Choice"> <span class="Polaris-Choice__Control"> <span class="Polaris-RadioButton"> <input type="radio" name="company_name" id="company_name_required" value="required" aria-checked="false" class="Polaris-RadioButton__Input" /> <span class="Polaris-RadioButton__Backdrop"></span> </span> </span> <span class="Polaris-Choice__Label"> Required </span> </label> </div> </li> </ul></fieldset>
1
2
3
4
5
<%= polaris_choice_list(title: "Company name", name: :company_name) do |choice| %> <% choice.radio_button(label: "Hidden", value: "hidden") %> <% choice.radio_button(label: "Optional", value: "optional") %> <% choice.radio_button(label: "Required", value: "required") %><% end %>
No notes provided.
No params configured.