mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
coupon field is shown if query string scf is shown
This commit is contained in:
parent
7f979e77db
commit
baa0a42825
2 changed files with 4 additions and 3 deletions
|
@ -61,6 +61,7 @@ module.exports = SubscriptionController =
|
||||||
recurlyConfig: JSON.stringify
|
recurlyConfig: JSON.stringify
|
||||||
currency: currency
|
currency: currency
|
||||||
subdomain: Settings.apis.recurly.subdomain
|
subdomain: Settings.apis.recurly.subdomain
|
||||||
|
showCouponField:req.query.scf
|
||||||
subscriptionFormOptions: JSON.stringify
|
subscriptionFormOptions: JSON.stringify
|
||||||
acceptedCards: ['discover', 'mastercard', 'visa']
|
acceptedCards: ['discover', 'mastercard', 'visa']
|
||||||
target : "#subscribeForm"
|
target : "#subscribeForm"
|
||||||
|
|
|
@ -130,9 +130,9 @@ block content
|
||||||
select.form-control(data-recurly="country", ng-model="data.country", required)
|
select.form-control(data-recurly="country", ng-model="data.country", required)
|
||||||
mixin countries_options()
|
mixin countries_options()
|
||||||
|
|
||||||
.form-group
|
if showCouponField == 'true'
|
||||||
label #{translate("coupon")}
|
.form-group
|
||||||
input.form-control(type='text', ng-blur="applyCoupon()", ng-model="data.coupon")
|
input.form-control(type='text', ng-blur="applyCoupon()", ng-model="data.coupon", placeholder="#{translate('coupon')}")
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
button.btn.btn-success(ng-click="submit()", ng-disabled="processing") #{translate("submit")}
|
button.btn.btn-success(ng-click="submit()", ng-disabled="processing") #{translate("submit")}
|
||||||
|
|
Loading…
Reference in a new issue