_faq_new.pug 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. include ./_plans_faq_tabs
  2. include ../../_mixins/eyebrow
  3. include ../../_mixins/material_symbol
  4. - var managingYourSubscription = 'managingYourSubscription'
  5. - var overleafIndividualPlans = 'overleafIndividualPlans'
  6. - var overleafGroupPlans = 'overleafGroupPlans'
  7. .plans-faq
  8. .row.row-spaced-extra-large
  9. .col-md-12.faq-heading-container
  10. h2
  11. +eyebrow(translate('frequently_asked_questions'))
  12. | #{translate("your_questions_answered")}
  13. .row
  14. .col-xs-12
  15. div(
  16. class={
  17. 'plans-faq-tabs': bootstrapVersion === 5,
  18. 'ol-tabs': bootstrapVersion === 5,
  19. 'ol-tabs-scrollable': bootstrapVersion === 3,
  20. }
  21. )
  22. .nav-tabs-container
  23. ul.nav.nav-tabs(role='tablist')
  24. //- In the bs5 version of plans page, the `active` class need to be added to the `a` tag instead of the parent `li` tag
  25. //- 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
  26. //- 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`)
  27. li(role='presentation' class={
  28. active: bootstrapVersion === 3,
  29. })
  30. a(
  31. role='tab'
  32. data-toggle='tab'
  33. data-bs-toggle='tab'
  34. href='#' + managingYourSubscription
  35. aria-controls=managingYourSubscription
  36. class={
  37. active: bootstrapVersion === 5,
  38. }
  39. )
  40. | #{translate('managing_your_subscription')}
  41. li(role='presentation')
  42. a(
  43. role='tab'
  44. data-toggle='tab'
  45. data-bs-toggle='tab'
  46. href='#' + overleafIndividualPlans
  47. aria-controls=overleafIndividualPlans
  48. )
  49. | #{translate('overleaf_individual_plans')}
  50. li(role='presentation')
  51. a(
  52. role='tab'
  53. data-toggle='tab'
  54. data-bs-toggle='tab'
  55. href='#' + overleafGroupPlans
  56. aria-controls=overleafGroupPlans
  57. )
  58. | #{translate('overleaf_group_plans')}
  59. .tab-content
  60. .tab-pane.active(role='tabpanel' id=managingYourSubscription)
  61. +managingYourSubscription
  62. .tab-pane(role='tabpanel' id=overleafIndividualPlans)
  63. +overleafIndividualPlans
  64. .tab-pane(role='tabpanel' id=overleafGroupPlans)
  65. +overleafGroupPlans
  66. .row
  67. .col-xs-12.plans-faq-support
  68. span #{translate('still_have_questions')}
  69. button(
  70. data-ol-open-contact-form-modal='general'
  71. data-bs-toggle=bootstrapVersion === 5 ? 'modal' : undefined
  72. data-bs-target=bootstrapVersion === 5 ? '#contactUsModal' : undefined
  73. )
  74. span(style='margin-right: 4px') #{translate('contact_support')}
  75. +material-symbol-rounded('arrow_right_alt', 'icon-md')