plans.jade 9.3 KB

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