2014-02-12 05:23:40 -05:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
|
|
|
- locals.supressDefaultJs = true
|
|
|
|
script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
|
|
|
|
script(src=jsPath+'libs/recurly.min.js')
|
|
|
|
|
2014-07-07 08:43:36 -04:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3
|
|
|
|
.card
|
|
|
|
.page-header
|
2014-08-01 07:34:53 -04:00
|
|
|
h1.text-centered #{translate("new_subscription")}
|
|
|
|
#subscribeForm #{translate("loading_billing_form")}...
|
2014-02-12 05:23:40 -05:00
|
|
|
|
2014-08-27 06:09:22 -04:00
|
|
|
script(type="text/javascript").
|
2014-03-08 13:31:07 -05:00
|
|
|
ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
|
|
|
|
|
2014-02-12 05:23:40 -05:00
|
|
|
|
2014-07-07 08:43:36 -04:00
|
|
|
script(type="text/javascript").
|
2014-02-12 05:23:40 -05:00
|
|
|
Recurly.config(!{recurlyConfig})
|
2014-03-09 05:56:58 -04:00
|
|
|
var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
|
|
|
|
recurlySubscriptionFormConfig.successHandler = function(){
|
2014-03-11 07:22:03 -04:00
|
|
|
ga('send', 'event', 'subscription-funnel', 'subscribed')
|
2014-03-09 05:56:58 -04:00
|
|
|
}
|
|
|
|
|
2014-03-09 06:23:37 -04:00
|
|
|
Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
|
2014-03-09 05:56:58 -04:00
|
|
|
|
2014-02-12 05:23:40 -05:00
|
|
|
|