templates/bundles/FOSUserBundle/Registration/register.html.twig line 4

Open in your IDE?
  1. {% extends '@FOSUser/layout.html.twig' %}
  2. {% block fos_user_content %}
  3. {{ include('@FOSUser/Registration/register_content.html.twig') }}
  4. {% endblock fos_user_content %}
  5. {% block stylesheets %}
  6. <link rel="stylesheet" href="{{ asset('assets/generated/living_styleguide.css') }}">
  7. <style>
  8. #reg-email-additional-note {
  9. color: #999;
  10. line-height: 1.2;
  11. }
  12. </style>
  13. {% endblock %}
  14. {% block javascripts %}
  15. <script>
  16. {{ inlineJsWrapperBegin() }}
  17. jQuery('#fos_user_registration_form_email_second').bind('paste', function (e) {
  18. e.preventDefault();
  19. });
  20. jQuery('#fos_user_registration_form_email_second').parent().hide();
  21. if (jQuery('.invalid-feedback').length && jQuery('#mobile-only-visible').is(':visible')) {
  22. var mobileScrollMarker = document.getElementById('mobile-only-visible');
  23. mobileScrollMarker.scrollIntoView();
  24. }
  25. jQuery('#fos_user_registration_form_email_first').change(function() {
  26. jQuery('#fos_user_registration_form_email_second').val($(this).val());
  27. });
  28. {{ inlineJsWrapperEnd() }}
  29. </script>
  30. {% if criteo_service.pageShouldContainCriteoCode(app.request, app.user) %}
  31. <!-- Criteo Product Tag -->
  32. <script>
  33. {{ inlineJsWrapperBegin() }}
  34. if (typeof window.CCM === 'object') {
  35. const hasConsentForEmbedding = CCM.acceptedEmbeddings.some(embedding => {
  36. return embedding.name === 'Criteo';
  37. });
  38. if (hasConsentForEmbedding) {
  39. window.criteo_q = window.criteo_q || [];
  40. var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
  41. window.criteo_q.push(
  42. {event: "setAccount", account: {% if criteo_service.pageShouldContainCriteoJobseekerCode(app.request.uri) %}88703{% else %}88704{% endif %}},
  43. {event: "setEmail", email: {% if app.user is defined and app.user is not null and app.user.email is defined and app.user.email is not null %}"{{ app.user.email|sha256 }}", hash_method: "sha256"{% else %}""{% endif %}},
  44. {event: "setSiteType", type: deviceType},
  45. {event: "viewItem", item: "1" }
  46. );
  47. }
  48. }
  49. {{ inlineJsWrapperEnd() }}
  50. </script>
  51. <!-- END Criteo Product Tag -->
  52. {% endif %}
  53. {% if app.environment == 'prod' and createWithRole == constant('App\\Entity\\User::ROLE_NAME_JOBOFFERER') %}
  54. <!-- Hotjar Tracking Code for https://www.joboo.de -->
  55. <script>
  56. (function(h,o,t,j,a,r){
  57. h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
  58. h._hjSettings={hjid:3825938,hjsv:6};
  59. a=o.getElementsByTagName('head')[0];
  60. r=o.createElement('script');r.async=1;
  61. r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
  62. a.appendChild(r);
  63. })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
  64. </script>
  65. {% endif %}
  66. {% endblock %}