Skip to content

Commit e67e366

Browse files
authored
fix: correct order of fields in payment-info form (#4833)
1 parent 04f4420 commit e67e366

File tree

1 file changed

+44
-39
lines changed

1 file changed

+44
-39
lines changed

app/templates/components/forms/user-payment-info-form.hbs

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,70 @@
22
<h3 class="ui header">
33
{{t 'Payment Information'}}
44
</h3>
5+
<h5 class="ui header">
6+
{{t 'The information you provide here will be added to your invoices. Please ensure you have the correct information added here as it is not possible to regenerate invoices with different information at a later time.'}}
7+
</h5>
58
<div class="field">
6-
<label class="required" for="contactName">{{t 'Contact Name'}}</label>
9+
<label for="company">{{t 'Company'}}</label>
10+
<Input
11+
@type="text"
12+
@id="company"
13+
@value={{this.userBillingInfo.company}} />
14+
</div>
15+
<div class="field">
16+
<label for="contactName">{{t 'Contact Name'}}</label>
717
<Input
818
@type="text"
919
@id="contactName"
1020
@value={{this.userBillingInfo.billingContactName}} />
1121
</div>
1222
<div class="field">
13-
<label class="required" for="phone">{{t 'Phone'}}</label>
23+
<label for="phone">{{t 'Phone'}}</label>
1424
<Input
1525
@type="text"
1626
@id="phone"
1727
@value={{this.userBillingInfo.billingPhone}} />
1828
</div>
1929
<div class="field">
20-
<label class="required" for="company">{{t 'Company'}}</label>
21-
<Input
22-
@type="text"
23-
@id="company"
24-
@value={{this.userBillingInfo.company}} />
30+
<label for="address">{{t 'Address'}}</label>
31+
<Textarea
32+
@rows="2"
33+
@id="address"
34+
@value={{this.userBillingInfo.billingAddress}} />
2535
</div>
2636
<div class="field">
27-
<label for="taxID">{{t 'Tax ID or Business ID'}}</label>
37+
<label for="zip">{{t 'Zip Code'}}</label>
2838
<Input
2939
@type="text"
30-
@id="taxID"
31-
@value={{this.userBillingInfo.billingTaxInfo}} />
40+
@id="zip"
41+
@value={{this.userBillingInfo.billingZipCode}} />
3242
</div>
3343
<div class="field">
34-
<label class="required" for="address">{{t 'Address'}}</label>
35-
<Textarea
36-
@rows="2"
37-
@id="address"
38-
@value={{this.userBillingInfo.billingAddress}} /> </div>
39-
<div class="field">
40-
<label class="required" for="city">{{t 'City'}}</label>
44+
<label for="city">{{t 'City'}}</label>
4145
<Input
42-
@type="text"
43-
@id="city"
44-
@value={{this.userBillingInfo.billingCity}} />
46+
@type="text"
47+
@id="city"
48+
@value={{this.userBillingInfo.billingCity}} />
4549
</div>
4650
<div class="field">
4751
<label for="state">{{t 'State'}}</label>
4852
<Input
49-
@type="text"
50-
@id="state"
51-
@value={{this.userBillingInfo.billingState}} />
53+
@type="text"
54+
@id="state"
55+
@value={{this.userBillingInfo.billingState}} />
5256
</div>
5357
<div class="field">
54-
<label class="required">{{t 'Country'}}</label>
58+
<label >{{t 'Country'}}</label>
5559
<UiDropdown
56-
@class="search selection"
57-
@selected={{this.userBillingInfo.billingCountry}}
58-
@forceSelection={{false}}
59-
@fullTextSearch={{true}}>
60+
@class="search selection"
61+
@selected={{this.userBillingInfo.billingCountry}}
62+
@forceSelection={{false}}
63+
@fullTextSearch={{true}}>
6064
<Input
61-
@type="hidden"
62-
@autocomplete="no"
63-
@id="country"
64-
@value={{this.userBillingInfo.billingCountry}} />
65+
@type="hidden"
66+
@autocomplete="no"
67+
@id="country"
68+
@value={{this.userBillingInfo.billingCountry}} />
6569
<i class="dropdown icon"></i>
6670
<div class="default text">{{t 'Select country'}}</div>
6771
<div class="menu">
@@ -75,18 +79,19 @@
7579
</UiDropdown>
7680
</div>
7781
<div class="field">
78-
<label class="required" for="zip">{{t 'Zip Code'}}</label>
82+
<label for="taxID">{{t 'Tax ID or Business ID'}}</label>
7983
<Input
80-
@type="text"
81-
@id="zip"
82-
@value={{this.userBillingInfo.billingZipCode}} />
84+
@type="text"
85+
@id="taxID"
86+
@value={{this.userBillingInfo.billingTaxInfo}} />
8387
</div>
8488
<div class="field">
8589
<label for="additionalInfo">{{t 'Additional Information'}}</label>
8690
<Textarea
87-
@rows="4"
88-
@id="additionalInfo"
89-
@value={{this.userBillingInfo.billingAdditionalInfo}} /> </div>
91+
@rows="4"
92+
@id="additionalInfo"
93+
@value={{this.userBillingInfo.billingAdditionalInfo}} />
94+
</div>
9095

9196
<button type="submit" class="ui teal submit button">
9297
{{t 'Submit'}}

0 commit comments

Comments
 (0)