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="iKFYaS3Wl0RZps7h6nl5G9vkFTuevLUVXt1qkmzoRMukeTJ_sQh7kkqWbY9OPVHcrnZxSsr2Hzy1oscRryoV3w" autocomplete="off" /> <div> <label class="Polaris-Choice"> <span class="Polaris-Choice__Control"> <span class="Polaris-RadioButton"> <input class="Polaris-RadioButton__Input" type="radio" value="allow" checked="checked" 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 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 %>
No notes provided.
No params configured.