2017-02-14 14:58:16 +01:00
|
|
|
<h2 translate>{{ 'pricing.list_of_the_coupons' }}</h2>
|
2016-08-04 14:26:07 +02:00
|
|
|
|
2017-02-14 14:58:16 +01:00
|
|
|
<button type="button" class="btn btn-warning m-t-lg m-b" ui-sref="app.admin.coupons_new" translate>{{ 'pricing.add_a_new_coupon' }}</button>
|
2016-08-04 14:26:07 +02:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-02-14 14:58:16 +01:00
|
|
|
<th translate>{{ 'pricing.name' }}</th>
|
|
|
|
<th translate>{{ 'pricing.discount' }}</th>
|
|
|
|
<th translate>{{ 'pricing.nb_of_usages' }}</th>
|
|
|
|
<th translate>{{ 'pricing.status' }}</th>
|
2016-08-04 14:26:07 +02:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="coupon in coupons">
|
|
|
|
<td>{{coupon.name}}</td>
|
2016-11-23 12:43:42 +01:00
|
|
|
<td>
|
|
|
|
<span ng-show="coupon.type == 'percent_off'">{{coupon.percent_off}} %</span>
|
|
|
|
<span ng-show="coupon.type == 'amount_off'">{{coupon.amount_off}} {{currencySymbol}}</span>
|
|
|
|
</td>
|
2016-08-08 15:21:33 +02:00
|
|
|
<td>{{coupon.usages}}</td>
|
2017-02-14 14:58:16 +01:00
|
|
|
<td translate>{{'pricing.'+coupon.status}}</td>
|
2016-08-04 14:26:07 +02:00
|
|
|
<td>
|
2016-08-16 11:33:10 +02:00
|
|
|
<button type="button" class="btn btn-default" ng-click="sendCouponToUser(coupon)"><i class="fa fa-send-o"></i> </button>
|
2016-08-04 18:13:19 +02:00
|
|
|
<button type="button" class="btn btn-default" ui-sref="app.admin.coupons_edit({id:coupon.id})"><i class="fa fa-pencil-square-o"></i></button>
|
2016-08-04 14:26:07 +02:00
|
|
|
<button type="button" class="btn btn-danger" ng-click="deleteCoupon(coupons, coupon.id)"><i class="fa fa-trash"></i></button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|