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="NCMwnqQPRoeCG7dez-ea272LlLp_0ceQbcPItuNkEdgA5oWyTW2avxgSAt-evmQ7PGUoGUUQyOIhNM3l3NpOdQ" 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 %>