|
|
@@ -3,13 +3,9 @@ extends ../layout
|
|
|
block head-scripts
|
|
|
script(src="https://js.recurly.com/v4/recurly.js")
|
|
|
script(type='text/javascript').
|
|
|
- window.countryCode = '#{countryCode}'
|
|
|
- window.plan_code = '#{plan_code}'
|
|
|
+ window.countryCode = !{StringHelper.stringifyJsonForScript(countryCode || '')}
|
|
|
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
|
|
|
- window.couponCode = !{StringHelper.stringifyJsonForScript(couponCode)}
|
|
|
- window.recomendedCurrency = !{StringHelper.stringifyJsonForScript(currency.slice(0,3))}
|
|
|
- window.ITMCampaign = '#{ITMCampaign}'
|
|
|
- window.ITMContent = '#{ITMContent}'
|
|
|
+ window.recomendedCurrency = !{StringHelper.stringifyJsonForScript(String(currency).slice(0,3))}
|
|
|
|
|
|
block content
|
|
|
main.content.content-alt
|
|
|
@@ -186,7 +182,7 @@ block content
|
|
|
required
|
|
|
)
|
|
|
span.input-feedback-message {{ simpleCCForm.address1.$error.required ? 'This field is required' : '' }}
|
|
|
-
|
|
|
+
|
|
|
.row
|
|
|
.col-xs-12
|
|
|
.form-group.has-feedback(ng-class="validation.errorFields.address2 ? 'has-external-error' : ''")
|
|
|
@@ -198,7 +194,7 @@ block content
|
|
|
name="address2"
|
|
|
ng-model="data.address2"
|
|
|
)
|
|
|
-
|
|
|
+
|
|
|
.row
|
|
|
.col-xs-4
|
|
|
.form-group(ng-class="validation.errorFields.postal_code || inputHasError(simpleCCForm.postalCode) ? 'has-external-error' : ''")
|
|
|
@@ -212,7 +208,7 @@ block content
|
|
|
required
|
|
|
)
|
|
|
span.input-feedback-message {{ simpleCCForm.postalCode.$error.required ? 'This field is required' : '' }}
|
|
|
-
|
|
|
+
|
|
|
.col-xs-8
|
|
|
.form-group(ng-class="validation.errorFields.country || inputHasError(simpleCCForm.country) ? 'has-external-error' : ''")
|
|
|
label(for="country") #{translate('country')}
|
|
|
@@ -317,7 +313,7 @@ block content
|
|
|
|
|
|
|
|
|
.col-md-3.col-md-pull-4
|
|
|
- if showStudentPlan == 'true'
|
|
|
+ if showStudentPlan
|
|
|
a.btn-primary.btn.plansPageStudentLink(
|
|
|
href,
|
|
|
ng-click="switchToStudent()"
|