<?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;
/* contact/cadeaubon.html.twig */
class __TwigTemplate_023e437893caae99fabd7f5c63fbc68a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "contact/cadeaubon.html.twig", 1);
}
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", "contact/cadeaubon.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/cadeaubon.html.twig"));
// line 3
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))) {
// line 4
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 4, $this->source); })()) == 2)) {
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://www.google.com/recaptcha/api.js"], "method", false, false, true, 5);
} elseif (( // line 6
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 6, $this->source); })()) == 3)) {
// line 7
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => ("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", false, false, true, 7);
}
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
public function block_content($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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 12
echo " <div class=\"container mb-5\">
";
// line 14
echo twig_include($this->env, $context, "includes/title.html.twig");
echo "
";
// line 17
echo " ";
$context['_parent'] = $context;
$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", [0 => [0 => "success", 1 => "warning"]], "method", false, false, true, 17));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 18
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 19
echo " <div id=\"messages\" class=\"flash-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 19, $this->source), "html", null, true);
echo "\">
";
// line 20
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 20, $this->source), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 24
echo "
<section id=\"contactcontainer\">
";
// line 26
if ( !(isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 26, $this->source); })())) {
// line 27
echo "
";
// line 28
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');
echo "
<div class=\"row mb-lg-3\">
<div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
";
// line 33
echo " ";
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 33, $this->source); })())) {
// line 34
echo " ";
$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", false, false, true, 34);
// line 35
echo " ";
} else {
// line 36
echo " ";
$context["voornaam"] = "";
// line 37
echo " ";
}
// line 38
echo " <div class=\"form-floating\">
";
// line 40
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", false, false, true, 40), 40, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 40), "vars", [], "any", false, false, true, 40), "label", [], "any", false, false, true, 40)], "value" => (isset($context["voornaam"]) || array_key_exists("voornaam", $context) ? $context["voornaam"] : (function () { throw new RuntimeError('Variable "voornaam" does not exist.', 40, $this->source); })())]);
echo "
<span></span>
";
// line 42
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", false, false, true, 42), 42, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"firstnameHelp\" class=\"form-text\">";
// line 44
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", false, false, true, 44), 44, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 47
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", false, false, true, 47), 47, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
";
// line 51
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 51, $this->source); })())) {
// line 52
echo " ";
$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", false, false, true, 52);
// line 53
echo " ";
} else {
// line 54
echo " ";
$context["naam"] = "";
// line 55
echo " ";
}
// line 56
echo " ";
// line 57
echo " <div class=\"form-floating\">
";
// line 59
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", false, false, true, 59), 59, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 59), "vars", [], "any", false, false, true, 59), "label", [], "any", false, false, true, 59)], "value" => (isset($context["naam"]) || array_key_exists("naam", $context) ? $context["naam"] : (function () { throw new RuntimeError('Variable "naam" does not exist.', 59, $this->source); })())]);
echo "
";
// line 60
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", false, false, true, 60), 60, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"lastnameHelp\" class=\"form-text\">";
// line 62
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", false, false, true, 62), 62, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 65
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", false, false, true, 65), 65, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-8 col-lg-6\">
";
// line 72
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 72, $this->source); })())) {
// line 73
echo " ";
$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", false, false, true, 73);
// line 74
echo " ";
} else {
// line 75
echo " ";
$context["street"] = "";
// line 76
echo " ";
}
// line 77
echo " <div class=\"form-floating\">
";
// line 79
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", false, false, true, 79), 79, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 79), "vars", [], "any", false, false, true, 79), "label", [], "any", false, false, true, 79), "value" => (isset($context["street"]) || array_key_exists("street", $context) ? $context["street"] : (function () { throw new RuntimeError('Variable "street" does not exist.', 79, $this->source); })())]]);
echo "
";
// line 80
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", false, false, true, 80), 80, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"streetHelp\" class=\"form-text\">";
// line 82
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", false, false, true, 82), 82, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 85
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", false, false, true, 85), 85, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-4 col-lg-6\">
";
// line 89
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 89, $this->source); })())) {
// line 90
echo " ";
$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", false, false, true, 90);
// line 91
echo " ";
} else {
// line 92
echo " ";
$context["streetnr"] = "";
// line 93
echo " ";
}
// line 94
echo " <div class=\"form-floating\">
";
// line 96
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", false, false, true, 96), 96, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 96), "vars", [], "any", false, false, true, 96), "label", [], "any", false, false, true, 96), "value" => (isset($context["streetnr"]) || array_key_exists("streetnr", $context) ? $context["streetnr"] : (function () { throw new RuntimeError('Variable "streetnr" does not exist.', 96, $this->source); })())]]);
echo "
";
// line 97
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", false, false, true, 97), 97, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"streetnrHelp\" class=\"form-text\">";
// line 99
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", false, false, true, 99), 99, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 102
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", false, false, true, 102), 102, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
";
// line 109
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 109, $this->source); })())) {
// line 110
echo " ";
$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", false, false, true, 110);
// line 111
echo " ";
} else {
// line 112
echo " ";
$context["postcode"] = "";
// line 113
echo " ";
}
// line 114
echo " <div class=\"form-floating\">
";
// line 116
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", false, false, true, 116), 116, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 116), "vars", [], "any", false, false, true, 116), "label", [], "any", false, false, true, 116), "value" => (isset($context["postcode"]) || array_key_exists("postcode", $context) ? $context["postcode"] : (function () { throw new RuntimeError('Variable "postcode" does not exist.', 116, $this->source); })())]]);
echo "
";
// line 117
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", false, false, true, 117), 117, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"postcodeHelp\" class=\"form-text\">";
// line 119
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", false, false, true, 119), 119, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 122
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", false, false, true, 122), 122, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 126
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 126, $this->source); })())) {
// line 127
echo " ";
$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", false, false, true, 127);
// line 128
echo " ";
} else {
// line 129
echo " ";
$context["city"] = "";
// line 130
echo " ";
}
// line 131
echo " <div class=\"form-floating\">
";
// line 133
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", false, false, true, 133), 133, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 133), "vars", [], "any", false, false, true, 133), "label", [], "any", false, false, true, 133), "value" => (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 133, $this->source); })())]]);
echo "
";
// line 134
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", false, false, true, 134), 134, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"cityeHelp\" class=\"form-text\">";
// line 136
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", false, false, true, 136), 136, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 139
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", false, false, true, 139), 139, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12 mb-3\">
";
// line 146
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 146, $this->source); })())) {
// line 147
echo " ";
$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", false, false, true, 147);
// line 148
echo " ";
} else {
// line 149
echo " ";
$context["email"] = "";
// line 150
echo " ";
}
// line 151
echo " <div class=\"form-floating\">
";
// line 153
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", false, false, true, 153), 153, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 153), "vars", [], "any", false, false, true, 153), "label", [], "any", false, false, true, 153), "value" => (isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 153, $this->source); })())]]);
echo "
";
// line 154
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", false, false, true, 154), 154, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"emailHelp\" class=\"form-text\">";
// line 156
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", false, false, true, 156), 156, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 159
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", false, false, true, 159), 159, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-12 mb-3\">
<div class=\"form-floating\">
";
// line 166
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", false, false, true, 166), 166, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, true, 166), "vars", [], "any", false, false, true, 166), "label", [], "any", false, false, true, 166), "value" => ""]]);
echo "
";
// line 167
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", false, false, true, 167), 167, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"emailHelp\" class=\"form-text\">";
// line 169
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", false, false, true, 169), 169, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 172
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", false, false, true, 172), 172, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
// line 177
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))) {
// line 178
echo " ";
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 178, $this->source); })()) == 2)) {
// line 179
echo " <div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 180
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", null, true);
echo "\"></div>
</div>
";
} elseif (( // line 182
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 182, $this->source); })()) == 3)) {
// line 183
echo " <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
";
}
// line 185
echo " ";
}
// line 186
echo "
";
// line 188
echo " <div class=\"col-12 form-check mb-3\">
";
// line 189
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", false, false, true, 189), 189, $this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
echo "
";
// line 190
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", false, false, true, 190), 190, $this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
echo "
<a href=\"";
// line 192
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("privacy_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("privacy_document")), "html", null, true);
}
echo "\"
target=\"_blank\">
";
// line 194
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ik ga akkoord met privacy"), "html", null, true);
echo "
</a>
<div id=\"conditionsHelp\" class=\"form-text\">";
// line 197
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", false, false, true, 197), 197, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 200
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", false, false, true, 200), 200, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-12 text-center\">
";
// line 205
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", false, false, true, 205), 205, $this->source), 'row', ["attr" => ["class" => "btn btn-primary btn-lg"]]);
echo "
</div>
";
// line 208
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');
echo "
";
}
// line 211
echo " </section>
</div>
";
// line 214
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->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.', 214, $this->source); })()), "flashes", [0 => [0 => "success"]], "method", false, false, true, 214), "success", [], "any", false, false, true, 214)) || twig_test_empty(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.', 214, $this->source); })()), "flashes", [0 => [0 => "warning"]], "method", false, false, true, 214), "warning", [], "any", false, false, true, 214))))) {
// line 215
echo " <script>
function getReCaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('";
// line 218
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", null, true);
echo "', {action: 'contact'}).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function () {
getReCaptcha();
}, 60000);
</script>
";
}
// line 231
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "contact/cadeaubon.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
{% elseif recaptcha == 3 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
{% endif %}
{% endif %}
{% block content %}
<div class=\"container mb-5\">
{{ include('includes/title.html.twig') }}
{# read and display several types of flash messages #}
{% for label, messages in app.flashes(['success', 'warning']) %}
{% for message in messages %}
<div id=\"messages\" class=\"flash-{{ label }}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
<section id=\"contactcontainer\">
{% if not success %}
{{ form_start(form) }}
<div class=\"row mb-lg-3\">
<div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
{# {{ form_row(form.firstname) }}#}
{% if userObject %}
{% set voornaam = userObject.getVoornaam() %}
{% else %}
{% set voornaam = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.firstname, {'attr': {'class': 'form-control', 'placeholder': form.firstname.vars.label}, 'value': voornaam }) }}
<span></span>
{{ form_label(form.firstname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"firstnameHelp\" class=\"form-text\">{{ form_help(form.firstname) }}</div>
<div class=\"form-error\">
{{ form_errors(form.firstname) }}
</div>
</div>
<div class=\"col-12 col-lg-6 mb-3 mb-lg-0\">
{% if userObject %}
{% set naam = userObject.getNaam() %}
{% else %}
{% set naam = '' %}
{% endif %}
{# {{ form_row(form.lastname) }}#}
<div class=\"form-floating\">
{{ form_widget(form.lastname, {'attr': {'class': 'form-control', 'placeholder': form.lastname.vars.label }, 'value': naam}) }}
{{ form_label(form.lastname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.lastname) }}</div>
<div class=\"form-error\">
{{ form_errors(form.lastname) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-8 col-lg-6\">
{% if userObject %}
{% set street = userObject.getAdres_straat() %}
{% else %}
{% set street = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.street, {'attr': {'class': 'form-control', 'placeholder': form.street.vars.label, 'value': street}}) }}
{{ form_label(form.street, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"streetHelp\" class=\"form-text\">{{ form_help(form.street) }}</div>
<div class=\"form-error\">
{{ form_errors(form.street) }}
</div>
</div>
<div class=\"col-4 col-lg-6\">
{% if userObject %}
{% set streetnr = userObject.getAdres_nr() %}
{% else %}
{% set streetnr = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.streetnr, {'attr': {'class': 'form-control', 'placeholder': form.streetnr.vars.label, 'value': streetnr}}) }}
{{ form_label(form.streetnr, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"streetnrHelp\" class=\"form-text\">{{ form_help(form.streetnr) }}</div>
<div class=\"form-error\">
{{ form_errors(form.streetnr) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
{% if userObject %}
{% set postcode = userObject.getAdres_postcode() %}
{% else %}
{% set postcode = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.postcode, {'attr': {'class': 'form-control', 'placeholder': form.postcode.vars.label, 'value': postcode}}) }}
{{ form_label(form.postcode, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"postcodeHelp\" class=\"form-text\">{{ form_help(form.postcode) }}</div>
<div class=\"form-error\">
{{ form_errors(form.postcode) }}
</div>
</div>
<div class=\"col-6\">
{% if userObject %}
{% set city = userObject.getAdres_stad() %}
{% else %}
{% set city = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.city, {'attr': {'class': 'form-control', 'placeholder': form.city.vars.label, 'value': city}}) }}
{{ form_label(form.city, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"cityeHelp\" class=\"form-text\">{{ form_help(form.city) }}</div>
<div class=\"form-error\">
{{ form_errors(form.city) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12 mb-3\">
{% if userObject %}
{% set email = userObject.getEmail() %}
{% else %}
{% set email = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label, 'value': email}}) }}
{{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
<div class=\"form-error\">
{{ form_errors(form.email) }}
</div>
</div>
<div class=\"col-12 mb-3\">
<div class=\"form-floating\">
{{ form_widget(form.amount, {'attr': {'class': 'form-control', 'placeholder': form.amount.vars.label, 'value': ''}}) }}
{{ form_label(form.amount, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.amount) }}</div>
<div class=\"form-error\">
{{ form_errors(form.amount) }}
</div>
</div>
</div>
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
<div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
</div>
{% elseif recaptcha == 3 %}
<input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
{% endif %}
{% endif %}
{# {{ form_row(form.conditions) }}#}
<div class=\"col-12 form-check mb-3\">
{{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
{{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}
<a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\"
target=\"_blank\">
{{ 'Ik ga akkoord met privacy'|trans }}
</a>
<div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
<div class=\"form-error\">
{{ form_errors(form.conditions) }}
</div>
</div>
<div class=\"col-12 text-center\">
{{ form_row(form.submit, {'attr': {'class': 'btn btn-primary btn-lg'}}) }}
</div>
{{ form_end(form) }}
{% endif %}
</section>
</div>
{% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
<script>
function getReCaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('{{ recaptchaPublic }}', {action: 'contact'}).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function () {
getReCaptcha();
}, 60000);
</script>
{% endif %}
{% endblock %}
{# read and display just one flash message type #}
{#{% for message in app.flashes('notice') %}#}
{# <div class=\"flash-notice\">#}
{# {{ message }}#}
{# </div>#}
{#{% endfor %}#}
{# read and display all flash messages #}
{#{% for label, messages in app.flashes %}#}
{# {% for message in messages %}#}
{# <div class=\"flash-{{ label }}\">#}
{# {{ message }}#}
{# </div>#}
{# {% endfor %}#}
{#{% endfor %}#}", "contact/cadeaubon.html.twig", "/var/www/clients/client2/web42/web/pc/templates/contact/cadeaubon.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 3, "do" => 5, "for" => 17, "set" => 34);
static $filters = array("escape" => 19, "trans" => 194);
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);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'for', 'set'],
['escape', 'trans'],
['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']
);
} 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;
}
}
}