1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/assets/templates/shared/_coupon.html.erb

24 lines
1.0 KiB
Plaintext
Raw Normal View History

<div class="form-group m-b-lg" ng-show="show">
<a ng-click="code.input = true" ng-hide="code.input" class="b-b" translate>{{ 'i_have_a_coupon' }}</a>
2016-08-09 10:22:01 +02:00
<div ng-show="code.input">
<label for="coupon_code" translate>{{ 'code_' }}</label>
<div class="input-group m-b">
<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>
</span>
</div>
<uib-alert ng-repeat="msg in messages" type="{{msg.type}}" close="closeMessage($index)">{{msg.message}}</uib-alert>
</div>
</div>