plans.pug 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. extends ../layout
  2. block scripts
  3. script(type='text/javascript').
  4. window.recomendedCurrency = '#{recomendedCurrency}'
  5. window.abCurrencyFlag = '#{abCurrencyFlag}'
  6. window.shouldABTestPlans = #{shouldABTestPlans || false}
  7. script(type='text/javascript').
  8. (function() {var s=document.createElement('script'); s.type='text/javascript';s.async=true;
  9. s.src=('https:'==document.location.protocol?'https':'http') + '://sharelatex-accounts.groovehq.com/widgets/f5ad3b09-7d99-431b-8af5-c5725e3760ce/ticket/api.js';
  10. var q = document.getElementsByTagName('script')[0];q.parentNode.insertBefore(s, q);})();
  11. block content
  12. .content-alt
  13. .content.plans(ng-controller="PlansController")
  14. .container
  15. .row
  16. .col-md-12
  17. .page-header.centered.plans-header.text-centered
  18. h1(ng-cloak) #{translate("start_x_day_trial", {len:'{{trial_len}}'})}
  19. .row
  20. .col-md-8.col-md-offset-2
  21. p.text-centered #{translate("sl_benefits_plans")}
  22. .row(ng-cloak)
  23. .col-md-6.col-md-offset-3
  24. ul.nav.nav-pills
  25. li(ng-class="{'active': ui.view == 'monthly'}")
  26. a(
  27. href,
  28. ng-click="switchToMonthly()"
  29. ) #{translate("monthly")}
  30. li(ng-class="{'active': ui.view == 'annual'}")
  31. a(
  32. href
  33. ng-click="switchToAnnual()"
  34. ) #{translate("annual")}
  35. li(ng-class="{'active': ui.view == 'student'}")
  36. a(
  37. href,
  38. ng-click="switchToStudent()"
  39. ) #{translate("half_price_student")}
  40. .col-md-2.text-right
  41. .dropdown.currency-dropdown(dropdown)
  42. a.btn.btn-default.dropdown-toggle#currenyDropdown(
  43. href="#",
  44. data-toggle="dropdown",
  45. dropdown-toggle
  46. )
  47. | {{currencyCode}} ({{plans[currencyCode]['symbol']}})
  48. span.caret
  49. ul.dropdown-menu.dropdown-menu-right.text-right(role="menu")
  50. li(ng-repeat="(currency, value) in plans")
  51. a(
  52. href,
  53. ng-click="changeCurreny(currency)"
  54. ) {{currency}} ({{value['symbol']}})
  55. div(ng-show="showPlans")
  56. .row(ng-cloak)
  57. .col-md-10.col-md-offset-1
  58. .row
  59. .card-group.text-centered(ng-if="ui.view == 'monthly' || ui.view == 'annual'")
  60. .col-md-4
  61. .card.card-first
  62. .card-header
  63. h2 #{translate("personal")}
  64. .circle #{translate("free")}
  65. ul.list-unstyled
  66. li #{translate("one_collaborator")}
  67. li  
  68. li  
  69. li  
  70. li
  71. br
  72. a.btn.btn-info(
  73. href="/register"
  74. style=(getLoggedInUserId() === undefined ? "" : "visibility: hidden")
  75. ) #{translate("sign_up_now")}
  76. .col-md-4
  77. .card.card-highlighted
  78. .card-header
  79. h2 #{translate("collaborator")}
  80. .circle
  81. span(ng-if="ui.view == 'monthly'")
  82. | {{plans[currencyCode]['collaborator']['monthly']}}
  83. span.small /mo
  84. span(ng-if="ui.view == 'annual'")
  85. | {{plans[currencyCode]['collaborator']['annual']}}
  86. span.small /yr
  87. ul.list-unstyled
  88. li
  89. strong(ng-show="plansVariant == 'default'") #{translate("collabs_per_proj", {collabcount:10})}
  90. strong(ng-show="plansVariant == 'heron'") #{translate("collabs_per_proj", {collabcount:8})}
  91. strong(ng-show="plansVariant == 'ibis'") #{translate("collabs_per_proj", {collabcount:12})}
  92. li #{translate("full_doc_history")}
  93. li #{translate("sync_to_dropbox")}
  94. li #{translate("sync_to_github")}
  95. li
  96. br
  97. a.btn.btn-info(
  98. ng-href="/user/subscription/new?planCode={{ getCollaboratorPlanCode() }}&currency={{currencyCode}}", ng-click="signUpNowClicked('collaborator')"
  99. )
  100. span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
  101. span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
  102. .col-md-4
  103. .card.card-last
  104. .card-header
  105. h2 #{translate("professional")}
  106. .circle
  107. span(ng-if="ui.view == 'monthly'")
  108. | {{plans[currencyCode]['professional']['monthly']}}
  109. span.small /mo
  110. span(ng-if="ui.view == 'annual'")
  111. | {{plans[currencyCode]['professional']['annual']}}
  112. span.small /yr
  113. ul.list-unstyled
  114. li
  115. strong #{translate("unlimited_collabs")}
  116. li #{translate("full_doc_history")}
  117. li #{translate("sync_to_dropbox")}
  118. li #{translate("sync_to_github")}
  119. li
  120. br
  121. a.btn.btn-info(
  122. ng-href="/user/subscription/new?planCode=professional{{ ui.view == 'annual' && '-annual' || planQueryString}}&currency={{currencyCode}}", ng-click="signUpNowClicked('professional')"
  123. )
  124. span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
  125. span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
  126. .card-group.text-centered(ng-if="ui.view == 'student'")
  127. .col-md-4
  128. .card.card-first
  129. .card-header
  130. h2 #{translate("personal")}
  131. .circle #{translate("free")}
  132. ul.list-unstyled
  133. li #{translate("one_collaborator")}
  134. li  
  135. li  
  136. li  
  137. li
  138. br
  139. a.btn.btn-info(
  140. href="/register"
  141. style=(getLoggedInUserId() === undefined ? "" : "visibility: hidden")
  142. ) #{translate("sign_up_now")}
  143. .col-md-4
  144. .card.card-highlighted
  145. .card-header
  146. h2 #{translate("student")}
  147. .circle
  148. span
  149. | {{plans[currencyCode]['student']['monthly']}}
  150. span.small /mo
  151. ul.list-unstyled
  152. li
  153. strong(ng-show="plansVariant == 'default'") #{translate("collabs_per_proj", {collabcount:6})}
  154. strong(ng-show="plansVariant == 'heron'") #{translate("collabs_per_proj", {collabcount:4})}
  155. strong(ng-show="plansVariant == 'ibis'") #{translate("collabs_per_proj", {collabcount:8})}
  156. li #{translate("full_doc_history")}
  157. li #{translate("sync_to_dropbox")}
  158. li #{translate("sync_to_github")}
  159. li
  160. br
  161. a.btn.btn-info(
  162. ng-href="/user/subscription/new?planCode=student{{ plansVariant == 'default' ? planQueryString : '_'+plansVariant }}&currency={{currencyCode}}",
  163. ng-click="signUpNowClicked('student')"
  164. ) #{translate("start_free_trial")}
  165. .col-md-4
  166. .card.card-last
  167. .card-header
  168. h2 #{translate("student")} (#{translate("annual")})
  169. .circle
  170. span
  171. | {{plans[currencyCode]['student']['annual']}}
  172. span.small /yr
  173. ul.list-unstyled
  174. li
  175. strong(ng-show="plansVariant == 'default'") #{translate("collabs_per_proj", {collabcount:6})}
  176. strong(ng-show="plansVariant == 'heron'") #{translate("collabs_per_proj", {collabcount:4})}
  177. strong(ng-show="plansVariant == 'ibis'") #{translate("collabs_per_proj", {collabcount:8})}
  178. li #{translate("full_doc_history")}
  179. li #{translate("sync_to_dropbox")}
  180. li #{translate("sync_to_github")}
  181. li
  182. br
  183. a.btn.btn-info(
  184. ng-href="/user/subscription/new?planCode=student-annual{{ plansVariant == 'default' ? '' : '_'+plansVariant }}&currency={{currencyCode}}",
  185. ng-click="signUpNowClicked('student')"
  186. ) #{translate("buy_now")}
  187. .row.row-spaced(ng-cloak)
  188. p.text-centered #{translate("choose_plan_works_for_you", {len:'{{trial_len}}'})}
  189. .row(ng-cloak)
  190. .col-md-8.col-md-offset-2
  191. .alert.alert-info.text-centered
  192. | #{translate("interested_in_group_licence")}
  193. br
  194. a(href, ng-click="openGroupPlanModal()") #{translate("get_in_touch_for_details")}
  195. script(type="text/ng-template", id="groupPlanModalTemplate")
  196. .modal-header
  197. h3 #{translate("group_plan_enquiry")}
  198. .modal-body
  199. form.text-left.form(ng-controller="UniverstiesContactController", ng-submit="contactUs()", ng-cloak)
  200. span(ng-show="sent == false")
  201. .form-group
  202. label#title9(for='Field9')
  203. | Name
  204. input#Field9.field.text.medium.span8.form-control(ng-model="form.name", maxlength='255', tabindex='1', onkeyup='')
  205. label#title11.desc(for='Field11')
  206. | Email
  207. .form-group
  208. input#Field11.field.text.medium.span8.form-control(ng-model="form.email", name='Field11', type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
  209. label#title12.desc(for='Field12')
  210. | University / Company
  211. .form-group
  212. input#Field12.field.text.medium.span8.form-control(ng-model="form.university", name='Field12', type='text', value='', maxlength='255', tabindex='3', onkeyup='')
  213. label#title13.desc(for='Field13')
  214. | Position
  215. .form-group
  216. input#Field13.field.text.medium.span8.form-control(ng-model="form.position", name='Field13', type='text', value='', maxlength='255', tabindex='4', onkeyup='')
  217. .form-group
  218. input(ng-model="form.source", type="hidden", ng-init="form.source = '__ref__'; form.subject = 'ShareLaTeX for Universities';")
  219. .form-group.text-center
  220. input#saveForm.btn-success.btn.btn-lg(name='saveForm', type='submit', ng-disabled="sending", value='Request a quote')
  221. span(ng-show="sent")
  222. p Request Sent, Thank you.
  223. .row
  224. .col-md-12
  225. .page-header.plans-header.plans-subheader.text-centered
  226. h2 #{translate("enjoy_these_features")}
  227. .col-md-4
  228. .card.features.text-centered
  229. i.fa.fa-file-text-o.fa-5x
  230. h4 #{translate("unlimited_projects")}
  231. p #{translate("create_unlimited_projects")}
  232. .col-md-4
  233. .card.features.text-centered
  234. i.fa.fa-clock-o.fa-5x
  235. h4 #{translate("full_doc_history")}
  236. p #{translate("never_loose_work")}
  237. .col-md-4
  238. .card.features.text-centered
  239. i.fa.fa-dropbox.fa-5x
  240. |    
  241. i.fa.fa-github.fa-5x
  242. h4 #{translate("sync_to_dropbox_and_github")}
  243. p #{translate("access_projects_anywhere")}