<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* module/Form/forms/bewertungen-shops.html.twig */
class __TwigTemplate_68573ef5e8f5ff4e90171f0cbf5c43e8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "module/Form/forms/bewertungen-shops.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "module/Form/forms/bewertungen-shops.html.twig"));
// line 1
$context["debug"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 1), "query", [], "any", false, false, true, 1), "get", [0 => "debug"], "method", false, false, true, 1);
// line 2
$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", false, false, true, 2), 2, $this->source));
// line 3
$context["formFields"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 3), "formFields", [], "any", false, false, true, 3);
// line 4
$context["pauschalenname"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["frontend"] ?? null), "formular", [], "any", false, true, true, 4), "pauschalenname", [], "any", true, true, true, 4)) ? (twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 4), "pauschalenname", [], "any", false, false, true, 4)) : (""));
// line 5
$context["buttontext"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 5), "buttontext", [], "any", false, false, true, 5);
// line 6
$context["pflichtfeldtext"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 6), "pflichtfeldtext", [], "any", false, false, true, 6);
// line 7
$context["dsgvotext"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 7), "dsgvotext", [], "any", false, false, true, 7);
// line 8
$context["antwort"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 8), "antwort", [], "any", false, false, true, 8);
// line 9
$context["websiteConfigName"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 9), "websiteConfigName", [], "any", false, false, true, 9);
// line 10
$context["mailTemplate"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 10), "mailTemplate", [], "any", false, false, true, 10);
// line 11
$context["url"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 11), "url", [], "any", false, false, true, 11);
// line 12
echo "
";
// line 13
$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", [0 => "language"], "method", false, false, true, 13);
// line 14
echo "
<form method=\"post\" accept-charset=\"utf-8\" name=\"feedback\" role=\"form\">
<div id=\"anchorPosition\"></div>
<!-- FREUNDLICHKEIT Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 25
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_freundlichkeit");
echo "</h5>
<span class=\"group-question font-light\">";
// line 26
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text_freundlichkeit", ["nl2br" => true]);
echo "</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_FREUNDLICHKEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- ATMOSPHAERE Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 38
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_atmosphaere");
echo "</h5>
<span class=\"group-question font-light\">";
// line 39
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text_atmosphaere", ["nl2br" => true]);
echo "</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_ATMOSPHAERE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- WARTEZEIT Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 51
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_wartezeit");
echo "</h5>
<span class=\"group-question font-light\">";
// line 52
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text_wartezeit", ["nl2br" => true]);
echo "</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_WARTEZEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- WARE Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 65
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_ware");
echo "</h5>
<span class=\"group-question font-light\">";
// line 66
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text_ware", ["nl2br" => true]);
echo "</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_WARE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- Unterkunft Auswahl -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 80
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_unterkunft");
echo "</h5>
<span class=\"group-question font-light\">";
// line 81
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text_unterkunft", ["nl2br" => true]);
echo "</span>
</div>
";
// line 84
if (twig_get_attribute($this->env, $this->source, ($context["formFields"] ?? null), "form_UNTERKUNFT", [], "any", true, true, true, 84)) {
// line 85
echo " <div class=\"rangeslider-constraint form-item\">
";
// line 86
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", false, false, true, 86), 86, $this->source), ["<option value=\"0\"></option>" => ""]);
echo "
</div>
";
}
// line 89
echo " </div>
<div class=\"form-spacer\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 93
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_persFeedback");
echo "</h5>
<div class=\"form-item\">
<div class=\"input-textarea\"><textarea name=\"kommentar\"></textarea></div>
</div>
</div>
<div class=\"form-spacer\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 100
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_persDaten");
echo "</h5>
<div class=\"form-item\">
<div class=\"input-textarea\"><textarea name=\"personendaten\"></textarea></div>
</div>
</div>
<div class=\"form-spacer\">
<h5 class=\"theme-color font-bold text-uppercase\">";
// line 107
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "label_email");
echo "</h5>
<div class=\"form-item\">
<div class=\"input-input\"><input type=\"text\" name=\"email\"/></div>
</div>
</div>
<!-- SUBMIT -->
<div class=\"btn-wrp submit-button\">
<input type=\"submit\" value=\"";
// line 116
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", null, true);
echo "\">
</div>
<div class=\"data-privacy-statement\">
";
// line 120
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", null, true);
echo "
</div>
<div class=\"waiting-for-response\">
<div class=\"submit-sending\">
<div class=\"submit-sending--wrp\">
<div class=\"submit-sending-box\">
<div class=\"border one\"></div>
<div class=\"border two\"></div>
<div class=\"border three\"></div>
<div class=\"border four\"></div>
<div class=\"line one\"></div>
<div class=\"line two\"></div>
<div class=\"line three\"></div>
</div>
</div>
</div>
</div>
<div class=\"hidden\">
<input type=\"text\" name=\"language\" value=\"";
// line 145
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", [0 => "language"], "method", false, false, true, 145), 145, $this->source), "html", null, true);
echo "\"/>
<input type=\"text\" name=\"websiteconfigname\" value=\"";
// line 146
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", null, true);
echo "\"/>
<input type=\"text\" name=\"mailtemplate\" value=\"";
// line 147
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", null, true);
echo "\"/>
<input type=\"text\" name=\"url\" value=\"";
// line 148
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", null, true);
echo "\"/>
<input type=\"text\" name=\"debug\" value=\"";
// line 149
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", null, true);
echo "\"/>
</div>
</form>
";
// line 154
if (((isset($context["debug"]) || array_key_exists("debug", $context) ? $context["debug"] : (function () { throw new RuntimeError('Variable "debug" does not exist.', 154, $this->source); })()) == "1")) {
echo " <div id=\"debug\">Egebnis aus Sendmail!</div> ";
}
// line 155
echo "
<script>
(function () {
'use strict';
var moduleName = '";
// line 164
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", null, true);
echo "_module'; // naming convention XXX_module
if (typeof selt === 'undefined') {
window.selt = {
modules: {}
};
} else if (!selt.modules) {
selt.modules = {};
}
selt.modules[moduleName] = {
name: moduleName,
init: function () {
activateForm();
}
};
function activateForm() {
var scnemForm = \$(\"form[name='feedback']\"),
confirmationURL = '";
// line 189
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", null, true);
echo "';
scnemForm[0].onsubmit = function () {
if (!selt.validateForm(scnemForm)) {
selt.ajaxSubmitForm(scnemForm, confirmationURL, ";
// line 195
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", null, true);
echo ");
}
return false;
};
}
}())
</script>
<script type=\"text/javascript\">
(function () {
var moduleName = 'rangeslider_module'; // naming convention XXX_module
if (typeof selt === 'undefined') {
selt = {
modules: {}
};
} else if (!selt.modules) {
selt.modules = {};
}
selt.modules[moduleName] = {
name: moduleName,
init: function () {
console.log('init', this.name);
selt.loadExternalCss('/bundles/app/static/frontend/css/feedback_form.css');
selt.loadExternalJavascript('/bundles/app/static/frontend/js/project/rangeslider.js', false, delayInit)
}
};
function delayInit() {
window.setTimeout(init_slider, 200)
}
function init_slider() {
\$('input[type=\"range\"]')
.on('input', function (e) {
// var parent = \$(this).parent(),
// snapToValue = Math.round(this.value);
//
// parent.find('.rangeslider__labels__label').hide().eq(snapToValue).show();
})
.rangeslider({
polyfill: false,
onInit: function () {
},
onSlideEnd: function (position, value) {
// console.log('slideend:', value)
// var snapToValue = Math.round(value);
// if (snapToValue !== value)
// this.\$element.val(snapToValue).change();
}
}).trigger('input');
\$('input[type=\"reset\"]').on('click', function () {
\$('input[type=\"range\"]').val(0).change();
\$('input[type=\"radio\"]').prop('checked', false);
selt.adventureManager.getFiltered('reset');
});
// \$('input[type=\"radio\"]').on('change', function () {
// selt.adventureManager.updateSubmitBtn();
// });
}
}());//EOS
</script>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "module/Form/forms/bewertungen-shops.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set debug = app.request.query.get(\"debug\") %}
{% set formName = 'igs-'~ document.getId() %}
{% set formFields = frontend.formular.formFields %}
{% set pauschalenname = (frontend.formular.pauschalenname is defined) ? frontend.formular.pauschalenname : \"\" %}
{% set buttontext = frontend.formular.buttontext %}
{% set pflichtfeldtext = frontend.formular.pflichtfeldtext %}
{% set dsgvotext = frontend.formular.dsgvotext %}
{% set antwort = frontend.formular.antwort %}
{% set websiteConfigName = frontend.formular.websiteConfigName %}
{% set mailTemplate = frontend.formular.mailTemplate %}
{% set url = frontend.formular.url %}
{% set lg = document.getProperty('language') %}
<form method=\"post\" accept-charset=\"utf-8\" name=\"feedback\" role=\"form\">
<div id=\"anchorPosition\"></div>
<!-- FREUNDLICHKEIT Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_freundlichkeit\") }}</h5>
<span class=\"group-question font-light\">{{ pimcore_textarea(\"text_freundlichkeit\", {\"nl2br\": true}) }}</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_FREUNDLICHKEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- ATMOSPHAERE Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_atmosphaere\") }}</h5>
<span class=\"group-question font-light\">{{ pimcore_textarea(\"text_atmosphaere\", {\"nl2br\": true}) }}</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_ATMOSPHAERE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- WARTEZEIT Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_wartezeit\") }}</h5>
<span class=\"group-question font-light\">{{ pimcore_textarea(\"text_wartezeit\", {\"nl2br\": true}) }}</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_WARTEZEIT\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- WARE Slider -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_ware\") }}</h5>
<span class=\"group-question font-light\">{{ pimcore_textarea(\"text_ware\", {\"nl2br\": true}) }}</span>
</div>
<div class=\"rangeslider-constraint\">
<input name=\"form_WARE\" type=\"range\" min=\"1\" max=\"5\" step=\"0.01\" value=\"3\" data-orientation=\"horizontal\">
</div>
</div>
<!-- Unterkunft Auswahl -->
<div class=\"rangeslider-wrp form-spacer\">
<div class=\"group-label\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_unterkunft\") }}</h5>
<span class=\"group-question font-light\">{{ pimcore_textarea(\"text_unterkunft\", {\"nl2br\": true}) }}</span>
</div>
{% if formFields.form_UNTERKUNFT is defined %}
<div class=\"rangeslider-constraint form-item\">
{{ formFields.form_UNTERKUNFT|replace({'<option value=\"0\"></option>': \"\"}) |raw}}
</div>
{% endif %}
</div>
<div class=\"form-spacer\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_persFeedback\") }}</h5>
<div class=\"form-item\">
<div class=\"input-textarea\"><textarea name=\"kommentar\"></textarea></div>
</div>
</div>
<div class=\"form-spacer\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_persDaten\") }}</h5>
<div class=\"form-item\">
<div class=\"input-textarea\"><textarea name=\"personendaten\"></textarea></div>
</div>
</div>
<div class=\"form-spacer\">
<h5 class=\"theme-color font-bold text-uppercase\">{{ pimcore_input(\"label_email\") }}</h5>
<div class=\"form-item\">
<div class=\"input-input\"><input type=\"text\" name=\"email\"/></div>
</div>
</div>
<!-- SUBMIT -->
<div class=\"btn-wrp submit-button\">
<input type=\"submit\" value=\"{{ buttontext }}\">
</div>
<div class=\"data-privacy-statement\">
{{ dsgvotext }}
</div>
<div class=\"waiting-for-response\">
<div class=\"submit-sending\">
<div class=\"submit-sending--wrp\">
<div class=\"submit-sending-box\">
<div class=\"border one\"></div>
<div class=\"border two\"></div>
<div class=\"border three\"></div>
<div class=\"border four\"></div>
<div class=\"line one\"></div>
<div class=\"line two\"></div>
<div class=\"line three\"></div>
</div>
</div>
</div>
</div>
<div class=\"hidden\">
<input type=\"text\" name=\"language\" value=\"{{ document.getProperty('language') }}\"/>
<input type=\"text\" name=\"websiteconfigname\" value=\"{{ websiteConfigName }}\"/>
<input type=\"text\" name=\"mailtemplate\" value=\"{{ mailTemplate }}\"/>
<input type=\"text\" name=\"url\" value=\"{{ url }}\"/>
<input type=\"text\" name=\"debug\" value=\"{{ debug }}\"/>
</div>
</form>
{% if debug == '1' %} <div id=\"debug\">Egebnis aus Sendmail!</div> {% endif %}
<script>
(function () {
'use strict';
var moduleName = '{{ formName }}_module'; // naming convention XXX_module
if (typeof selt === 'undefined') {
window.selt = {
modules: {}
};
} else if (!selt.modules) {
selt.modules = {};
}
selt.modules[moduleName] = {
name: moduleName,
init: function () {
activateForm();
}
};
function activateForm() {
var scnemForm = \$(\"form[name='feedback']\"),
confirmationURL = '{{ antwort }}';
scnemForm[0].onsubmit = function () {
if (!selt.validateForm(scnemForm)) {
selt.ajaxSubmitForm(scnemForm, confirmationURL, {{ debug }});
}
return false;
};
}
}())
</script>
<script type=\"text/javascript\">
(function () {
var moduleName = 'rangeslider_module'; // naming convention XXX_module
if (typeof selt === 'undefined') {
selt = {
modules: {}
};
} else if (!selt.modules) {
selt.modules = {};
}
selt.modules[moduleName] = {
name: moduleName,
init: function () {
console.log('init', this.name);
selt.loadExternalCss('/bundles/app/static/frontend/css/feedback_form.css');
selt.loadExternalJavascript('/bundles/app/static/frontend/js/project/rangeslider.js', false, delayInit)
}
};
function delayInit() {
window.setTimeout(init_slider, 200)
}
function init_slider() {
\$('input[type=\"range\"]')
.on('input', function (e) {
// var parent = \$(this).parent(),
// snapToValue = Math.round(this.value);
//
// parent.find('.rangeslider__labels__label').hide().eq(snapToValue).show();
})
.rangeslider({
polyfill: false,
onInit: function () {
},
onSlideEnd: function (position, value) {
// console.log('slideend:', value)
// var snapToValue = Math.round(value);
// if (snapToValue !== value)
// this.\$element.val(snapToValue).change();
}
}).trigger('input');
\$('input[type=\"reset\"]').on('click', function () {
\$('input[type=\"range\"]').val(0).change();
\$('input[type=\"radio\"]').prop('checked', false);
selt.adventureManager.getFiltered('reset');
});
// \$('input[type=\"radio\"]').on('change', function () {
// selt.adventureManager.updateSubmitBtn();
// });
}
}());//EOS
</script>
", "module/Form/forms/bewertungen-shops.html.twig", "/var/www/vhosts/jumpalionenbabaloo.at/httpdocs/templates/module/Form/forms/bewertungen-shops.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 84);
static $filters = array("raw" => 86, "replace" => 86, "escape" => 116);
static $functions = array("pimcore_input" => 25, "pimcore_textarea" => 26);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['raw', 'replace', 'escape'],
['pimcore_input', 'pimcore_textarea']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}