1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/app/assets/templates/shared/_coupon.html.erb
Sylvain 37d6c84cc6 [bug] unable to remove training picture
also: removed some invalid href=# in the templates
2019-11-19 15:18:00 +01:00

24 lines
1.0 KiB
Plaintext

<div class="form-group m-b-lg" ng-show="show">
<a ng-click="code.input = true" ng-hide="code.input" class="b-b pointer" translate>{{ 'i_have_a_coupon' }}</a>
<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()'/>
<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>