2014-02-12 05:23:40 -05:00
extends ../layout
2014-10-13 12:28:00 -04:00
block scripts
script(type='text/javascript').
window.recomendedCurrency = '#{currency}'
window.plan_code = '#{plan_code}'
2014-02-12 05:23:40 -05:00
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
2014-10-14 10:46:44 -04:00
.container(ng-controller="NewSubscriptionController" ng-cloak)
.row.card-group
2014-10-15 05:22:03 -04:00
2014-10-15 05:23:08 -04:00
.col-md-6.col-md-push-3
.card.card-highlighted
.page-header
span.dropdown.changePlanButton.pull-right(ng-cloak)
a.btn.btn-default.dropdown-toggle(
href="#",
data-toggle="dropdown"
)
| {{currencyCode}} ({{plans[currencyCode]['symbol']}})
span.caret
ul.dropdown-menu(role="menu")
li(ng-repeat="(currency, value) in plans", dropdown-toggle)
a(
ng-click="changeCurrency(currency)",
) {{currency}} ({{value['symbol']}})
h1 #{translate("new_subscription")}
#subscribeForm(style="min-height: 700px;") #{translate("loading_billing_form")}...
.col-md-3.col-md-pull-6
2014-10-15 05:22:03 -04:00
.card.card-first
.paymentPageFeatures
.page-header
h3 #{translate("features")}
h3 #{translate("unlimited_projects")}
p #{translate("create_unlimited_projects")}
h3
if plan.features.collaborators == -1
- var collaboratorCount = 'Unlimited'
else
- var collaboratorCount = plan.features.collaborators
| #{translate("collabs_per_proj", {collabcount:collaboratorCount})}
p #{translate("work_on_single_version")}. #{translate("view_collab_edits")} in real time.
h3 #{translate("full_doc_history")}
p #{translate("see_what_has_been")}
span.added #{translate("added")}
| #{translate("and")}
span.removed #{translate("removed")}.
| #{translate("restore_to_any_older_version")}.
h3 #{translate("sync_to_dropbox")}
p
| #{translate("acces_work_from_anywhere")}.
| #{translate("work_offline_and_sync_with_dropbox")}.
hr
p.small.text-center We're confident that you'll love ShareLaTeX, but if not you can cancel anytime. We'll give you your money back, no questions asked, if you let us know within 30 days.
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-09-01 12:48:09 -04:00
window.ab = [
{step:1, bucket:"14d", testName:"trial_len"},
2014-09-26 05:56:45 -04:00
{step:1, bucket:"7d", testName:"trial_len"}
2014-09-01 12:48:09 -04:00
]