fix card scope

This commit is contained in:
Kyle Spearrin 2017-04-12 11:16:14 -04:00
parent 18bea7edb2
commit 673485b5c4
1 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="card_number">Card Number</label> <label for="card_number">Card Number</label>
<input type="text" id="card_number" name="card_number" ng-model="model.card.number" <input type="text" id="card_number" name="card_number" ng-model="card.number"
class="form-control" cc-number required api-field /> class="form-control" cc-number required api-field />
</div> </div>
</div> </div>
@ -34,7 +34,7 @@
<div class="col-sm-4"> <div class="col-sm-4">
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="exp_month">Expiration Month</label> <label for="exp_month">Expiration Month</label>
<select id="exp_month" class="form-control" ng-model="model.card.exp_month" required cc-exp-month <select id="exp_month" class="form-control" ng-model="card.exp_month" required cc-exp-month
name="exp_month" api-field> name="exp_month" api-field>
<option value="">-- Select --</option> <option value="">-- Select --</option>
<option value="01">01 - January</option> <option value="01">01 - January</option>
@ -55,7 +55,7 @@
<div class="col-sm-4"> <div class="col-sm-4">
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="exp_year">Expiration Year</label> <label for="exp_year">Expiration Year</label>
<select id="exp_year" class="form-control" ng-model="model.card.exp_year" required cc-exp-year <select id="exp_year" class="form-control" ng-model="card.exp_year" required cc-exp-year
name="exp_year" api-field> name="exp_year" api-field>
<option value="">-- Select --</option> <option value="">-- Select --</option>
<option value="17">2017</option> <option value="17">2017</option>
@ -72,7 +72,7 @@
<div class="col-sm-4"> <div class="col-sm-4">
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="cvc">CVC <i class="fa fa-question-circle"></i></label> <label for="cvc">CVC <i class="fa fa-question-circle"></i></label>
<input type="text" id="cvc" ng-model="model.card.cvc" class="form-control" name="cvc" <input type="text" id="cvc" ng-model="card.cvc" class="form-control" name="cvc"
cc-type="number.$ccType" cc-cvc required api-field /> cc-type="number.$ccType" cc-cvc required api-field />
</div> </div>
</div> </div>
@ -81,7 +81,7 @@
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="address_country">Country</label> <label for="address_country">Country</label>
<select id="address_country" class="form-control" ng-model="model.card.address_country" <select id="address_country" class="form-control" ng-model="card.address_country"
required name="address_country" api-field> required name="address_country" api-field>
<option value="">-- Select --</option> <option value="">-- Select --</option>
<option value="US">United States</option> <option value="US">United States</option>
@ -340,8 +340,8 @@
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="address_zip" <label for="address_zip"
ng-bind="model.card.address_country === 'US' ? 'Zip Code' : 'Postal Code'"></label> ng-bind="card.address_country === 'US' ? 'Zip Code' : 'Postal Code'"></label>
<input type="text" id="address_zip" ng-model="model.card.address_zip" <input type="text" id="address_zip" ng-model="card.address_zip"
class="form-control" required name="address_zip" api-field /> class="form-control" required name="address_zip" api-field />
</div> </div>
</div> </div>