plans.jade 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. extends ../layout
  2. block scripts
  3. script(type='text/javascript').
  4. window.recurlyPublicToken = '#{settings.apis.recurly.publicKey}'
  5. window.recomendedCurrency = '#{recomendedCurrency}'
  6. block content
  7. .content-alt
  8. .content.plans(ng-controller="PlansController")
  9. .container
  10. .row
  11. .col-md-12
  12. .page-header.centered.plans-header.text-centered
  13. h1(ng-cloak) #{translate("start_x_day_trial", {len:'{{trial_len}}'})}
  14. .row
  15. .col-md-8.col-md-offset-2
  16. p.text-centered #{translate("sl_benefits_plans")}
  17. .row(ng-cloak)
  18. .col-md-6.col-md-offset-3
  19. ul.nav.nav-pills
  20. li(ng-class="{'active': ui.view == 'monthly'}")
  21. a(
  22. href,
  23. ng-click="switchToMonthly()"
  24. ) #{translate("monthly")}
  25. li(ng-class="{'active': ui.view == 'annual'}")
  26. a(
  27. href
  28. ng-click="switchToAnnual()"
  29. ) #{translate("annual")}
  30. li(ng-class="{'active': ui.view == 'student'}")
  31. a(
  32. href,
  33. ng-click="switchToStudent()"
  34. ) #{translate("half_price_student")}
  35. .col-md-2
  36. .dropdown(style="display:none;")
  37. a.btn.btn-primary.dropdown-toggle#currenyDropdown(
  38. href="#",
  39. data-toggle="dropdown"
  40. )
  41. | {{currencyCode}} ({{plans[currencyCode]['symbol']}})
  42. ul.dropdown-menu(role="menu")
  43. li(ng-repeat="(currency, value) in plans", dropdown-toggle)
  44. a(
  45. href,
  46. ng-click="changeCurreny(currency)"
  47. ) {{currency}} ({{value['symbol']}})
  48. .row(ng-cloak)
  49. .col-md-12
  50. .card-group.text-centered(ng-if="ui.view == 'monthly' || ui.view == 'annual'")
  51. .card
  52. .card-header
  53. h2 #{translate("personal")}
  54. .circle #{translate("free")}
  55. ul.list-unstyled
  56. li #{translate("one_collaborator")}
  57. li  
  58. li  
  59. li
  60. br
  61. a.btn.btn-info(href="/register") #{translate("sign_up_now")}
  62. .card.highlighted
  63. .card-header
  64. h2 #{translate("collaborator")}
  65. .circle
  66. span(ng-if="ui.view == 'monthly'")
  67. | {{plans[currencyCode]['collaborator']['monthly']}}
  68. span.small /mo
  69. span(ng-if="ui.view == 'annual'")
  70. | {{plans[currencyCode]['collaborator']['annual']}}
  71. span.small /yr
  72. ul.list-unstyled
  73. li
  74. strong #{translate("collabs_per_proj", {collabcount:10})}
  75. li #{translate("full_doc_history")}
  76. li #{translate("sync_to_dropbox")}
  77. li
  78. br
  79. a.btn.btn-info(
  80. ng-href="#{baseUrl}/user/subscription/new?planCode=collaborator{{ ui.view == 'annual' && '-annual' || planQueryString}}&currency={{currencyCode}}", ng-click="signUpNowClicked('collaborator')"
  81. )
  82. span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
  83. span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
  84. .card
  85. .card-header
  86. h2 #{translate("professional")}
  87. .circle
  88. span(ng-if="ui.view == 'monthly'")
  89. | {{plans[currencyCode]['professional']['monthly']}}
  90. span.small /mo
  91. span(ng-if="ui.view == 'annual'")
  92. | {{plans[currencyCode]['professional']['annual']}}
  93. span.small /yr
  94. ul.list-unstyled
  95. li
  96. strong #{translate("unlimited_collabs")}
  97. li #{translate("full_doc_history")}
  98. li #{translate("sync_to_dropbox")}
  99. li
  100. br
  101. a.btn.btn-info(
  102. ng-href="#{baseUrl}/user/subscription/new?planCode=professional{{ ui.view == 'annual' && '-annual' || planQueryString}}&currency={{currencyCode}}", ng-click="signUpNowClicked('professional')"
  103. )
  104. span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
  105. span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
  106. .card-group.text-centered(ng-if="ui.view == 'student'")
  107. .card
  108. .card-header
  109. h2 #{translate("personal")}
  110. .circle #{translate("free")}
  111. ul.list-unstyled
  112. li #{translate("one_collaborator")}
  113. li  
  114. li  
  115. li
  116. br
  117. a.btn.btn-info(href="/register") #{translate("sign_up_now")}
  118. .card.highlighted
  119. .card-header
  120. h2 #{translate("student")}
  121. .circle
  122. span
  123. | {{plans[currencyCode]['student']['monthly']}}
  124. span.small /mo
  125. ul.list-unstyled
  126. li
  127. strong #{translate("collabs_per_proj", {collabcount:6})}
  128. li #{translate("full_doc_history")}
  129. li #{translate("sync_to_dropbox")}
  130. li
  131. br
  132. a.btn.btn-info(
  133. ng-href="#{baseUrl}/user/subscription/new?planCode=student{{planQueryString}}&currency={{currencyCode}}", ng-click="signUpNowClicked('student')"
  134. ) #{translate("start_free_trial")}
  135. .card
  136. .card-header
  137. h2 #{translate("student")} (#{translate("annual")})
  138. .circle
  139. span
  140. | {{plans[currencyCode]['student']['annual']}}
  141. span.small /yr
  142. ul.list-unstyled
  143. li
  144. strong #{translate("collabs_per_proj", {collabcount:6})}
  145. li #{translate("full_doc_history")}
  146. li #{translate("sync_to_dropbox")}
  147. li
  148. br
  149. a.btn.btn-info(
  150. ng-href="#{baseUrl}/user/subscription/new?planCode=student-annual&currency={{currencyCode}}", ng-click="signUpNowClicked('student')"
  151. ) #{translate("buy_now")}
  152. .row(ng-cloak)
  153. p.text-centered #{translate("choose_plan_works_for_you", {len:14})}
  154. .row(ng-cloak)
  155. .col-md-8.col-md-offset-2
  156. .alert.alert-info.text-centered
  157. | #{translate("interested_in_group_licence")}
  158. br
  159. a(href, ng-click="openGroupPlanModal()") #{translate("get_in_touch_for_details")}
  160. script(type="text/ng-template", id="groupPlanModalTemplate")
  161. .modal-header
  162. h3 #{translate("group_plan_enquiry")}
  163. .modal-body
  164. form(name='form1', autocomplete='off', enctype='multipart/form-data', method='post', novalidate='', action='https://sharelatex.wufoo.com/forms/z7x3p3/#public', _lpchecked='1')
  165. .form-group
  166. label(for='Field9') #{translate("name")}
  167. input.form-control(name='Field9', type='text', value='', maxlength='255', tabindex='1', onkeyup='')
  168. .form-group
  169. label(for='Field11') #{translate("email")}
  170. input.form-control(name='Field11', type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
  171. .form-group
  172. label(for='Field12') #{translate("university")}
  173. input.form-control(name='Field12', type='text', value='', maxlength='255', tabindex='3', onkeyup='')
  174. .form-group
  175. label(for='Field13') #{translate("position")}
  176. input.form-control(name='Field13', type='text', value='', maxlength='255', tabindex='4', onkeyup='')
  177. .form-group
  178. input.btn.btn-primary.btn-large(name='saveForm', type='submit', value='Send')
  179. div(style='display: none;')
  180. label(for='comment') Do Not Fill This Out
  181. textarea#comment(name='comment', rows='1', cols='1')
  182. input#idstamp(type='hidden', name='idstamp', value='xkgLkZnS/AQW71jCS1d0XrrFjq26lJryIPVk2rx0YkU=')
  183. .row
  184. .col-md-12
  185. .page-header.plans-header.plans-subheader.text-centered
  186. h2 #{translate("enjoy_these_features")}
  187. .col-md-4
  188. .card.features.text-centered
  189. i.fa.fa-file-text-o.fa-5x
  190. h4 #{translate("unlimited_projects")}
  191. p #{translate("create_unlimited_projects")}
  192. .col-md-4
  193. .card.features.text-centered
  194. i.fa.fa-clock-o.fa-5x
  195. h4 #{translate("full_doc_history")}
  196. p #{translate("never_loose_work")}
  197. .col-md-4
  198. .card.features.text-centered
  199. i.fa.fa-dropbox.fa-5x
  200. h4 #{translate("sync_to_dropbox")}
  201. p #{translate("access_projects_anywhere")}