templates/tenants/tenant1/pages/support.html.twig line 1

Open in your IDE?
  1. {% extends rootPath ~ '/base.html.twig' %}
  2. {% block javascripts %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         reCAPTCHA_site_key = '{{ reCAPTCHA_site_key }}';
  6.     </script>
  7.     <script src="https://www.google.com/recaptcha/api.js?render={{ reCAPTCHA_site_key }}"></script>
  8. {% endblock %}
  9. {% block form %}
  10.     {{ include('tenants/tenant1/parts/support-form.html.twig') }}
  11. {% endblock %}
  12. {% block body_javascript %}
  13.     {{ parent() }}
  14.     <script src="{{ asset('tenants/tenant1/js/formValidate.js?v=23-10-2022') }}"></script>
  15.     <script src="{{ asset('tenants/tenant1/js/support.js?v=23-10-2022') }}"></script>
  16.     <script>
  17.         (()=>{
  18.             Support.source = '{{ app.request.get('_route') }}';
  19.             Support.userDefining = {% if app.user is not null %}true{% else %}false{% endif %};
  20.             Support.type = '{{ app.request.get('type') ?? '' }}';
  21.             Support.messages = {
  22.                 success:    '{{ 'Support.success'|transByTenant }}',
  23.                 failed:     '{{ 'Support.failed'|transByTenant }}',
  24.             };
  25.             Support.init();
  26.         })();
  27.     </script>
  28. {% endblock %}