mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
coupon field is shown if query string scf is shown
This commit is contained in:
@@ -61,6 +61,7 @@ module.exports = SubscriptionController =
|
||||
recurlyConfig: JSON.stringify
|
||||
currency: currency
|
||||
subdomain: Settings.apis.recurly.subdomain
|
||||
showCouponField:req.query.scf
|
||||
subscriptionFormOptions: JSON.stringify
|
||||
acceptedCards: ['discover', 'mastercard', 'visa']
|
||||
target : "#subscribeForm"
|
||||
|
||||
@@ -130,9 +130,9 @@ block content
|
||||
select.form-control(data-recurly="country", ng-model="data.country", required)
|
||||
mixin countries_options()
|
||||
|
||||
.form-group
|
||||
label #{translate("coupon")}
|
||||
input.form-control(type='text', ng-blur="applyCoupon()", ng-model="data.coupon")
|
||||
if showCouponField == 'true'
|
||||
.form-group
|
||||
input.form-control(type='text', ng-blur="applyCoupon()", ng-model="data.coupon", placeholder="#{translate('coupon')}")
|
||||
|
||||
.form-group
|
||||
button.btn.btn-success(ng-click="submit()", ng-disabled="processing") #{translate("submit")}
|
||||
|
||||
Reference in New Issue
Block a user