bundles/FoxHabbit/BasisBundle/Resources/views/Areas/content/basisbundle-content-form/variant-evalanche.html.twig line 1

Open in your IDE?
  1. {% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  2. {% set evalanche_user = app.request.getSession().get('evalanche_user')|default(null) %}
  3. {% if editmode %}
  4.     {{ pimcore_select( 'form_url', { store: evalancheConnector.getFormsAsPimcoreSelectStore(), width: '100%' }) }}
  5. {% else %}
  6.     {% set iframeUrl = pimcore_select( 'form_url').getValue() %}
  7.     {% if config.forceHttps|default(null) %}
  8.         {% set iframeUrl = iframeUrl|replace({'http:':'https:'}) %}
  9.     {% endif %}
  10.     {% if config.forceHttp|default(null) %}
  11.         {% set iframeUrl = iframeUrl|replace({'https:':'http:'}) %}
  12.     {% endif %}
  13.     {% if config.prefillUserData|default(null) and evalanche_user %}
  14.         {% set iframeUrl = iframeUrl ~ ',u=' ~ evalanche_user %}
  15.     {% endif %}
  16.     {% set uinique_id = 'iframe_sizetracker_'~random() %}
  17.     <iframe
  18.         class="iframe-resizer"
  19.         id="{{uinique_id}}"
  20.         scrolling="no"
  21.         src="{{ iframeUrl }}"
  22.         frameborder="0"
  23.         width="100%"
  24.         height="1280px">
  25.         <p>Ihr Browser unterstützt leider keine eingebetteten Frames (iframes)
  26.         <a href="{{ iframeUrl }}" target="_blank">weiter</a></p>
  27.     </iframe>
  28.     {% if config.text_below|default(null) %}
  29.         {{ wrap_macro.wrapperOpen( config.wrapper_text_below, _context) }}
  30.             {{ config.text_below|trans }}
  31.         {{ wrap_macro.wrapperClose( config.wrapper_text_below) }}
  32.     {% endif %}
  33. {% endif %}