Previews

No matching results.

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
<form action="/products" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="egofFtJin_6P0HrkGUN6NCN1fHCAdoittoKcCSUKVuJU9nbriR_94mGbUE-BuaoibV12Sb9pTX--KJQYdbjCcw" autocomplete="off" />
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input aria-checked="false" class="Polaris-RadioButton__Input" type="radio" value="allow" name="product[access]" id="product_access_allow" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Allow access
</span>
</label>
</div>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input aria-checked="false" class="Polaris-RadioButton__Input" type="radio" value="deny" name="product[access]" id="product_access_deny" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Deny access
</span>
</label>
</div>
</form>
1
2
3
4
5
6
7
8
9
10
11
<%= form_with(model: product, builder: Polaris::FormBuilder) do |form| %>
<%= form.polaris_radio_button(:access,
value: :allow,
label: "Allow access",
) %>
<%= form.polaris_radio_button(:access,
value: :deny,
label: "Deny access",
) %>
<% end %>