2016-08-16 11:33:10 +02:00
|
|
|
<div class="modal-header">
|
2019-12-17 12:40:36 +01:00
|
|
|
<h3 class="text-center red" translate>{{ 'app.admin.pricing.send_a_coupon' }}</h3>
|
2016-08-16 11:33:10 +02:00
|
|
|
</div>
|
2016-08-16 18:12:13 +02:00
|
|
|
<div class="modal-body">
|
|
|
|
<select-member></select-member>
|
|
|
|
<div class="widget panel b-a m">
|
|
|
|
<div class="panel-heading b-b small">
|
2019-12-17 12:40:36 +01:00
|
|
|
<h3 class="panel-title" translate>{{ 'app.admin.pricing.coupon' }}</h3>
|
2016-08-16 18:12:13 +02:00
|
|
|
</div>
|
|
|
|
<div class="widget-content no-bg auto wrapper">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr><th style="width:60%"></th></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-12-17 12:40:36 +01:00
|
|
|
<tr><td translate>{{'app.admin.pricing.code'}}</td> <td>{{coupon.code}}</td></tr>
|
|
|
|
<tr><td translate>{{'app.admin.pricing.discount'}}</td> <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></tr>
|
|
|
|
<tr><td translate>{{'app.admin.pricing.validity_per_user'}}</td> <td translate>{{'app.admin.pricing.'+coupon.validity_per_user}}</td></tr>
|
|
|
|
<tr><td translate>{{'app.admin.pricing.valid_until'}}</td> <td>{{coupon.valid_until | amDateFormat:'L'}}</td></tr>
|
|
|
|
<tr><td translate>{{'app.admin.pricing.usages'}}</td> <td>{{coupon.usages}} / {{coupon.max_usages | maxCount}}</td></tr>
|
|
|
|
<tr><td translate>{{'app.admin.pricing.enabled'}}</td> <td>{{coupon.active | booleanFormat}}</td></tr>
|
2016-08-16 18:12:13 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-08-16 11:33:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-16 18:12:13 +02:00
|
|
|
<div class="modal-footer">
|
2023-11-27 16:21:07 +01:00
|
|
|
<button class="fab-button is-secondary" ng-click="ok()" ng-disabled="ctrl.member == null" translate>{{ 'app.shared.buttons.confirm' }}</button>
|
|
|
|
<button class="fab-button" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
|
2019-12-17 12:40:36 +01:00
|
|
|
</div>
|