var/cache/dev/twig/33/33f8270b83332d1f49d63bd702736834.php line 62

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. /* contact/cadeaubon.html.twig */
  14. class __TwigTemplate_023e437893caae99fabd7f5c63fbc68a 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "contact/cadeaubon.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""contact/cadeaubon.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""contact/cadeaubon.html.twig"));
  40.         // line 3
  41.         if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })()) && array_key_exists("recaptcha"$context))) {
  42.             // line 4
  43.             if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'4$this->source); })()) == 2)) {
  44.                 // line 5
  45.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "https://www.google.com/recaptcha/api.js"], "method"falsefalsetrue5);
  46.             } elseif ((            // line 6
  47. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'6$this->source); })()) == 3)) {
  48.                 // line 7
  49.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> ("https://www.google.com/recaptcha/api.js?render=" . (isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic"$context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.'7$this->source); })()))], "method"falsefalsetrue7);
  50.             }
  51.         }
  52.         // line 1
  53.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     // line 11
  60.     public function block_content($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         // line 12
  68.         echo "    <div class=\"container mb-5\">
  69.          ";
  70.         // line 14
  71.         echo twig_include($this->env$context"includes/title.html.twig");
  72.         echo "
  73.         ";
  74.         // line 17
  75.         echo "        ";
  76.         $context['_parent'] = $context;
  77.         $context['_seq'] = twig_ensure_traversable(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.'17$this->source); })()), "flashes", [=> [=> "success"=> "warning"]], "method"falsefalsetrue17));
  78.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  79.             // line 18
  80.             echo "            ";
  81.             $context['_parent'] = $context;
  82.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  83.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  84.                 // line 19
  85.                 echo "                <div id=\"messages\" class=\"flash-";
  86.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["label"], 19$this->source), "html"nulltrue);
  87.                 echo "\">
  88.                     ";
  89.                 // line 20
  90.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["message"], 20$this->source), "html"nulltrue);
  91.                 echo "
  92.                 </div>
  93.             ";
  94.             }
  95.             $_parent $context['_parent'];
  96.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  97.             $context array_intersect_key($context$_parent) + $_parent;
  98.             // line 23
  99.             echo "        ";
  100.         }
  101.         $_parent $context['_parent'];
  102.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  103.         $context array_intersect_key($context$_parent) + $_parent;
  104.         // line 24
  105.         echo "
  106.         <section id=\"contactcontainer\">
  107.             ";
  108.         // line 26
  109.         if ( !(isset($context["success"]) || array_key_exists("success"$context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.'26$this->source); })())) {
  110.             // line 27
  111.             echo "
  112.                 ";
  113.             // line 28
  114.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'28$this->source); })()), 28$this->source), 'form_start');
  115.             echo "
  116.                 <div class=\"row mb-lg-3\">
  117.                     <div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
  118.                         ";
  119.             // line 33
  120.             echo "                        ";
  121.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'33$this->source); })())) {
  122.                 // line 34
  123.                 echo "                            ";
  124.                 $context["voornaam"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'34$this->source); })()), "getVoornaam", [], "method"falsefalsetrue34);
  125.                 // line 35
  126.                 echo "                        ";
  127.             } else {
  128.                 // line 36
  129.                 echo "                            ";
  130.                 $context["voornaam"] = "";
  131.                 // line 37
  132.                 echo "                        ";
  133.             }
  134.             // line 38
  135.             echo "                        <div class=\"form-floating\">
  136.                         ";
  137.             // line 40
  138.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "firstname", [], "any"falsefalsetrue40), 40$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "firstname", [], "any"falsefalsetrue40), "vars", [], "any"falsefalsetrue40), "label", [], "any"falsefalsetrue40)], "value" => (isset($context["voornaam"]) || array_key_exists("voornaam"$context) ? $context["voornaam"] : (function () { throw new RuntimeError('Variable "voornaam" does not exist.'40$this->source); })())]);
  139.             echo "
  140.                             <span></span>
  141.                         ";
  142.             // line 42
  143.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'42$this->source); })()), "firstname", [], "any"falsefalsetrue42), 42$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  144.             echo "</div>
  145.                         <div id=\"firstnameHelp\" class=\"form-text\">";
  146.             // line 44
  147.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'44$this->source); })()), "firstname", [], "any"falsefalsetrue44), 44$this->source), 'help');
  148.             echo "</div>
  149.                         <div class=\"form-error\">
  150.                             ";
  151.             // line 47
  152.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'47$this->source); })()), "firstname", [], "any"falsefalsetrue47), 47$this->source), 'errors');
  153.             echo "
  154.                         </div>
  155.                     </div>
  156.                     <div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
  157.                         ";
  158.             // line 51
  159.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'51$this->source); })())) {
  160.                 // line 52
  161.                 echo "                            ";
  162.                 $context["naam"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'52$this->source); })()), "getNaam", [], "method"falsefalsetrue52);
  163.                 // line 53
  164.                 echo "                        ";
  165.             } else {
  166.                 // line 54
  167.                 echo "                            ";
  168.                 $context["naam"] = "";
  169.                 // line 55
  170.                 echo "                        ";
  171.             }
  172.             // line 56
  173.             echo "                        ";
  174.             // line 57
  175.             echo "                        <div class=\"form-floating\">
  176.                             ";
  177.             // line 59
  178.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'59$this->source); })()), "lastname", [], "any"falsefalsetrue59), 59$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'59$this->source); })()), "lastname", [], "any"falsefalsetrue59), "vars", [], "any"falsefalsetrue59), "label", [], "any"falsefalsetrue59)], "value" => (isset($context["naam"]) || array_key_exists("naam"$context) ? $context["naam"] : (function () { throw new RuntimeError('Variable "naam" does not exist.'59$this->source); })())]);
  179.             echo "
  180.                             ";
  181.             // line 60
  182.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'60$this->source); })()), "lastname", [], "any"falsefalsetrue60), 60$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  183.             echo "</div>
  184.                         <div id=\"lastnameHelp\" class=\"form-text\">";
  185.             // line 62
  186.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'62$this->source); })()), "lastname", [], "any"falsefalsetrue62), 62$this->source), 'help');
  187.             echo "</div>
  188.                         <div class=\"form-error\">
  189.                             ";
  190.             // line 65
  191.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'65$this->source); })()), "lastname", [], "any"falsefalsetrue65), 65$this->source), 'errors');
  192.             echo "
  193.                         </div>
  194.                     </div>
  195.                 </div>
  196.                 <div class=\"row mb-3\">
  197.                     <div class=\"col-8 col-lg-6\">
  198.                         ";
  199.             // line 72
  200.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'72$this->source); })())) {
  201.                 // line 73
  202.                 echo "                            ";
  203.                 $context["street"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'73$this->source); })()), "getAdres_straat", [], "method"falsefalsetrue73);
  204.                 // line 74
  205.                 echo "                        ";
  206.             } else {
  207.                 // line 75
  208.                 echo "                            ";
  209.                 $context["street"] = "";
  210.                 // line 76
  211.                 echo "                        ";
  212.             }
  213.             // line 77
  214.             echo "                        <div class=\"form-floating\">
  215.                             ";
  216.             // line 79
  217.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'79$this->source); })()), "street", [], "any"falsefalsetrue79), 79$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'79$this->source); })()), "street", [], "any"falsefalsetrue79), "vars", [], "any"falsefalsetrue79), "label", [], "any"falsefalsetrue79), "value" => (isset($context["street"]) || array_key_exists("street"$context) ? $context["street"] : (function () { throw new RuntimeError('Variable "street" does not exist.'79$this->source); })())]]);
  218.             echo "
  219.                             ";
  220.             // line 80
  221.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'80$this->source); })()), "street", [], "any"falsefalsetrue80), 80$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  222.             echo "</div>
  223.                         <div id=\"streetHelp\" class=\"form-text\">";
  224.             // line 82
  225.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'82$this->source); })()), "street", [], "any"falsefalsetrue82), 82$this->source), 'help');
  226.             echo "</div>
  227.                         <div class=\"form-error\">
  228.                             ";
  229.             // line 85
  230.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'85$this->source); })()), "street", [], "any"falsefalsetrue85), 85$this->source), 'errors');
  231.             echo "
  232.                         </div>
  233.                     </div>
  234.                     <div class=\"col-4 col-lg-6\">
  235.                         ";
  236.             // line 89
  237.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'89$this->source); })())) {
  238.                 // line 90
  239.                 echo "                            ";
  240.                 $context["streetnr"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'90$this->source); })()), "getAdres_nr", [], "method"falsefalsetrue90);
  241.                 // line 91
  242.                 echo "                        ";
  243.             } else {
  244.                 // line 92
  245.                 echo "                            ";
  246.                 $context["streetnr"] = "";
  247.                 // line 93
  248.                 echo "                        ";
  249.             }
  250.             // line 94
  251.             echo "                        <div class=\"form-floating\">
  252.                             ";
  253.             // line 96
  254.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'96$this->source); })()), "streetnr", [], "any"falsefalsetrue96), 96$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'96$this->source); })()), "streetnr", [], "any"falsefalsetrue96), "vars", [], "any"falsefalsetrue96), "label", [], "any"falsefalsetrue96), "value" => (isset($context["streetnr"]) || array_key_exists("streetnr"$context) ? $context["streetnr"] : (function () { throw new RuntimeError('Variable "streetnr" does not exist.'96$this->source); })())]]);
  255.             echo "
  256.                             ";
  257.             // line 97
  258.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'97$this->source); })()), "streetnr", [], "any"falsefalsetrue97), 97$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  259.             echo "</div>
  260.                         <div id=\"streetnrHelp\" class=\"form-text\">";
  261.             // line 99
  262.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'99$this->source); })()), "streetnr", [], "any"falsefalsetrue99), 99$this->source), 'help');
  263.             echo "</div>
  264.                         <div class=\"form-error\">
  265.                             ";
  266.             // line 102
  267.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'102$this->source); })()), "streetnr", [], "any"falsefalsetrue102), 102$this->source), 'errors');
  268.             echo "
  269.                         </div>
  270.                     </div>
  271.                 </div>
  272.                 <div class=\"row mb-3\">
  273.                     <div class=\"col-6\">
  274.                         ";
  275.             // line 109
  276.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'109$this->source); })())) {
  277.                 // line 110
  278.                 echo "                            ";
  279.                 $context["postcode"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'110$this->source); })()), "getAdres_postcode", [], "method"falsefalsetrue110);
  280.                 // line 111
  281.                 echo "                        ";
  282.             } else {
  283.                 // line 112
  284.                 echo "                            ";
  285.                 $context["postcode"] = "";
  286.                 // line 113
  287.                 echo "                        ";
  288.             }
  289.             // line 114
  290.             echo "                        <div class=\"form-floating\">
  291.                             ";
  292.             // line 116
  293.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'116$this->source); })()), "postcode", [], "any"falsefalsetrue116), 116$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'116$this->source); })()), "postcode", [], "any"falsefalsetrue116), "vars", [], "any"falsefalsetrue116), "label", [], "any"falsefalsetrue116), "value" => (isset($context["postcode"]) || array_key_exists("postcode"$context) ? $context["postcode"] : (function () { throw new RuntimeError('Variable "postcode" does not exist.'116$this->source); })())]]);
  294.             echo "
  295.                             ";
  296.             // line 117
  297.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'117$this->source); })()), "postcode", [], "any"falsefalsetrue117), 117$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  298.             echo "</div>
  299.                         <div id=\"postcodeHelp\" class=\"form-text\">";
  300.             // line 119
  301.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'119$this->source); })()), "postcode", [], "any"falsefalsetrue119), 119$this->source), 'help');
  302.             echo "</div>
  303.                         <div class=\"form-error\">
  304.                             ";
  305.             // line 122
  306.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'122$this->source); })()), "postcode", [], "any"falsefalsetrue122), 122$this->source), 'errors');
  307.             echo "
  308.                         </div>
  309.                     </div>
  310.                     <div class=\"col-6\">
  311.                         ";
  312.             // line 126
  313.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'126$this->source); })())) {
  314.                 // line 127
  315.                 echo "                            ";
  316.                 $context["city"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'127$this->source); })()), "getAdres_stad", [], "method"falsefalsetrue127);
  317.                 // line 128
  318.                 echo "                        ";
  319.             } else {
  320.                 // line 129
  321.                 echo "                            ";
  322.                 $context["city"] = "";
  323.                 // line 130
  324.                 echo "                        ";
  325.             }
  326.             // line 131
  327.             echo "                        <div class=\"form-floating\">
  328.                             ";
  329.             // line 133
  330.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'133$this->source); })()), "city", [], "any"falsefalsetrue133), 133$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'133$this->source); })()), "city", [], "any"falsefalsetrue133), "vars", [], "any"falsefalsetrue133), "label", [], "any"falsefalsetrue133), "value" => (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'133$this->source); })())]]);
  331.             echo "
  332.                             ";
  333.             // line 134
  334.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'134$this->source); })()), "city", [], "any"falsefalsetrue134), 134$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  335.             echo "</div>
  336.                         <div id=\"cityeHelp\" class=\"form-text\">";
  337.             // line 136
  338.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'136$this->source); })()), "city", [], "any"falsefalsetrue136), 136$this->source), 'help');
  339.             echo "</div>
  340.                         <div class=\"form-error\">
  341.                             ";
  342.             // line 139
  343.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'139$this->source); })()), "city", [], "any"falsefalsetrue139), 139$this->source), 'errors');
  344.             echo "
  345.                         </div>
  346.                     </div>
  347.                 </div>
  348.                 <div class=\"row\">
  349.                     <div class=\"col-12 mb-3\">
  350.                         ";
  351.             // line 146
  352.             if ((isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'146$this->source); })())) {
  353.                 // line 147
  354.                 echo "                            ";
  355.                 $context["email"] = twig_get_attribute($this->env$this->source, (isset($context["userObject"]) || array_key_exists("userObject"$context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.'147$this->source); })()), "getEmail", [], "method"falsefalsetrue147);
  356.                 // line 148
  357.                 echo "                        ";
  358.             } else {
  359.                 // line 149
  360.                 echo "                            ";
  361.                 $context["email"] = "";
  362.                 // line 150
  363.                 echo "                        ";
  364.             }
  365.             // line 151
  366.             echo "                        <div class=\"form-floating\">
  367.                             ";
  368.             // line 153
  369.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'153$this->source); })()), "email", [], "any"falsefalsetrue153), 153$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'153$this->source); })()), "email", [], "any"falsefalsetrue153), "vars", [], "any"falsefalsetrue153), "label", [], "any"falsefalsetrue153), "value" => (isset($context["email"]) || array_key_exists("email"$context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.'153$this->source); })())]]);
  370.             echo "
  371.                             ";
  372.             // line 154
  373.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'154$this->source); })()), "email", [], "any"falsefalsetrue154), 154$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  374.             echo "</div>
  375.                         <div id=\"emailHelp\" class=\"form-text\">";
  376.             // line 156
  377.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'156$this->source); })()), "email", [], "any"falsefalsetrue156), 156$this->source), 'help');
  378.             echo "</div>
  379.                         <div class=\"form-error\">
  380.                             ";
  381.             // line 159
  382.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'159$this->source); })()), "email", [], "any"falsefalsetrue159), 159$this->source), 'errors');
  383.             echo "
  384.                         </div>
  385.                     </div>
  386.                     <div class=\"col-12 mb-3\">
  387.                         <div class=\"form-floating\">
  388.                             ";
  389.             // line 166
  390.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'166$this->source); })()), "amount", [], "any"falsefalsetrue166), 166$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'166$this->source); })()), "amount", [], "any"falsefalsetrue166), "vars", [], "any"falsefalsetrue166), "label", [], "any"falsefalsetrue166), "value" => ""]]);
  391.             echo "
  392.                             ";
  393.             // line 167
  394.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'167$this->source); })()), "amount", [], "any"falsefalsetrue167), 167$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  395.             echo "</div>
  396.                         <div id=\"emailHelp\" class=\"form-text\">";
  397.             // line 169
  398.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'169$this->source); })()), "amount", [], "any"falsefalsetrue169), 169$this->source), 'help');
  399.             echo "</div>
  400.                         <div class=\"form-error\">
  401.                             ";
  402.             // line 172
  403.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'172$this->source); })()), "amount", [], "any"falsefalsetrue172), 172$this->source), 'errors');
  404.             echo "
  405.                         </div>
  406.                     </div>
  407.                 </div>
  408.                 ";
  409.             // line 177
  410.             if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'177$this->source); })()) && array_key_exists("recaptcha"$context))) {
  411.                 // line 178
  412.                 echo "                    ";
  413.                 if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'178$this->source); })()) == 2)) {
  414.                     // line 179
  415.                     echo "                        <div class=\"form-group\">
  416.                             <div class=\"g-recaptcha\" data-sitekey=\"";
  417.                     // line 180
  418.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic"$context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.'180$this->source); })()), 180$this->source), "html"nulltrue);
  419.                     echo "\"></div>
  420.                         </div>
  421.                     ";
  422.                 } elseif ((                // line 182
  423. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'182$this->source); })()) == 3)) {
  424.                     // line 183
  425.                     echo "                        <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  426.                     ";
  427.                 }
  428.                 // line 185
  429.                 echo "                ";
  430.             }
  431.             // line 186
  432.             echo "
  433.                 ";
  434.             // line 188
  435.             echo "                <div class=\"col-12 form-check mb-3\">
  436.                     ";
  437.             // line 189
  438.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'189$this->source); })()), "conditions", [], "any"falsefalsetrue189), 189$this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
  439.             echo "
  440.                     ";
  441.             // line 190
  442.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'190$this->source); })()), "conditions", [], "any"falsefalsetrue190), 190$this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
  443.             echo "
  444.                     <a href=\"";
  445.             // line 192
  446.             if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("privacy_document""document")) {
  447.                 echo twig_escape_filter($this->env$this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument"$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("privacy_document")), "html"nulltrue);
  448.             }
  449.             echo "\"
  450.                        target=\"_blank\">
  451.                         ";
  452.             // line 194
  453.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ik ga akkoord met privacy"), "html"nulltrue);
  454.             echo "
  455.                     </a>
  456.                     <div id=\"conditionsHelp\" class=\"form-text\">";
  457.             // line 197
  458.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'197$this->source); })()), "conditions", [], "any"falsefalsetrue197), 197$this->source), 'help');
  459.             echo "</div>
  460.                     <div class=\"form-error\">
  461.                         ";
  462.             // line 200
  463.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'200$this->source); })()), "conditions", [], "any"falsefalsetrue200), 200$this->source), 'errors');
  464.             echo "
  465.                     </div>
  466.                 </div>
  467.                 <div class=\"col-12 text-center\">
  468.                 ";
  469.             // line 205
  470.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'205$this->source); })()), "submit", [], "any"falsefalsetrue205), 205$this->source), 'row', ["attr" => ["class" => "btn btn-primary btn-lg"]]);
  471.             echo "
  472.                 </div>
  473.                 ";
  474.             // line 208
  475.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'208$this->source); })()), 208$this->source), 'form_end');
  476.             echo "
  477.             ";
  478.         }
  479.         // line 211
  480.         echo "        </section>
  481.     </div>
  482.     ";
  483.         // line 214
  484.         if ((( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'214$this->source); })()) && ((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'214$this->source); })()) == 3)) && (twig_test_empty(twig_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.'214$this->source); })()), "flashes", [=> [=> "success"]], "method"falsefalsetrue214), "success", [], "any"falsefalsetrue214)) || twig_test_empty(twig_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.'214$this->source); })()), "flashes", [=> [=> "warning"]], "method"falsefalsetrue214), "warning", [], "any"falsefalsetrue214))))) {
  485.             // line 215
  486.             echo "        <script>
  487.             function getReCaptcha() {
  488.                 grecaptcha.ready(function () {
  489.                     grecaptcha.execute('";
  490.             // line 218
  491.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic"$context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.'218$this->source); })()), 218$this->source), "html"nulltrue);
  492.             echo "', {action: 'contact'}).then(function (token) {
  493.                         var recaptchaResponse = document.getElementById('gtoken');
  494.                         recaptchaResponse.value = token;
  495.                     });
  496.                 });
  497.             }
  498.             getReCaptcha();  // This is the initial call
  499.             setInterval(function () {
  500.                 getReCaptcha();
  501.             }, 60000);
  502.         </script>
  503.     ";
  504.         }
  505.         // line 231
  506.         echo "
  507. ";
  508.         
  509.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  510.         
  511.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  512.     }
  513.     public function getTemplateName()
  514.     {
  515.         return "contact/cadeaubon.html.twig";
  516.     }
  517.     public function isTraitable()
  518.     {
  519.         return false;
  520.     }
  521.     public function getDebugInfo()
  522.     {
  523.         return array (  560 => 231,  544 => 218,  539 => 215,  537 => 214,  532 => 211,  526 => 208,  520 => 205,  512 => 200,  506 => 197,  500 => 194,  493 => 192,  488 => 190,  484 => 189,  481 => 188,  478 => 186,  475 => 185,  471 => 183,  469 => 182,  464 => 180,  461 => 179,  458 => 178,  456 => 177,  448 => 172,  442 => 169,  437 => 167,  433 => 166,  423 => 159,  417 => 156,  412 => 154,  408 => 153,  404 => 151,  401 => 150,  398 => 149,  395 => 148,  392 => 147,  390 => 146,  380 => 139,  374 => 136,  369 => 134,  365 => 133,  361 => 131,  358 => 130,  355 => 129,  352 => 128,  349 => 127,  347 => 126,  340 => 122,  334 => 119,  329 => 117,  325 => 116,  321 => 114,  318 => 113,  315 => 112,  312 => 111,  309 => 110,  307 => 109,  297 => 102,  291 => 99,  286 => 97,  282 => 96,  278 => 94,  275 => 93,  272 => 92,  269 => 91,  266 => 90,  264 => 89,  257 => 85,  251 => 82,  246 => 80,  242 => 79,  238 => 77,  235 => 76,  232 => 75,  229 => 74,  226 => 73,  224 => 72,  214 => 65,  208 => 62,  203 => 60,  199 => 59,  195 => 57,  193 => 56,  190 => 55,  187 => 54,  184 => 53,  181 => 52,  179 => 51,  172 => 47,  166 => 44,  161 => 42,  156 => 40,  152 => 38,  149 => 37,  146 => 36,  143 => 35,  140 => 34,  137 => 33,  130 => 28,  127 => 27,  125 => 26,  121 => 24,  115 => 23,  106 => 20,  101 => 19,  96 => 18,  91 => 17,  86 => 14,  82 => 12,  72 => 11,  62 => 1,  58 => 7,  56 => 6,  54 => 5,  52 => 4,  50 => 3,  37 => 1,);
  524.     }
  525.     public function getSourceContext()
  526.     {
  527.         return new Source("{% extends base_layout() %}
  528. {% if not editmode and recaptcha is defined %}
  529.     {% if recaptcha == 2 %}
  530.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
  531.     {% elseif recaptcha == 3 %}
  532.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
  533.     {% endif %}
  534. {% endif %}
  535. {% block content %}
  536.     <div class=\"container mb-5\">
  537.          {{ include('includes/title.html.twig') }}
  538.         {# read and display several types of flash messages #}
  539.         {% for label, messages in app.flashes(['success', 'warning']) %}
  540.             {% for message in messages %}
  541.                 <div id=\"messages\" class=\"flash-{{ label }}\">
  542.                     {{ message }}
  543.                 </div>
  544.             {% endfor %}
  545.         {% endfor %}
  546.         <section id=\"contactcontainer\">
  547.             {% if not success %}
  548.                 {{ form_start(form) }}
  549.                 <div class=\"row mb-lg-3\">
  550.                     <div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
  551.                         {# {{ form_row(form.firstname) }}#}
  552.                         {% if userObject %}
  553.                             {% set voornaam = userObject.getVoornaam() %}
  554.                         {% else %}
  555.                             {% set voornaam = '' %}
  556.                         {% endif %}
  557.                         <div class=\"form-floating\">
  558.                         {{ form_widget(form.firstname, {'attr': {'class': 'form-control', 'placeholder': form.firstname.vars.label}, 'value': voornaam }) }}
  559.                             <span></span>
  560.                         {{ form_label(form.firstname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  561.                         <div id=\"firstnameHelp\" class=\"form-text\">{{ form_help(form.firstname) }}</div>
  562.                         <div class=\"form-error\">
  563.                             {{ form_errors(form.firstname) }}
  564.                         </div>
  565.                     </div>
  566.                     <div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
  567.                         {% if userObject %}
  568.                             {% set naam = userObject.getNaam() %}
  569.                         {% else %}
  570.                             {% set naam = '' %}
  571.                         {% endif %}
  572.                         {# {{ form_row(form.lastname) }}#}
  573.                         <div class=\"form-floating\">
  574.                             {{ form_widget(form.lastname, {'attr': {'class': 'form-control', 'placeholder': form.lastname.vars.label }, 'value': naam}) }}
  575.                             {{ form_label(form.lastname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  576.                         <div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.lastname) }}</div>
  577.                         <div class=\"form-error\">
  578.                             {{ form_errors(form.lastname) }}
  579.                         </div>
  580.                     </div>
  581.                 </div>
  582.                 <div class=\"row mb-3\">
  583.                     <div class=\"col-8 col-lg-6\">
  584.                         {% if userObject %}
  585.                             {% set street = userObject.getAdres_straat() %}
  586.                         {% else %}
  587.                             {% set street = '' %}
  588.                         {% endif %}
  589.                         <div class=\"form-floating\">
  590.                             {{ form_widget(form.street, {'attr': {'class': 'form-control', 'placeholder': form.street.vars.label, 'value': street}}) }}
  591.                             {{ form_label(form.street, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  592.                         <div id=\"streetHelp\" class=\"form-text\">{{ form_help(form.street) }}</div>
  593.                         <div class=\"form-error\">
  594.                             {{ form_errors(form.street) }}
  595.                         </div>
  596.                     </div>
  597.                     <div class=\"col-4 col-lg-6\">
  598.                         {% if userObject %}
  599.                             {% set streetnr = userObject.getAdres_nr() %}
  600.                         {% else %}
  601.                             {% set streetnr = '' %}
  602.                         {% endif %}
  603.                         <div class=\"form-floating\">
  604.                             {{ form_widget(form.streetnr, {'attr': {'class': 'form-control', 'placeholder': form.streetnr.vars.label, 'value': streetnr}}) }}
  605.                             {{ form_label(form.streetnr, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  606.                         <div id=\"streetnrHelp\" class=\"form-text\">{{ form_help(form.streetnr) }}</div>
  607.                         <div class=\"form-error\">
  608.                             {{ form_errors(form.streetnr) }}
  609.                         </div>
  610.                     </div>
  611.                 </div>
  612.                 <div class=\"row mb-3\">
  613.                     <div class=\"col-6\">
  614.                         {% if userObject %}
  615.                             {% set postcode = userObject.getAdres_postcode() %}
  616.                         {% else %}
  617.                             {% set postcode = '' %}
  618.                         {% endif %}
  619.                         <div class=\"form-floating\">
  620.                             {{ form_widget(form.postcode, {'attr': {'class': 'form-control', 'placeholder': form.postcode.vars.label, 'value': postcode}}) }}
  621.                             {{ form_label(form.postcode, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  622.                         <div id=\"postcodeHelp\" class=\"form-text\">{{ form_help(form.postcode) }}</div>
  623.                         <div class=\"form-error\">
  624.                             {{ form_errors(form.postcode) }}
  625.                         </div>
  626.                     </div>
  627.                     <div class=\"col-6\">
  628.                         {% if userObject %}
  629.                             {% set city = userObject.getAdres_stad() %}
  630.                         {% else %}
  631.                             {% set city = '' %}
  632.                         {% endif %}
  633.                         <div class=\"form-floating\">
  634.                             {{ form_widget(form.city, {'attr': {'class': 'form-control', 'placeholder': form.city.vars.label, 'value': city}}) }}
  635.                             {{ form_label(form.city, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  636.                         <div id=\"cityeHelp\" class=\"form-text\">{{ form_help(form.city) }}</div>
  637.                         <div class=\"form-error\">
  638.                             {{ form_errors(form.city) }}
  639.                         </div>
  640.                     </div>
  641.                 </div>
  642.                 <div class=\"row\">
  643.                     <div class=\"col-12 mb-3\">
  644.                         {% if userObject %}
  645.                             {% set email = userObject.getEmail() %}
  646.                         {% else %}
  647.                             {% set email = '' %}
  648.                         {% endif %}
  649.                         <div class=\"form-floating\">
  650.                             {{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label, 'value': email}}) }}
  651.                             {{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  652.                         <div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
  653.                         <div class=\"form-error\">
  654.                             {{ form_errors(form.email) }}
  655.                         </div>
  656.                     </div>
  657.                     <div class=\"col-12 mb-3\">
  658.                         <div class=\"form-floating\">
  659.                             {{ form_widget(form.amount, {'attr': {'class': 'form-control', 'placeholder': form.amount.vars.label, 'value': ''}}) }}
  660.                             {{ form_label(form.amount, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  661.                         <div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.amount) }}</div>
  662.                         <div class=\"form-error\">
  663.                             {{ form_errors(form.amount) }}
  664.                         </div>
  665.                     </div>
  666.                 </div>
  667.                 {% if not editmode and recaptcha is defined %}
  668.                     {% if recaptcha == 2 %}
  669.                         <div class=\"form-group\">
  670.                             <div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
  671.                         </div>
  672.                     {% elseif recaptcha == 3 %}
  673.                         <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  674.                     {% endif %}
  675.                 {% endif %}
  676.                 {#                {{ form_row(form.conditions) }}#}
  677.                 <div class=\"col-12 form-check mb-3\">
  678.                     {{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
  679.                     {{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}
  680.                     <a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\"
  681.                        target=\"_blank\">
  682.                         {{ 'Ik ga akkoord met privacy'|trans }}
  683.                     </a>
  684.                     <div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
  685.                     <div class=\"form-error\">
  686.                         {{ form_errors(form.conditions) }}
  687.                     </div>
  688.                 </div>
  689.                 <div class=\"col-12 text-center\">
  690.                 {{ form_row(form.submit, {'attr': {'class': 'btn btn-primary btn-lg'}}) }}
  691.                 </div>
  692.                 {{ form_end(form) }}
  693.             {% endif %}
  694.         </section>
  695.     </div>
  696.     {% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
  697.         <script>
  698.             function getReCaptcha() {
  699.                 grecaptcha.ready(function () {
  700.                     grecaptcha.execute('{{ recaptchaPublic }}', {action: 'contact'}).then(function (token) {
  701.                         var recaptchaResponse = document.getElementById('gtoken');
  702.                         recaptchaResponse.value = token;
  703.                     });
  704.                 });
  705.             }
  706.             getReCaptcha();  // This is the initial call
  707.             setInterval(function () {
  708.                 getReCaptcha();
  709.             }, 60000);
  710.         </script>
  711.     {% endif %}
  712. {% endblock %}
  713. {# read and display just one flash message type #}
  714. {#{% for message in app.flashes('notice') %}#}
  715. {#    <div class=\"flash-notice\">#}
  716. {#        {{ message }}#}
  717. {#    </div>#}
  718. {#{% endfor %}#}
  719. {# read and display all flash messages #}
  720. {#{% for label, messages in app.flashes %}#}
  721. {#    {% for message in messages %}#}
  722. {#        <div class=\"flash-{{ label }}\">#}
  723. {#            {{ message }}#}
  724. {#        </div>#}
  725. {#    {% endfor %}#}
  726. {#{% endfor %}#}""contact/cadeaubon.html.twig""/var/www/clients/client2/web42/web/pc/templates/contact/cadeaubon.html.twig");
  727.     }
  728.     
  729.     public function checkSecurity()
  730.     {
  731.         static $tags = array("if" => 3"do" => 5"for" => 17"set" => 34);
  732.         static $filters = array("escape" => 19"trans" => 194);
  733.         static $functions = array("pimcore_head_script" => 5"include" => 14"form_start" => 28"form_widget" => 40"form_label" => 42"form_help" => 44"form_errors" => 47"check_websitesetting" => 192"inotherlang" => 192"pimcore_website_config" => 192"form_row" => 205"form_end" => 208"base_layout" => 1);
  734.         try {
  735.             $this->sandbox->checkSecurity(
  736.                 ['if''do''for''set'],
  737.                 ['escape''trans'],
  738.                 ['pimcore_head_script''include''form_start''form_widget''form_label''form_help''form_errors''check_websitesetting''inotherlang''pimcore_website_config''form_row''form_end''base_layout']
  739.             );
  740.         } catch (SecurityError $e) {
  741.             $e->setSourceContext($this->source);
  742.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  743.                 $e->setTemplateLine($tags[$e->getTagName()]);
  744.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  745.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  746.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  747.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  748.             }
  749.             throw $e;
  750.         }
  751.     }
  752. }