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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<div style="max-width: 300px" class="Polaris-LegacyCard Polaris-LegacyCard--withoutTitle"> <ul data-controller="polaris-option-list" data-polaris-option-list-selected-class="Polaris-OptionList-Option--select" 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-2);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box Polaris-Box--listReset"> <li style="--pc-box-border-color: transparent;--pc-box-border-style: solid" class="Polaris-Box"> <div style="--pc-bleed-margin-block-start-xs: var(--p-space-05)" class="Polaris-Bleed"> <ul style="--pc-box-border-color: transparent;--pc-box-border-style: solid" class="Polaris-Box Polaris-Box--listReset"> <li tabindex="-1" class="Polaris-OptionList-Option"> <label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption"> <div class="Polaris-OptionList-Option__Checkbox"> <label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel"> <span class="Polaris-Choice__Control"> <span class="Polaris-Checkbox"> <input type="checkbox" name="sale[]" id="sale_" value="type" aria-checked="false" class="Polaris-Checkbox__Input" /> <div class="Polaris-Checkbox__Backdrop"></div> <span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated"> <svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg> </span> </span> </span> <span class="Polaris-Choice__Label"> <span></span> </span> </label> </div> <span>Sale item type</span> </label> </li> <li tabindex="-1" class="Polaris-OptionList-Option"> <label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption"> <div class="Polaris-OptionList-Option__Checkbox"> <label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel"> <span class="Polaris-Choice__Control"> <span class="Polaris-Checkbox"> <input type="checkbox" name="sale[]" id="sale_" value="kind" aria-checked="false" class="Polaris-Checkbox__Input" /> <div class="Polaris-Checkbox__Backdrop"></div> <span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated"> <svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg> </span> </span> </span> <span class="Polaris-Choice__Label"> <span></span> </span> </label> </div> <span>Sale kind</span> </label> </li> </ul> </div> </li> <li style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-start-xs: var(--p-space-2)" class="Polaris-Box"> <div style="--pc-box-border-color: var(--p-color-border-subdued);--pc-box-border-style: solid;--pc-box-border-block-start-width: var(--p-border-width-1);--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-4);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box"> <p class="Polaris-Text--root Polaris-Text--headingXs Polaris-Text--semibold"> Traffic </p> </div> <div style="" class="Polaris-Bleed"> <ul style="--pc-box-border-color: transparent;--pc-box-border-style: solid" class="Polaris-Box Polaris-Box--listReset"> <li tabindex="-1" class="Polaris-OptionList-Option"> <label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption"> <div class="Polaris-OptionList-Option__Checkbox"> <label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel"> <span class="Polaris-Choice__Control"> <span class="Polaris-Checkbox"> <input type="checkbox" name="traffic[]" id="traffic_" value="source" aria-checked="false" class="Polaris-Checkbox__Input" /> <div class="Polaris-Checkbox__Backdrop"></div> <span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated"> <svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg> </span> </span> </span> <span class="Polaris-Choice__Label"> <span></span> </span> </label> </div> <span>Traffic referrer source</span> </label> </li> <li tabindex="-1" class="Polaris-OptionList-Option"> <label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption"> <div class="Polaris-OptionList-Option__Checkbox"> <label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel"> <span class="Polaris-Choice__Control"> <span class="Polaris-Checkbox"> <input type="checkbox" name="traffic[]" id="traffic_" value="host" aria-checked="false" class="Polaris-Checkbox__Input" /> <div class="Polaris-Checkbox__Backdrop"></div> <span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated"> <svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg> </span> </span> </span> <span class="Polaris-Choice__Label"> <span></span> </span> </label> </div> <span>Traffic referrer host</span> </label> </li> <li tabindex="-1" class="Polaris-OptionList-Option"> <label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption"> <div class="Polaris-OptionList-Option__Checkbox"> <label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel"> <span class="Polaris-Choice__Control"> <span class="Polaris-Checkbox"> <input type="checkbox" name="traffic[]" id="traffic_" value="path" aria-checked="false" class="Polaris-Checkbox__Input" /> <div class="Polaris-Checkbox__Backdrop"></div> <span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated"> <svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg> </span> </span> </span> <span class="Polaris-Choice__Label"> <span></span> </span> </label> </div> <span>Traffic referrer path</span> </label> </li> </ul> </div> </li> </ul></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
<%= polaris_card(sectioned: false, style: "max-width: 300px") do %> <%= polaris_option_list do |list| %> <% list.with_section(name: :sale) do |section| %> <% section.with_checkbox(label: "Sale item type", value: "type") %> <% section.with_checkbox(label: "Sale kind", value: "kind") %> <% end %> <% list.with_section(title: "Traffic", name: :traffic) do |section| %> <% section.with_checkbox(label: "Traffic referrer source", value: "source") %> <% section.with_checkbox(label: "Traffic referrer host", value: "host") %> <% section.with_checkbox(label: "Traffic referrer path", value: "path") %> <% end %> <% end %><% end %>
No notes provided.
No params configured.