-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddress.html
50 lines (41 loc) · 2.2 KB
/
address.html
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
<!-- Address Manually-->
<!-- <h3> Address Manual Input</h3>
<span class="help-block">Validation needed</span>
<div class="form-group">
<label>Line 1 (Street Number and Street Name)</label>
<input type="text" name="Line1" class="form-control" ng-model="Line1" placeholder="4 Privet Drive" required>
<span style="color:red" ng-show="MyForm.Line1.$dirty && MyForm.Line1.$invalid">
<span ng-show="MyForm.Line1.$error.required">An address is required.<br></span>
</span>
<label>Line 2 (APT Number)</label>
<input type="text" name="Line2" class="form-control" ng-model="Line2">
<label>City</label>
<input type="text" name="City" class="form-control" ng-model="City" required check-city>
<span style="color:red" ng-show="MyForm.City.$dirty && MyForm.City.$invalid">
<span ng-show="MyForm.City.$error.required">A city is required.<br></span>
<span ng-show="MyForm.City.$invalid">City name can only be alphabets.<br></span>
</span>
<label>State</label>
<select class="form-control" ng-model="statessss" ng-options="item for item in states"></select>
<label>Zip Code</label>
<input type="text" class="form-control" name="ZipCode" ng-model="ZipCode" required check-zip>
<span style="color:Red" ng-show="MyForm.ZipCode.$dirty && MyForm.ZipCode.$invalid">
<span ng-show="MyForm.ZipCode.$invalid">Zip code should be 5 digits(xxxx) or 5 digits-4 digits(xxxxx-xxxx)</span>
</span>
</div> -->
<h4>Enter your destination</h4>
<p class="help-block">*Attention: Sorry we cannot ship to Alaska or Hawaii at this time.</p>
<input vs-google-autocomplete
ng-model="address.name"
vs-street-number="address.components.streetNumber"
vs-street="address.components.street"
vs-city="address.components.city"
vs-state="address.components.state"
vs-country="address.components.country"
vs-post-code="address.components.postCode"
type="text"
name="address"
id="address"
class="form-control"
placeholder="Hogwarts School of Witchcraft and Wizardry ">
<h5 class="help-block">Destination State: {{address.components.state}}</h5><br>