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
<form action="/products" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="O22ZxLuNQgF4wWVVcnAvT06bYTBNElN2JUfZINJTzOe6N2NnG9BQBylQzpWWOKXgXJGz2wnSMKG3dpEFdNuUSA" autocomplete="off" /> <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"> Selected markets </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-Checkbox"> <input name="product[selected_markets][]" type="hidden" value="0" autocomplete="off" /><input aria-checked="true" class="Polaris-Checkbox__Input" type="checkbox" value="1" checked="checked" name="product[selected_markets][]" id="product_selected_markets_1" /> <span class="Polaris-Checkbox__Backdrop"></span> <span class="Polaris-Checkbox__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="M14.03 7.22a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.72 1.72 3.97-3.97a.75.75 0 0 1 1.06 0Z"></path></svg> </span> </span> </span> </span> <span class="Polaris-Choice__Label"> US </span> </label> </div> </li> <li> <div> <label class="Polaris-Choice"> <span class="Polaris-Choice__Control"> <span class="Polaris-Checkbox"> <input name="product[selected_markets][]" type="hidden" value="0" autocomplete="off" /><input aria-checked="false" class="Polaris-Checkbox__Input" type="checkbox" value="2" name="product[selected_markets][]" id="product_selected_markets_2" /> <span class="Polaris-Checkbox__Backdrop"></span> <span class="Polaris-Checkbox__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="M14.03 7.22a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.72 1.72 3.97-3.97a.75.75 0 0 1 1.06 0Z"></path></svg> </span> </span> </span> </span> <span class="Polaris-Choice__Label"> Spain </span> </label> </div> </li> </ul> </fieldset></form>
1
2
3
<%= form_with(model: product, builder: Polaris::FormBuilder) do |form| %> <%= form.polaris_collection_check_boxes(:selected_markets, available_markets, :id, :name) %><% end %>
No notes provided.
No params configured.