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
53
54
55
56
57
58
59
60
61
62
<fieldset style="--pc-vertical-stack-align: ;--pc-vertical-stack-order: column;--pc-vertical-stack-gap-xs: var(--p-space-4);--pc-vertical-stack-gap-md: var(--p-space-0)" class="Polaris-VerticalStack Polaris-VerticalStack--fieldsetReset"> <legend style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-5);--pc-box-padding-block-end-md: var(--p-space-1)" class="Polaris-Box"> Company name </legend> <ul style="--pc-vertical-stack-align: ;--pc-vertical-stack-order: column;--pc-vertical-stack-gap-xs: var(--p-space-4);--pc-vertical-stack-gap-md: var(--p-space-0)" class="Polaris-VerticalStack Polaris-VerticalStack--listReset"> <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> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-0);--pc-box-padding-block-start-md: var(--p-space-1)" class="Polaris-Box"> <div class="Polaris-InlineError"> <div class="Polaris-InlineError__Icon"> <span class="Polaris-Icon"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M11.42 2.588a2.007 2.007 0 0 0-2.84 0l-5.992 5.993a2.007 2.007 0 0 0 0 2.838l5.993 5.993a2.007 2.007 0 0 0 2.838 0l5.993-5.993a2.007 2.007 0 0 0 0-2.838l-5.993-5.993Zm-2.223 4.2a.803.803 0 1 1 1.606 0v3.212a.803.803 0 1 1-1.606 0v-3.211Zm1.606 6.423a.803.803 0 1 1-1.606 0 .803.803 0 0 1 1.606 0Z"></path></svg> </span> </div> Company name cannot be hidden at this time </div> </div></fieldset>
1
2
3
4
5
6
7
8
9
<%= paper_choice_list( title: "Company name", name: :company_name, error: "Company name cannot be hidden at this time",) do |choice| %> <% choice.with_radio_button(label: "Hidden", value: "hidden") %> <% choice.with_radio_button(label: "Optional", value: "optional") %> <% choice.with_radio_button(label: "Required", value: "required") %><% end %>
No notes provided.
No params configured.