_faq_new.pug 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. include ./_plans_faq_tabs
  2. include ../../_mixins/eyebrow
  3. - var managingYourSubscription = 'managingYourSubscription'
  4. - var overleafIndividualPlans = 'overleafIndividualPlans'
  5. - var overleafGroupPlans = 'overleafGroupPlans'
  6. .plans-faq
  7. .row.row-spaced-extra-large
  8. .col-md-12.faq-heading-container
  9. h2
  10. +eyebrow(translate("frequently_asked_questions"))
  11. | #{translate("your_questions_answered")}
  12. .row
  13. .col-xs-12
  14. div(
  15. class={
  16. 'plans-faq-tabs': bootstrapVersion === 5,
  17. 'ol-tabs': bootstrapVersion === 5,
  18. 'ol-tabs-scrollable': bootstrapVersion === 3
  19. }
  20. )
  21. .nav-tabs-container
  22. ul.nav.nav-tabs(role="tablist")
  23. //- In the bs5 version of plans page, the `active` class need to be added to the `a` tag instead of the parent `li` tag
  24. //- If the `plans-page-bs5` split test has been completed, remove the `active` class from the `li` tag since we're not using it anymore
  25. //- If the `plans-page-bs5` split test has been completed, remove the `data-toggle` because it is not needed anymore (bs5 uses `data-bs-toggle`)
  26. li(
  27. role="presentation"
  28. class={
  29. active: bootstrapVersion === 3
  30. }
  31. )
  32. a(
  33. role="tab"
  34. data-toggle="tab"
  35. data-bs-toggle="tab"
  36. href='#' + managingYourSubscription
  37. aria-controls=managingYourSubscription
  38. class={
  39. active: bootstrapVersion === 5
  40. }
  41. )
  42. | #{translate('managing_your_subscription')}
  43. li(role="presentation")
  44. a(
  45. role="tab"
  46. data-toggle="tab"
  47. data-bs-toggle="tab"
  48. href='#' + overleafIndividualPlans
  49. aria-controls=overleafIndividualPlans
  50. )
  51. | #{translate('overleaf_individual_plans')}
  52. li(role="presentation")
  53. a(
  54. role="tab"
  55. data-toggle="tab"
  56. data-bs-toggle="tab"
  57. href='#' + overleafGroupPlans
  58. aria-controls=overleafGroupPlans
  59. )
  60. | #{translate('overleaf_group_plans')}
  61. .tab-content
  62. .tab-pane.active(
  63. role="tabpanel"
  64. id=managingYourSubscription
  65. )
  66. +managingYourSubscription()
  67. .tab-pane(
  68. role="tabpanel"
  69. id=overleafIndividualPlans
  70. )
  71. +overleafIndividualPlans()
  72. .tab-pane(
  73. role="tabpanel"
  74. id=overleafGroupPlans
  75. )
  76. +overleafGroupPlans()
  77. .row
  78. .col-xs-12.plans-faq-support
  79. span #{translate('still_have_questions')}
  80. button(data-ol-open-contact-form-modal="general")
  81. span(style="margin-right: 4px") #{translate('contact_support')}
  82. i.icon-md.material-symbols.material-symbols-rounded.material-symbols-arrow-right(aria-hidden="true") arrow_right_alt