x
<form action="/products" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="hRY5JlnLzs-dyIwEHHrG8ZC1E_BkXyGs2x0bW8j7dbAK5jiNbUfBGSLPKTVTKFnMYB6WES8BUarhgfp9BS5Z2g" 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>
<%= 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.