templates/components/Common/CallbackForm.html.twig line 1

Open in your IDE?
  1. {% if siteGlobals.globals.service.code.value == 'partner' %}
  2.     {% do add_script('https://app.uiscom.ru/static/cs.min.js?k=nOdo2EiGFpQm9ziHRC0lwmfpCb7IYFx0', {'type': 'text/javascript', 'async': 'async'}) %}
  3. {% elseif siteGlobals.globals.service.code.value == 'lawyer' %}
  4.     {% do add_script('https://app.uiscom.ru/static/cs.min.js?k=SH18VBDD4VenLGo5RMPNpLbHqWNRGfOW', {'type': 'text/javascript', 'async': 'async'}) %}
  5. {% else %}
  6.     {% do add_script('https://app.uiscom.ru/static/cs.min.js?k=tfyqc7wOmROF_7dMFHArYDBRVAmHSPK3', {'type': 'text/javascript', 'async': 'async'}) %}
  7. {% endif %}
  8. {% if this.formType == 'main-2' or this.formType == 'advanced-with-name-v2' or this.formType == 'advanced-with-name-v3' %}
  9.     {% do add_script(asset('assets/js_25/component/common/support-callback-2-form.js'), {'type': 'text/javascript'}) %}
  10. {% else %}
  11.     {% do add_script(asset('assets/js_25/component/common/support-callback-form.js'), {'type': 'text/javascript'}) %}
  12. {% endif %}
  13. <div data-component="support-callback-form"
  14.      data-send-form-url="{{ path('sendPhoneFromLandingPage') }}"
  15.      style="display:none;">
  16. </div>
  17. {% if this.formType == 'advanced-with-name' %}
  18.     {% include 'component_parts/common/callback_form/advanced-with-name.html.twig' %}
  19. {% elseif this.formType == 'advanced-with-name-v2' %}
  20.     {% include 'component_parts/common/callback_form/advanced-with-name-v2.html.twig' %}
  21. {% elseif this.formType == 'advanced-with-name-v3' %}
  22.     {% include 'component_parts/common/callback_form/advanced-with-name-v3.html.twig' %}
  23. {% elseif this.formType == 'advanced' %}
  24.     {% if this.forService == 'appraiser' %}
  25.         {% include 'component_parts/common/callback_form/advanced-appraiser.html.twig' %}
  26.     {% else %}
  27.         {% include 'component_parts/common/callback_form/advanced.html.twig' %}
  28.     {% endif %}
  29. {% elseif this.formType == 'main' or this.formType == 'main-double' %}
  30.     {% include 'component_parts/common/callback_form/main.html.twig' %}
  31. {% elseif this.formType == 'main-2' %}
  32.     {% include 'component_parts/common/callback_form/main-2.html.twig' %}
  33. {% endif %}