var/cache/dev/twig/78/78942fe26ac904440b23ebbf88ad1616.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* module/Form/forms/bewertungen-shops.html.twig */
  14. class __TwigTemplate_68573ef5e8f5ff4e90171f0cbf5c43e8 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""module/Form/forms/bewertungen-shops.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""module/Form/forms/bewertungen-shops.html.twig"));
  35.         // line 1
  36.         $context["debug"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsetrue1), "query", [], "any"falsefalsetrue1), "get", [=> "debug"], "method"falsefalsetrue1);
  37.         // line 2
  38.         $context["formName"] = ("igs-" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'2$this->source); })()), "getId", [], "method"falsefalsetrue2), 2$this->source));
  39.         // line 3
  40.         $context["formFields"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'3$this->source); })()), "formular", [], "any"falsefalsetrue3), "formFields", [], "any"falsefalsetrue3);
  41.         // line 4
  42.         $context["pauschalenname"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["frontend"] ?? null), "formular", [], "any"falsetruetrue4), "pauschalenname", [], "any"truetruetrue4)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'4$this->source); })()), "formular", [], "any"falsefalsetrue4), "pauschalenname", [], "any"falsefalsetrue4)) : (""));
  43.         // line 5
  44.         $context["buttontext"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'5$this->source); })()), "formular", [], "any"falsefalsetrue5), "buttontext", [], "any"falsefalsetrue5);
  45.         // line 6
  46.         $context["pflichtfeldtext"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'6$this->source); })()), "formular", [], "any"falsefalsetrue6), "pflichtfeldtext", [], "any"falsefalsetrue6);
  47.         // line 7
  48.         $context["dsgvotext"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'7$this->source); })()), "formular", [], "any"falsefalsetrue7), "dsgvotext", [], "any"falsefalsetrue7);
  49.         // line 8
  50.         $context["antwort"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'8$this->source); })()), "formular", [], "any"falsefalsetrue8), "antwort", [], "any"falsefalsetrue8);
  51.         // line 9
  52.         $context["websiteConfigName"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'9$this->source); })()), "formular", [], "any"falsefalsetrue9), "websiteConfigName", [], "any"falsefalsetrue9);
  53.         // line 10
  54.         $context["mailTemplate"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'10$this->source); })()), "formular", [], "any"falsefalsetrue10), "mailTemplate", [], "any"falsefalsetrue10);
  55.         // line 11
  56.         $context["url"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["frontend"]) || array_key_exists("frontend"$context) ? $context["frontend"] : (function () { throw new RuntimeError('Variable "frontend" does not exist.'11$this->source); })()), "formular", [], "any"falsefalsetrue11), "url", [], "any"falsefalsetrue11);
  57.         // line 12
  58.         echo "
  59. ";
  60.         // line 13
  61.         $context["lg"] = twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'13$this->source); })()), "getProperty", [=> "language"], "method"falsefalsetrue13);
  62.         // line 14
  63.         echo "
  64. <form  method=\"post\" accept-charset=\"utf-8\" name=\"feedback\" role=\"form\">
  65.     <div id=\"anchorPosition\"></div>
  66.     <!-- FREUNDLICHKEIT Slider -->
  67.     <div class=\"rangeslider-wrp form-spacer\">
  68.         <div class=\"group-label\">
  69.             <h5 class=\"theme-color font-bold text-uppercase\">";
  70.         // line 25
  71.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_freundlichkeit");
  72.         echo "</h5>
  73.             <span class=\"group-question font-light\">";
  74.         // line 26
  75.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text_freundlichkeit", ["nl2br" => true]);
  76.         echo "</span>
  77.         </div>
  78.         <div class=\"rangeslider-constraint\">
  79.             <input name=\"form_FREUNDLICHKEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  80.         </div>
  81.     </div>
  82.     <!-- ATMOSPHAERE Slider -->
  83.     <div class=\"rangeslider-wrp form-spacer\">
  84.         <div class=\"group-label\">
  85.             <h5 class=\"theme-color font-bold text-uppercase\">";
  86.         // line 38
  87.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_atmosphaere");
  88.         echo "</h5>
  89.             <span class=\"group-question font-light\">";
  90.         // line 39
  91.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text_atmosphaere", ["nl2br" => true]);
  92.         echo "</span>
  93.         </div>
  94.         <div class=\"rangeslider-constraint\">
  95.             <input name=\"form_ATMOSPHAERE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  96.         </div>
  97.     </div>
  98.     <!-- WARTEZEIT Slider -->
  99.     <div class=\"rangeslider-wrp form-spacer\">
  100.         <div class=\"group-label\">
  101.             <h5 class=\"theme-color font-bold text-uppercase\">";
  102.         // line 51
  103.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_wartezeit");
  104.         echo "</h5>
  105.             <span class=\"group-question font-light\">";
  106.         // line 52
  107.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text_wartezeit", ["nl2br" => true]);
  108.         echo "</span>
  109.         </div>
  110.         <div class=\"rangeslider-constraint\">
  111.             <input name=\"form_WARTEZEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  112.         </div>
  113.     </div>
  114.     <!-- WARE Slider -->
  115.     <div class=\"rangeslider-wrp form-spacer\">
  116.         <div class=\"group-label\">
  117.             <h5 class=\"theme-color font-bold text-uppercase\">";
  118.         // line 65
  119.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_ware");
  120.         echo "</h5>
  121.             <span class=\"group-question font-light\">";
  122.         // line 66
  123.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text_ware", ["nl2br" => true]);
  124.         echo "</span>
  125.         </div>
  126.         <div class=\"rangeslider-constraint\">
  127.             <input name=\"form_WARE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  128.         </div>
  129.     </div>
  130.     <!-- Unterkunft Auswahl -->
  131.     <div class=\"rangeslider-wrp form-spacer\">
  132.         <div class=\"group-label\">
  133.             <h5 class=\"theme-color font-bold text-uppercase\">";
  134.         // line 80
  135.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_unterkunft");
  136.         echo "</h5>
  137.             <span class=\"group-question font-light\">";
  138.         // line 81
  139.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text_unterkunft", ["nl2br" => true]);
  140.         echo "</span>
  141.         </div>
  142.         ";
  143.         // line 84
  144.         if (twig_get_attribute($this->env$this->source, ($context["formFields"] ?? null), "form_UNTERKUNFT", [], "any"truetruetrue84)) {
  145.             // line 85
  146.             echo "        <div class=\"rangeslider-constraint form-item\">
  147.             ";
  148.             // line 86
  149.             echo twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["formFields"]) || array_key_exists("formFields"$context) ? $context["formFields"] : (function () { throw new RuntimeError('Variable "formFields" does not exist.'86$this->source); })()), "form_UNTERKUNFT", [], "any"falsefalsetrue86), 86$this->source), ["<option value=\"0\"></option>" => ""]);
  150.             echo "
  151.          </div>
  152.         ";
  153.         }
  154.         // line 89
  155.         echo "    </div>
  156.     <div class=\"form-spacer\">
  157.         <h5 class=\"theme-color font-bold text-uppercase\">";
  158.         // line 93
  159.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_persFeedback");
  160.         echo "</h5>
  161.         <div class=\"form-item\">
  162.             <div class=\"input-textarea\"><textarea name=\"kommentar\"></textarea></div>
  163.         </div>
  164.     </div>
  165.     <div class=\"form-spacer\">
  166.         <h5 class=\"theme-color font-bold text-uppercase\">";
  167.         // line 100
  168.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_persDaten");
  169.         echo "</h5>
  170.         <div class=\"form-item\">
  171.             <div class=\"input-textarea\"><textarea name=\"personendaten\"></textarea></div>
  172.         </div>
  173.     </div>
  174.     <div class=\"form-spacer\">
  175.         <h5 class=\"theme-color font-bold text-uppercase\">";
  176.         // line 107
  177.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""label_email");
  178.         echo "</h5>
  179.         <div class=\"form-item\">
  180.             <div class=\"input-input\"><input type=\"text\" name=\"email\"/></div>
  181.         </div>
  182.     </div>
  183.     <!-- SUBMIT -->
  184.     <div class=\"btn-wrp submit-button\">
  185.         <input type=\"submit\" value=\"";
  186.         // line 116
  187.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["buttontext"]) || array_key_exists("buttontext"$context) ? $context["buttontext"] : (function () { throw new RuntimeError('Variable "buttontext" does not exist.'116$this->source); })()), 116$this->source), "html"nulltrue);
  188.         echo "\">
  189.     </div>
  190.     <div class=\"data-privacy-statement\">
  191.         ";
  192.         // line 120
  193.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["dsgvotext"]) || array_key_exists("dsgvotext"$context) ? $context["dsgvotext"] : (function () { throw new RuntimeError('Variable "dsgvotext" does not exist.'120$this->source); })()), 120$this->source), "html"nulltrue);
  194.         echo "
  195.     </div>
  196.     <div class=\"waiting-for-response\">
  197.         <div class=\"submit-sending\">
  198.             <div class=\"submit-sending--wrp\">
  199.                 <div class=\"submit-sending-box\">
  200.                     <div class=\"border one\"></div>
  201.                     <div class=\"border two\"></div>
  202.                     <div class=\"border three\"></div>
  203.                     <div class=\"border four\"></div>
  204.                     <div class=\"line one\"></div>
  205.                     <div class=\"line two\"></div>
  206.                     <div class=\"line three\"></div>
  207.                 </div>
  208.             </div>
  209.         </div>
  210.     </div>
  211.     <div class=\"hidden\">
  212.         <input type=\"text\" name=\"language\" value=\"";
  213.         // line 145
  214.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'145$this->source); })()), "getProperty", [=> "language"], "method"falsefalsetrue145), 145$this->source), "html"nulltrue);
  215.         echo "\"/>
  216.             <input type=\"text\" name=\"websiteconfigname\" value=\"";
  217.         // line 146
  218.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["websiteConfigName"]) || array_key_exists("websiteConfigName"$context) ? $context["websiteConfigName"] : (function () { throw new RuntimeError('Variable "websiteConfigName" does not exist.'146$this->source); })()), 146$this->source), "html"nulltrue);
  219.         echo "\"/>
  220.             <input type=\"text\" name=\"mailtemplate\" value=\"";
  221.         // line 147
  222.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["mailTemplate"]) || array_key_exists("mailTemplate"$context) ? $context["mailTemplate"] : (function () { throw new RuntimeError('Variable "mailTemplate" does not exist.'147$this->source); })()), 147$this->source), "html"nulltrue);
  223.         echo "\"/>
  224.             <input type=\"text\" name=\"url\" value=\"";
  225.         // line 148
  226.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["url"]) || array_key_exists("url"$context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.'148$this->source); })()), 148$this->source), "html"nulltrue);
  227.         echo "\"/>
  228.             <input type=\"text\" name=\"debug\" value=\"";
  229.         // line 149
  230.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["debug"]) || array_key_exists("debug"$context) ? $context["debug"] : (function () { throw new RuntimeError('Variable "debug" does not exist.'149$this->source); })()), 149$this->source), "html"nulltrue);
  231.         echo "\"/>
  232.     </div>
  233. </form>
  234. ";
  235.         // line 154
  236.         if (((isset($context["debug"]) || array_key_exists("debug"$context) ? $context["debug"] : (function () { throw new RuntimeError('Variable "debug" does not exist.'154$this->source); })()) == "1")) {
  237.             echo " <div id=\"debug\">Egebnis aus Sendmail!</div> ";
  238.         }
  239.         // line 155
  240.         echo "
  241. <script>
  242.     (function () {
  243.         'use strict';
  244.         var moduleName = '";
  245.         // line 164
  246.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["formName"]) || array_key_exists("formName"$context) ? $context["formName"] : (function () { throw new RuntimeError('Variable "formName" does not exist.'164$this->source); })()), 164$this->source), "html"nulltrue);
  247.         echo "_module'; // naming convention XXX_module
  248.         if (typeof selt === 'undefined') {
  249.             window.selt = {
  250.                 modules: {}
  251.             };
  252.         } else if (!selt.modules) {
  253.             selt.modules = {};
  254.         }
  255.         selt.modules[moduleName] = {
  256.             name: moduleName,
  257.             init: function () {
  258.                 activateForm();
  259.             }
  260.         };
  261.         function activateForm() {
  262.             var scnemForm       = \$(\"form[name='feedback']\"),
  263.                 confirmationURL = '";
  264.         // line 189
  265.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["antwort"]) || array_key_exists("antwort"$context) ? $context["antwort"] : (function () { throw new RuntimeError('Variable "antwort" does not exist.'189$this->source); })()), 189$this->source), "html"nulltrue);
  266.         echo "';
  267.             scnemForm[0].onsubmit = function () {
  268.                 if (!selt.validateForm(scnemForm)) {
  269.                     selt.ajaxSubmitForm(scnemForm, confirmationURL, ";
  270.         // line 195
  271.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["debug"]) || array_key_exists("debug"$context) ? $context["debug"] : (function () { throw new RuntimeError('Variable "debug" does not exist.'195$this->source); })()), 195$this->source), "html"nulltrue);
  272.         echo ");
  273.                 }
  274.                 return false;
  275.             };
  276.         }
  277.     }())
  278. </script>
  279. <script type=\"text/javascript\">
  280.     (function () {
  281.         var moduleName = 'rangeslider_module'; // naming convention XXX_module
  282.         if (typeof selt === 'undefined') {
  283.             selt = {
  284.                 modules: {}
  285.             };
  286.         } else if (!selt.modules) {
  287.             selt.modules = {};
  288.         }
  289.         selt.modules[moduleName] = {
  290.             name: moduleName,
  291.             init: function () {
  292.                 console.log('init', this.name);
  293.                 selt.loadExternalCss('/bundles/app/static/frontend/css/feedback_form.css');
  294.                 selt.loadExternalJavascript('/bundles/app/static/frontend/js/project/rangeslider.js', false, delayInit)
  295.             }
  296.         };
  297.         function delayInit() {
  298.             window.setTimeout(init_slider, 200)
  299.         }
  300.         function init_slider() {
  301.             \$('input[type=\"range\"]')
  302.                 .on('input', function (e) {
  303.                     // var parent      = \$(this).parent(),
  304.                     //     snapToValue = Math.round(this.value);
  305.                     //
  306.                     // parent.find('.rangeslider__labels__label').hide().eq(snapToValue).show();
  307.                 })
  308.                 .rangeslider({
  309.                     polyfill: false,
  310.                     onInit: function () {
  311.                     },
  312.                     onSlideEnd: function (position, value) {
  313.                         // console.log('slideend:', value)
  314.                         // var snapToValue = Math.round(value);
  315.                         // if (snapToValue !== value)
  316.                         //     this.\$element.val(snapToValue).change();
  317.                     }
  318.                 }).trigger('input');
  319.             \$('input[type=\"reset\"]').on('click', function () {
  320.                 \$('input[type=\"range\"]').val(0).change();
  321.                 \$('input[type=\"radio\"]').prop('checked', false);
  322.                 selt.adventureManager.getFiltered('reset');
  323.             });
  324.             // \$('input[type=\"radio\"]').on('change', function () {
  325.             //     selt.adventureManager.updateSubmitBtn();
  326.             // });
  327.         }
  328.     }());//EOS
  329. </script>
  330. ";
  331.         
  332.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  333.         
  334.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  335.     }
  336.     public function getTemplateName()
  337.     {
  338.         return "module/Form/forms/bewertungen-shops.html.twig";
  339.     }
  340.     public function isTraitable()
  341.     {
  342.         return false;
  343.     }
  344.     public function getDebugInfo()
  345.     {
  346.         return array (  334 => 195,  325 => 189,  297 => 164,  286 => 155,  282 => 154,  274 => 149,  270 => 148,  266 => 147,  262 => 146,  258 => 145,  230 => 120,  223 => 116,  211 => 107,  201 => 100,  191 => 93,  185 => 89,  179 => 86,  176 => 85,  174 => 84,  168 => 81,  164 => 80,  147 => 66,  143 => 65,  127 => 52,  123 => 51,  108 => 39,  104 => 38,  89 => 26,  85 => 25,  72 => 14,  70 => 13,  67 => 12,  65 => 11,  63 => 10,  61 => 9,  59 => 8,  57 => 7,  55 => 6,  53 => 5,  51 => 4,  49 => 3,  47 => 2,  45 => 1,);
  347.     }
  348.     public function getSourceContext()
  349.     {
  350.         return new Source("{% set debug = app.request.query.get(\"debug\") %}
  351. {% set formName = 'igs-'~ document.getId() %}
  352. {% set formFields = frontend.formular.formFields %}
  353. {% set pauschalenname = (frontend.formular.pauschalenname is defined) ? frontend.formular.pauschalenname : \"\" %}
  354. {% set buttontext = frontend.formular.buttontext %}
  355. {% set pflichtfeldtext = frontend.formular.pflichtfeldtext %}
  356. {% set dsgvotext = frontend.formular.dsgvotext %}
  357. {% set antwort = frontend.formular.antwort %}
  358. {% set websiteConfigName = frontend.formular.websiteConfigName %}
  359. {% set mailTemplate = frontend.formular.mailTemplate %}
  360. {% set url = frontend.formular.url %}
  361. {% set lg = document.getProperty('language') %}
  362. <form  method=\"post\" accept-charset=\"utf-8\" name=\"feedback\" role=\"form\">
  363.     <div id=\"anchorPosition\"></div>
  364.     <!-- FREUNDLICHKEIT Slider -->
  365.     <div class=\"rangeslider-wrp form-spacer\">
  366.         <div class=\"group-label\">
  367.             <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_freundlichkeit\") }}</h5>
  368.             <span class=\"group-question font-light\">{{ pimcore_textarea(\"text_freundlichkeit\", {\"nl2br\": true}) }}</span>
  369.         </div>
  370.         <div class=\"rangeslider-constraint\">
  371.             <input name=\"form_FREUNDLICHKEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  372.         </div>
  373.     </div>
  374.     <!-- ATMOSPHAERE Slider -->
  375.     <div class=\"rangeslider-wrp form-spacer\">
  376.         <div class=\"group-label\">
  377.             <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_atmosphaere\") }}</h5>
  378.             <span class=\"group-question font-light\">{{ pimcore_textarea(\"text_atmosphaere\", {\"nl2br\": true}) }}</span>
  379.         </div>
  380.         <div class=\"rangeslider-constraint\">
  381.             <input name=\"form_ATMOSPHAERE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  382.         </div>
  383.     </div>
  384.     <!-- WARTEZEIT Slider -->
  385.     <div class=\"rangeslider-wrp form-spacer\">
  386.         <div class=\"group-label\">
  387.             <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_wartezeit\") }}</h5>
  388.             <span class=\"group-question font-light\">{{ pimcore_textarea(\"text_wartezeit\", {\"nl2br\": true}) }}</span>
  389.         </div>
  390.         <div class=\"rangeslider-constraint\">
  391.             <input name=\"form_WARTEZEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  392.         </div>
  393.     </div>
  394.     <!-- WARE Slider -->
  395.     <div class=\"rangeslider-wrp form-spacer\">
  396.         <div class=\"group-label\">
  397.             <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_ware\") }}</h5>
  398.             <span class=\"group-question font-light\">{{ pimcore_textarea(\"text_ware\", {\"nl2br\": true}) }}</span>
  399.         </div>
  400.         <div class=\"rangeslider-constraint\">
  401.             <input name=\"form_WARE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
  402.         </div>
  403.     </div>
  404.     <!-- Unterkunft Auswahl -->
  405.     <div class=\"rangeslider-wrp form-spacer\">
  406.         <div class=\"group-label\">
  407.             <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_unterkunft\") }}</h5>
  408.             <span class=\"group-question font-light\">{{ pimcore_textarea(\"text_unterkunft\", {\"nl2br\": true}) }}</span>
  409.         </div>
  410.         {% if formFields.form_UNTERKUNFT is defined %}
  411.         <div class=\"rangeslider-constraint form-item\">
  412.             {{ formFields.form_UNTERKUNFT|replace({'<option value=\"0\"></option>': \"\"}) |raw}}
  413.          </div>
  414.         {% endif %}
  415.     </div>
  416.     <div class=\"form-spacer\">
  417.         <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_persFeedback\") }}</h5>
  418.         <div class=\"form-item\">
  419.             <div class=\"input-textarea\"><textarea name=\"kommentar\"></textarea></div>
  420.         </div>
  421.     </div>
  422.     <div class=\"form-spacer\">
  423.         <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_persDaten\") }}</h5>
  424.         <div class=\"form-item\">
  425.             <div class=\"input-textarea\"><textarea name=\"personendaten\"></textarea></div>
  426.         </div>
  427.     </div>
  428.     <div class=\"form-spacer\">
  429.         <h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_email\") }}</h5>
  430.         <div class=\"form-item\">
  431.             <div class=\"input-input\"><input type=\"text\" name=\"email\"/></div>
  432.         </div>
  433.     </div>
  434.     <!-- SUBMIT -->
  435.     <div class=\"btn-wrp submit-button\">
  436.         <input type=\"submit\" value=\"{{ buttontext }}\">
  437.     </div>
  438.     <div class=\"data-privacy-statement\">
  439.         {{ dsgvotext }}
  440.     </div>
  441.     <div class=\"waiting-for-response\">
  442.         <div class=\"submit-sending\">
  443.             <div class=\"submit-sending--wrp\">
  444.                 <div class=\"submit-sending-box\">
  445.                     <div class=\"border one\"></div>
  446.                     <div class=\"border two\"></div>
  447.                     <div class=\"border three\"></div>
  448.                     <div class=\"border four\"></div>
  449.                     <div class=\"line one\"></div>
  450.                     <div class=\"line two\"></div>
  451.                     <div class=\"line three\"></div>
  452.                 </div>
  453.             </div>
  454.         </div>
  455.     </div>
  456.     <div class=\"hidden\">
  457.         <input type=\"text\" name=\"language\" value=\"{{ document.getProperty('language') }}\"/>
  458.             <input type=\"text\" name=\"websiteconfigname\" value=\"{{ websiteConfigName }}\"/>
  459.             <input type=\"text\" name=\"mailtemplate\" value=\"{{ mailTemplate }}\"/>
  460.             <input type=\"text\" name=\"url\" value=\"{{ url }}\"/>
  461.             <input type=\"text\" name=\"debug\" value=\"{{ debug }}\"/>
  462.     </div>
  463. </form>
  464. {% if debug == '1' %} <div id=\"debug\">Egebnis aus Sendmail!</div> {% endif %}
  465. <script>
  466.     (function () {
  467.         'use strict';
  468.         var moduleName = '{{ formName }}_module'; // naming convention XXX_module
  469.         if (typeof selt === 'undefined') {
  470.             window.selt = {
  471.                 modules: {}
  472.             };
  473.         } else if (!selt.modules) {
  474.             selt.modules = {};
  475.         }
  476.         selt.modules[moduleName] = {
  477.             name: moduleName,
  478.             init: function () {
  479.                 activateForm();
  480.             }
  481.         };
  482.         function activateForm() {
  483.             var scnemForm       = \$(\"form[name='feedback']\"),
  484.                 confirmationURL = '{{ antwort }}';
  485.             scnemForm[0].onsubmit = function () {
  486.                 if (!selt.validateForm(scnemForm)) {
  487.                     selt.ajaxSubmitForm(scnemForm, confirmationURL, {{ debug }});
  488.                 }
  489.                 return false;
  490.             };
  491.         }
  492.     }())
  493. </script>
  494. <script type=\"text/javascript\">
  495.     (function () {
  496.         var moduleName = 'rangeslider_module'; // naming convention XXX_module
  497.         if (typeof selt === 'undefined') {
  498.             selt = {
  499.                 modules: {}
  500.             };
  501.         } else if (!selt.modules) {
  502.             selt.modules = {};
  503.         }
  504.         selt.modules[moduleName] = {
  505.             name: moduleName,
  506.             init: function () {
  507.                 console.log('init', this.name);
  508.                 selt.loadExternalCss('/bundles/app/static/frontend/css/feedback_form.css');
  509.                 selt.loadExternalJavascript('/bundles/app/static/frontend/js/project/rangeslider.js', false, delayInit)
  510.             }
  511.         };
  512.         function delayInit() {
  513.             window.setTimeout(init_slider, 200)
  514.         }
  515.         function init_slider() {
  516.             \$('input[type=\"range\"]')
  517.                 .on('input', function (e) {
  518.                     // var parent      = \$(this).parent(),
  519.                     //     snapToValue = Math.round(this.value);
  520.                     //
  521.                     // parent.find('.rangeslider__labels__label').hide().eq(snapToValue).show();
  522.                 })
  523.                 .rangeslider({
  524.                     polyfill: false,
  525.                     onInit: function () {
  526.                     },
  527.                     onSlideEnd: function (position, value) {
  528.                         // console.log('slideend:', value)
  529.                         // var snapToValue = Math.round(value);
  530.                         // if (snapToValue !== value)
  531.                         //     this.\$element.val(snapToValue).change();
  532.                     }
  533.                 }).trigger('input');
  534.             \$('input[type=\"reset\"]').on('click', function () {
  535.                 \$('input[type=\"range\"]').val(0).change();
  536.                 \$('input[type=\"radio\"]').prop('checked', false);
  537.                 selt.adventureManager.getFiltered('reset');
  538.             });
  539.             // \$('input[type=\"radio\"]').on('change', function () {
  540.             //     selt.adventureManager.updateSubmitBtn();
  541.             // });
  542.         }
  543.     }());//EOS
  544. </script>
  545. ""module/Form/forms/bewertungen-shops.html.twig""/var/www/vhosts/jumpalionenbabaloo.at/httpdocs/templates/module/Form/forms/bewertungen-shops.html.twig");
  546.     }
  547.     
  548.     public function checkSecurity()
  549.     {
  550.         static $tags = array("set" => 1"if" => 84);
  551.         static $filters = array("raw" => 86"replace" => 86"escape" => 116);
  552.         static $functions = array("pimcore_input" => 25"pimcore_textarea" => 26);
  553.         try {
  554.             $this->sandbox->checkSecurity(
  555.                 ['set''if'],
  556.                 ['raw''replace''escape'],
  557.                 ['pimcore_input''pimcore_textarea']
  558.             );
  559.         } catch (SecurityError $e) {
  560.             $e->setSourceContext($this->source);
  561.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  562.                 $e->setTemplateLine($tags[$e->getTagName()]);
  563.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  564.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  565.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  566.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  567.             }
  568.             throw $e;
  569.         }
  570.     }
  571. }