x
<fieldset class="Polaris-ChoiceList">
<legend class="Polaris-ChoiceList__Title">
Discount minimum requirements
</legend>
<ul class="Polaris-ChoiceList__Choices">
<li>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input type="radio" name="condition" id="condition_none" value="none" aria-checked="false" class="Polaris-RadioButton__Input" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
None
</span>
</label>
</div>
</li>
<li>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input type="radio" name="condition" id="condition_minimum_purchase" value="minimum_purchase" aria-checked="false" class="Polaris-RadioButton__Input" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Minimum purchase
</span>
</label>
</div>
</li>
<li>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input type="radio" name="condition" id="condition_minimum_quantity" value="minimum_quantity" aria-checked="false" class="Polaris-RadioButton__Input" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Minimum quantity
</span>
</label>
<div class="Polaris-ChoiceList__ChoiceChildren">
<div class="Polaris-Labelled--hidden">
<div class="Polaris-Labelled__LabelWrapper">
<div class="Polaris-Label">
<label class="Polaris-Label__Text" for="minimum_quantity">Minimum quantity</label>
</div>
</div>
<div class="Polaris-Connected">
<div class="Polaris-Connected__Item Polaris-Connected__Item--primary">
<div data-polaris-text-field-has-value-class="Polaris-TextField--hasValue" data-polaris-text-field-clear-button-hidden-class="Polaris-TextField__Hidden" data-controller="polaris-text-field" class="Polaris-TextField">
<input type="text" name="minimum_quantity" id="minimum_quantity" data-polaris-text-field-target="input" data-action="polaris-text-field#syncValue" class="Polaris-TextField__Input" />
<div class="Polaris-TextField__Backdrop"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</fieldset>
<%= polaris_choice_list(title: "Discount minimum requirements", name: :condition) do |choice| %>
<% choice.radio_button(label: "None", value: "none") %>
<% choice.radio_button(label: "Minimum purchase", value: "minimum_purchase") %>
<% choice.radio_button(label: "Minimum quantity", value: "minimum_quantity") do %>
<%= polaris_text_field(name: :minimum_quantity, label_hidden: true) %>
<% end %>
<% end %>
No notes provided.
No params configured.