2021-07-04 21:53:55 +02:00
|
|
|
<div class="create-coupon-form">
|
2021-01-13 11:47:22 -06:00
|
|
|
<form class="form-horizontal">
|
|
|
|
<p>
|
2021-07-04 21:53:55 +02:00
|
|
|
<label for="promo_code">{{i18n "discourse_subscriptions.admin.coupons.promo_code"}}</label>
|
2021-01-13 11:47:22 -06:00
|
|
|
{{input type="text" name="promo_code" value=promoCode}}
|
|
|
|
</p>
|
|
|
|
<p>
|
2021-07-04 21:53:55 +02:00
|
|
|
<label for="amount">{{i18n "discourse_subscriptions.admin.coupons.discount"}}</label>
|
2021-01-13 11:47:22 -06:00
|
|
|
{{combo-box
|
|
|
|
content=discountTypes
|
|
|
|
value=discountType
|
|
|
|
onChange=(action (mut discountType))
|
|
|
|
}}
|
|
|
|
{{input class="discount-amount" type="text" name="amount" value=discount}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="active">
|
2021-07-04 21:53:55 +02:00
|
|
|
{{i18n "discourse_subscriptions.admin.coupons.active"}}
|
2021-01-13 11:47:22 -06:00
|
|
|
</label>
|
|
|
|
{{input type="checkbox" name="active" checked=active}}
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{d-button
|
|
|
|
action=(action "createNewCoupon")
|
|
|
|
label="discourse_subscriptions.admin.coupons.create"
|
|
|
|
title="discourse_subscriptions.admin.coupons.create"
|
|
|
|
icon="plus"
|
|
|
|
class="btn-primary btn btn-icon"}}
|
|
|
|
{{d-button
|
|
|
|
action=(action "cancelCreate")
|
|
|
|
label="cancel"
|
|
|
|
title="cancel"
|
|
|
|
icon="times"
|
|
|
|
class="btn btn-icon"}}
|
|
|
|
</div>
|