templates/default/contact.html.twig line 1

Open in your IDE?
  1. {% extends '/base.html.twig' %}
  2. {% set isJanusPage = true %}
  3. {% block stylesheets %}
  4. {{ parent() }}
  5. <link rel="stylesheet" href="{{ asset('assets/generated/living_styleguide.css') }}">
  6. <style>
  7. table, th, td {
  8. border: 1px solid black;
  9. border-collapse: collapse;
  10. }
  11. td {
  12. padding: 8px;
  13. }
  14. </style>
  15. {% endblock %}
  16. {% block main_content %}
  17. <div class="jlls-page-container">
  18. <div class="jlls-card">
  19. <div class="jlls-card-title">
  20. <h1 class="jlls-card-title-text">{{ 'contact_page.headline'|trans|raw }}</h1>
  21. </div>
  22. <div class="tw-p-0 md:tw-p-4">
  23. {% if app.user is not defined or app.user is null %}
  24. {% for category, faqsGroupedBySubcategory in faqs %}
  25. {% set outerIndex = loop.index %}
  26. <div class="row tw-px-3 faq-section-trigger faq-section-trigger-{{ outerIndex }} tw-border-b tw-border-gray-200">
  27. <div class="col-12 tw-text-left tw-flex tw-flex-row tw-items-center tw-justify-start tw-text-joboo-gray-800 tw-py-3"
  28. onclick="window.appFunctions.toggleFaqSection({{ outerIndex }})">
  29. <i class="fa fa-chevron-circle-right fa-lg tw-mr-2 faq-section-icon faq-section-icon-{{ outerIndex }}" style="color: #CE99F2;"
  30. aria-hidden="true"></i>
  31. <span class="jlls-text tw-font-bold tw-mb-0 tw-cursor-pointer">{{ category }}</span>
  32. </div>
  33. <div class="col-12 tw-py-3 faq-section-content faq-section-content-{{ outerIndex }} d-none tw-text-left tw-pl-2 md:tw-pl-8">
  34. {% for subcategory, faqsAndAnswers in faqsGroupedBySubcategory %}
  35. {% set innerIndex = loop.index %}
  36. <div class="row tw-px-3 faq-section-trigger faq-section-trigger-{{ outerIndex }}{{ innerIndex }}">
  37. <div class="col-12 tw-text-left tw-flex tw-flex-row tw-items-center tw-justify-start tw-text-joboo-gray-800 tw-py-3"
  38. onclick="window.appFunctions.toggleFaqSection('{{ outerIndex }}' + '{{ innerIndex }}')">
  39. <i class="fa fa-chevron-circle-right fa-lg tw-mr-2 faq-section-icon faq-section-icon-{{ outerIndex }}{{ innerIndex }}" style="color: #CE99F2;"
  40. aria-hidden="true"></i>
  41. <span class="jlls-text tw-font-bold tw-mb-0 tw-cursor-pointer">{{ subcategory }}</span>
  42. </div>
  43. <div class="col-12 tw-py-3 faq-section-content faq-section-content-{{ outerIndex }}{{ innerIndex }} d-none tw-text-left tw-pl-2 md:tw-pl-8">
  44. {% for faq in faqsAndAnswers %}
  45. {% set innermostIndex = loop.index %}
  46. <div class="row tw-px-3 faq-section-trigger faq-section-trigger-{{ outerIndex }}{{ innerIndex }}{{ innermostIndex }}">
  47. <div class="col-12 tw-text-left tw-flex tw-flex-row tw-items-center tw-justify-start tw-text-joboo-gray-800 tw-py-1"
  48. onclick="window.appFunctions.toggleFaqSection('{{ outerIndex }}' + '{{ innerIndex }}' + '{{ innermostIndex }}')">
  49. <i class="fa fa-chevron-circle-right tw-mr-2 faq-section-icon faq-section-icon-{{ outerIndex }}{{ innerIndex }}{{ innermostIndex }}" style="color: #CE99F2;"
  50. aria-hidden="true"></i>
  51. <span class="jlls-text tw-font-semibold tw-mb-0 tw-cursor-pointer">{{ faq.question }}</span>
  52. </div>
  53. <div class="col-12 tw-pt-3 tw-pb-2 tw-mb-2 faq-answer faq-section-content faq-section-content-{{ outerIndex }}{{ innerIndex }}{{ innermostIndex }} d-none tw-text-left tw-pl-2 md:tw-pl-4 tw-border-b tw-border-gray-200"
  54. onclick="window.appFunctions.toggleFaqSection('{{ outerIndex }}' + '{{ innerIndex }}' + '{{ innermostIndex }}')">
  55. <span class="jlls-text">{{ faq.answer|replace(
  56. {
  57. '%linkRegJobseeker%': '<a class="jlls-link-default tw-underline" href=' ~ path("fos_user_registration_register", {'createWithRole': constant('App\\Entity\\User::ROLE_NAME_JOBSEEKER')}) ~ '>hier</a>',
  58. '%linkRegJobofferer%': '<a class="jlls-link-default tw-underline" href=' ~ path("fos_user_registration_register", {'createWithRole': constant('App\\Entity\\User::ROLE_NAME_JOBOFFERER')}) ~ '>hier</a>',
  59. '%linkPasswordReset%': '<a class="jlls-link-default tw-underline" href=' ~ path("fos_user_resetting_request") ~ '>hier</a>'
  60. }
  61. )|raw }}</span>
  62. </div>
  63. </div>
  64. {% endfor %}
  65. </div>
  66. </div>
  67. {% endfor %}
  68. </div>
  69. </div>
  70. {% endfor %}
  71. {% else %}
  72. {% for subcategory, faqsAndAnswers in faqs %}
  73. {% set innerIndex = loop.index %}
  74. <div class="row tw-px-3 faq-section-trigger faq-section-trigger-{{ innerIndex }} tw-border-b tw-border-gray-200">
  75. <div class="col-12 tw-text-left tw-flex tw-flex-row tw-items-center tw-justify-start tw-text-joboo-gray-800 tw-py-3"
  76. onclick="window.appFunctions.toggleFaqSection('{{ innerIndex }}')">
  77. <i class="fa fa-chevron-circle-right fa-lg tw-mr-2 faq-section-icon faq-section-icon-{{ innerIndex }}" style="color: #CE99F2;"
  78. aria-hidden="true"></i>
  79. <span class="jlls-text tw-font-bold tw-mb-0 tw-cursor-pointer">{{ subcategory }}</span>
  80. </div>
  81. <div class="col-12 tw-py-3 faq-section-content faq-section-content-{{ innerIndex }} d-none tw-text-left tw-pl-2 md:tw-pl-8">
  82. {% for faq in faqsAndAnswers %}
  83. {% set innermostIndex = loop.index %}
  84. <div class="row tw-px-3 faq-section-trigger faq-section-trigger-{{ innerIndex }}{{ innermostIndex }}">
  85. <div class="col-12 tw-text-left tw-flex tw-flex-row tw-items-center tw-justify-start tw-text-joboo-gray-800 tw-py-1"
  86. onclick="window.appFunctions.toggleFaqSection('{{ innerIndex }}' + '{{ innermostIndex }}')">
  87. <i class="fa fa-chevron-circle-right tw-mr-2 faq-section-icon faq-section-icon-{{ innerIndex }}{{ innermostIndex }}" style="color: #CE99F2;"
  88. aria-hidden="true"></i>
  89. <span class="jlls-text tw-font-semibold tw-mb-0 tw-cursor-pointer">{{ faq.question }}</span>
  90. </div>
  91. <div class="col-12 tw-pt-3 tw-pb-2 tw-mb-2 faq-section-content faq-answer faq-section-content-{{ innerIndex }}{{ innermostIndex }} d-none tw-text-left tw-pl-2 md:tw-pl-4 tw-border-b tw-border-gray-200"
  92. onclick="window.appFunctions.toggleFaqSection('{{ innerIndex }}' + '{{ innermostIndex }}')">
  93. <span class="jlls-text">{{ faq.answer|replace(
  94. {
  95. '%linkRegJobseeker%': '<a class="jlls-link-default tw-underline" href=' ~ path("fos_user_registration_register", {'createWithRole': constant('App\\Entity\\User::ROLE_NAME_JOBSEEKER')}) ~ '>hier</a>',
  96. '%linkRegJobofferer%': '<a class="jlls-link-default tw-underline" href=' ~ path("fos_user_registration_register", {'createWithRole': constant('App\\Entity\\User::ROLE_NAME_JOBOFFERER')}) ~ '>hier</a>',
  97. '%linkPasswordReset%': '<a class="jlls-link-default tw-underline" href=' ~ path("fos_user_resetting_request") ~ '>hier</a>',
  98. 'info@joboo.de': '<a class="jlls-link-default tw-underline" href="mailto:info@joboo.de">info@joboo.de</a>'
  99. }
  100. )|raw }}</span>
  101. </div>
  102. </div>
  103. {% endfor %}
  104. </div>
  105. </div>
  106. {% endfor %}
  107. {% endif %}
  108. <div class="row tw-px-3 faq-section-trigger faq-section-trigger-contact tw-border-b tw-border-gray-200" id="contact-form-area">
  109. <div class="col-12 tw-text-left tw-flex tw-flex-row tw-items-center tw-justify-start tw-text-joboo-gray-800 tw-py-3"
  110. onclick="window.appFunctions.toggleFaqSection('contact')">
  111. <i class="fa fa-chevron-circle-right fa-lg tw-mr-2 faq-section-icon faq-section-icon-contact" style="color: #CE99F2;"
  112. aria-hidden="true"></i>
  113. <span class="jlls-text tw-font-bold tw-mb-0 tw-cursor-pointer">Kontakt</span>
  114. </div>
  115. <div class="col-12 tw-pb-3 faq-section-content faq-section-content-contact {% if contactOpen is not defined or not contactOpen %}d-none–{% endif %} tw-text-left tw-bg-gray-50 tw-rounded-lg">
  116. <div class="container-fluid tw-px-0 md:tw-px-4">
  117. <div class="tw-flex tw-flex-col md:tw-flex-row">
  118. <div class="col-md tw-p-0 md:tw-py-3 md:tw-pr-4 md:tw-mb-5">
  119. <img src="{{ asset('assets/images/contact-640.jpg')|cdnifyUri }}"
  120. alt="{{ 'seo.image_alt_texts.contact'|trans([], 'seo') }}"
  121. class="tw-w-full tw-rounded-lg">
  122. <div class="tw-py-2 tw-px-4 md:tw-px-2 md:tw-pt-4 jlls-text">
  123. {{ 'contact_page.description'|trans|raw }}
  124. </div>
  125. </div>
  126. <div class="col-md tw-px-4 md:tw-px-0">
  127. {{ form_start(form, { 'attr': {'id': 'contact-form'} }) }}
  128. <div class="tw-mb-6">
  129. {{ form_row(form.subject, { 'attr': {'class': 'jlls-form-input'} }) }}
  130. </div>
  131. <div class="tw-mb-6">
  132. {{ form_row(form.email, { 'attr': {'class': 'jlls-form-input'} }) }}
  133. </div>
  134. <div class="tw-mb-4">
  135. {{ form_row(form.body, { 'attr': {'class': 'tw-px-2 jlls-form-textarea', 'style': 'height: 20em;'} }) }}
  136. </div>
  137. <div class="tw-pb-3 md:tw-pb-0 tw-text-center">
  138. <div class="{{ captchaSubmitClass() }}" {{ captchaSubmitDataAttributes() }}></div>
  139. <button type="submit" class="submit-button jlls-button-default">{{ 'contact_page.send'|trans }}</button>
  140. </div>
  141. {{ form_end(form) }}
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. {% endblock %}
  151. {% block javascripts %}
  152. {{ captchaJavascript('contact-form', 'submit-button') }}
  153. <script>
  154. {{ inlineJsWrapperBegin() }}
  155. window.appFunctions.toggleFaqSection = function (sectionId) {
  156. if (jQuery('.faq-section-content-' + sectionId).hasClass('d-none')) {
  157. jQuery('.faq-section-content-' + sectionId).removeClass('d-none');
  158. jQuery('.faq-section-icon-' + sectionId).removeClass('fa-chevron-circle-right').addClass('fa-chevron-circle-down');
  159. } else {
  160. jQuery('.faq-section-content-' + sectionId).addClass('d-none');
  161. jQuery('.faq-section-icon-' + sectionId).removeClass('fa-chevron-circle-down').addClass('fa-chevron-circle-right');
  162. }
  163. }
  164. {{ inlineJsWrapperEnd() }}
  165. </script>
  166. {% endblock %}