2016-08-08 17:09:05 +02:00
|
|
|
<div class="form-group m-b-lg" ng-show="show">
|
2016-09-20 18:39:28 +02:00
|
|
|
<a ng-click="code.input = true" ng-hide="code.input" class="b-b" translate>{{ 'i_have_a_coupon' }}</a>
|
2016-08-08 17:09:05 +02:00
|
|
|
|
2016-08-09 10:22:01 +02:00
|
|
|
<div ng-show="code.input">
|
|
|
|
<label for="coupon_code" translate>{{ 'code_' }}</label>
|
2016-11-30 10:17:05 +01:00
|
|
|
<div class="input-group m-b">
|
2016-08-08 17:09:05 +02:00
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="coupon_code"
|
|
|
|
ng-model="couponCode"
|
|
|
|
id="coupon_code"
|
|
|
|
ng-model-options='{ debounce: 1000 }'
|
|
|
|
ng-change='validateCode()'/>
|
2016-08-09 10:22:01 +02:00
|
|
|
<span class="input-group-addon" ng-class="{'label-success': status == 'valid', 'label-danger text-white': status == 'invalid'}">
|
|
|
|
<i class="fa fa-spinner fa-pulse fa-fw" ng-show="status == 'pending'"></i>
|
|
|
|
<i class="fa fa-times" ng-show="status == 'invalid'"></i>
|
|
|
|
<i class="fa fa-check" ng-show="status == 'valid'"></i>
|
2016-08-08 17:09:05 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
2016-11-30 10:17:05 +01:00
|
|
|
|
|
|
|
<uib-alert ng-repeat="msg in messages" type="{{msg.type}}" close="closeMessage($index)">{{msg.message}}</uib-alert>
|
2016-08-08 17:09:05 +02:00
|
|
|
</div>
|
2016-09-20 18:39:28 +02:00
|
|
|
</div>
|