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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<fieldset style="--pc-vertical-stack-align: ;--pc-vertical-stack-order: column;--pc-vertical-stack-gap-xs: var(--p-space-4);--pc-vertical-stack-gap-md: var(--p-space-0)" class="Polaris-VerticalStack Polaris-VerticalStack--fieldsetReset">
<legend style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-5);--pc-box-padding-block-end-md: var(--p-space-1)" class="Polaris-Box">
Discount minimum requirements
</legend>
<ul style="--pc-vertical-stack-align: ;--pc-vertical-stack-order: column;--pc-vertical-stack-gap-xs: var(--p-space-4);--pc-vertical-stack-gap-md: var(--p-space-0)" class="Polaris-VerticalStack Polaris-VerticalStack--listReset">
<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-text-field-wrapper 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>
1
2
3
4
5
6
7
<%= polaris_choice_list(title: "Discount minimum requirements", name: :condition) do |choice| %>
<% choice.with_radio_button(label: "None", value: "none") %>
<% choice.with_radio_button(label: "Minimum purchase", value: "minimum_purchase") %>
<% choice.with_radio_button(label: "Minimum quantity", value: "minimum_quantity") do %>
<%= polaris_text_field(name: :minimum_quantity, label_hidden: true) %>
<% end %>
<% end %>