<?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/klantenkaart.html.twig */
class __TwigTemplate_7bdfb41c3aea3c15a7130c08c6b0be37 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/klantenkaart.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/klantenkaart.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/klantenkaart.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["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 26, $this->source); })())) {
// line 27
echo " ";
$context["geenKlantenkaart"] = 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.', 27, $this->source); })()), "getKlantenkaart", [], "method", false, false, true, 27);
// line 28
echo " ";
} else {
// line 29
echo " ";
$context["geenKlantenkaart"] = false;
// line 30
echo " ";
}
// line 31
echo "
";
// line 32
if ((isset($context["geenKlantenkaart"]) || array_key_exists("geenKlantenkaart", $context) ? $context["geenKlantenkaart"] : (function () { throw new RuntimeError('Variable "geenKlantenkaart" does not exist.', 32, $this->source); })())) {
// line 33
echo " <div class=\"row\">
<div class=\"col-12\">
<div class=\"alert alert-success\" role=\"alert\">
";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Klantenkaart reeds aangemaakt."), "html", null, true);
echo "
</div>
</div>
</div>
";
}
// line 41
echo "
";
// line 42
if (( !(isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 42, $this->source); })()) && !(isset($context["geenKlantenkaart"]) || array_key_exists("geenKlantenkaart", $context) ? $context["geenKlantenkaart"] : (function () { throw new RuntimeError('Variable "geenKlantenkaart" does not exist.', 42, $this->source); })()))) {
// line 43
echo "
";
// line 44
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.', 44, $this->source); })()), 44, $this->source), 'form_start');
echo "
<div class=\"row mb-3\">
<div class=\"col-6\">
";
// line 48
echo " ";
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 48, $this->source); })())) {
// line 49
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.', 49, $this->source); })()), "getVoornaam", [], "method", false, false, true, 49);
// line 50
echo " ";
} else {
// line 51
echo " ";
$context["voornaam"] = "";
// line 52
echo " ";
}
// line 53
echo " <div class=\"form-floating\">
";
// line 55
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.', 55, $this->source); })()), "firstname", [], "any", false, false, true, 55), 55, $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.', 55, $this->source); })()), "firstname", [], "any", false, false, true, 55), "vars", [], "any", false, false, true, 55), "label", [], "any", false, false, true, 55)], "value" => (isset($context["voornaam"]) || array_key_exists("voornaam", $context) ? $context["voornaam"] : (function () { throw new RuntimeError('Variable "voornaam" does not exist.', 55, $this->source); })())]);
echo "
";
// line 56
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.', 56, $this->source); })()), "firstname", [], "any", false, false, true, 56), 56, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"firstnameHelp\" class=\"form-text\">";
// line 58
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.', 58, $this->source); })()), "firstname", [], "any", false, false, true, 58), 58, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 61
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.', 61, $this->source); })()), "firstname", [], "any", false, false, true, 61), 61, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 65
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 65, $this->source); })())) {
// line 66
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.', 66, $this->source); })()), "getNaam", [], "method", false, false, true, 66);
// line 67
echo " ";
} else {
// line 68
echo " ";
$context["naam"] = "";
// line 69
echo " ";
}
// line 70
echo " ";
// line 71
echo " <div class=\"form-floating\">
";
// line 73
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.', 73, $this->source); })()), "lastname", [], "any", false, false, true, 73), 73, $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.', 73, $this->source); })()), "lastname", [], "any", false, false, true, 73), "vars", [], "any", false, false, true, 73), "label", [], "any", false, false, true, 73)], "value" => (isset($context["naam"]) || array_key_exists("naam", $context) ? $context["naam"] : (function () { throw new RuntimeError('Variable "naam" does not exist.', 73, $this->source); })())]);
echo "
";
// line 74
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.', 74, $this->source); })()), "lastname", [], "any", false, false, true, 74), 74, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"lastnameHelp\" class=\"form-text\">";
// line 76
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.', 76, $this->source); })()), "lastname", [], "any", false, false, true, 76), 76, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// 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); })()), "lastname", [], "any", false, false, true, 79), 79, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-8 col-lg-6\">
";
// line 86
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 86, $this->source); })())) {
// line 87
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.', 87, $this->source); })()), "getAdres_straat", [], "method", false, false, true, 87);
// line 88
echo " ";
} else {
// line 89
echo " ";
$context["street"] = "";
// line 90
echo " ";
}
// line 91
echo " <div class=\"form-floating\">
";
// line 93
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.', 93, $this->source); })()), "street", [], "any", false, false, true, 93), 93, $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.', 93, $this->source); })()), "street", [], "any", false, false, true, 93), "vars", [], "any", false, false, true, 93), "label", [], "any", false, false, true, 93), "value" => (isset($context["street"]) || array_key_exists("street", $context) ? $context["street"] : (function () { throw new RuntimeError('Variable "street" does not exist.', 93, $this->source); })())]]);
echo "
";
// line 94
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.', 94, $this->source); })()), "street", [], "any", false, false, true, 94), 94, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"streetHelp\" class=\"form-text\">";
// 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); })()), "street", [], "any", false, false, true, 96), 96, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// 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); })()), "street", [], "any", false, false, true, 99), 99, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-4 col-lg-6\">
";
// line 103
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 103, $this->source); })())) {
// line 104
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.', 104, $this->source); })()), "getAdres_nr", [], "method", false, false, true, 104);
// line 105
echo " ";
} else {
// line 106
echo " ";
$context["streetnr"] = "";
// line 107
echo " ";
}
// line 108
echo " <div class=\"form-floating\">
";
// line 110
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.', 110, $this->source); })()), "streetnr", [], "any", false, false, true, 110), 110, $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.', 110, $this->source); })()), "streetnr", [], "any", false, false, true, 110), "vars", [], "any", false, false, true, 110), "label", [], "any", false, false, true, 110), "value" => (isset($context["streetnr"]) || array_key_exists("streetnr", $context) ? $context["streetnr"] : (function () { throw new RuntimeError('Variable "streetnr" does not exist.', 110, $this->source); })())]]);
echo "
";
// line 111
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.', 111, $this->source); })()), "streetnr", [], "any", false, false, true, 111), 111, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"streetnrHelp\" class=\"form-text\">";
// line 113
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.', 113, $this->source); })()), "streetnr", [], "any", false, false, true, 113), 113, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// 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); })()), "streetnr", [], "any", false, false, true, 116), 116, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
";
// line 123
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 123, $this->source); })())) {
// line 124
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.', 124, $this->source); })()), "getAdres_postcode", [], "method", false, false, true, 124);
// line 125
echo " ";
} else {
// line 126
echo " ";
$context["postcode"] = "";
// line 127
echo " ";
}
// line 128
echo " <div class=\"form-floating\">
";
// line 130
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.', 130, $this->source); })()), "postcode", [], "any", false, false, true, 130), 130, $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.', 130, $this->source); })()), "postcode", [], "any", false, false, true, 130), "vars", [], "any", false, false, true, 130), "label", [], "any", false, false, true, 130), "value" => (isset($context["postcode"]) || array_key_exists("postcode", $context) ? $context["postcode"] : (function () { throw new RuntimeError('Variable "postcode" does not exist.', 130, $this->source); })())]]);
echo "
";
// line 131
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.', 131, $this->source); })()), "postcode", [], "any", false, false, true, 131), 131, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"postcodeHelp\" class=\"form-text\">";
// 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); })()), "postcode", [], "any", false, false, true, 133), 133, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// 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); })()), "postcode", [], "any", false, false, true, 136), 136, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 140
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 140, $this->source); })())) {
// line 141
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.', 141, $this->source); })()), "getAdres_stad", [], "method", false, false, true, 141);
// line 142
echo " ";
} else {
// line 143
echo " ";
$context["city"] = "";
// line 144
echo " ";
}
// line 145
echo " <div class=\"form-floating\">
";
// line 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.', 147, $this->source); })()), "city", [], "any", false, false, true, 147), 147, $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.', 147, $this->source); })()), "city", [], "any", false, false, true, 147), "vars", [], "any", false, false, true, 147), "label", [], "any", false, false, true, 147), "value" => (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 147, $this->source); })())]]);
echo "
";
// line 148
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.', 148, $this->source); })()), "city", [], "any", false, false, true, 148), 148, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"cityeHelp\" class=\"form-text\">";
// line 150
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.', 150, $this->source); })()), "city", [], "any", false, false, true, 150), 150, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// 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); })()), "city", [], "any", false, false, true, 153), 153, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
";
// line 160
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 160, $this->source); })())) {
// line 161
echo " ";
$context["phone"] = 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.', 161, $this->source); })()), "getTel", [], "method", false, false, true, 161);
// line 162
echo " ";
} else {
// line 163
echo " ";
$context["phone"] = "";
// line 164
echo " ";
}
// line 165
echo " <div class=\"form-floating\">
";
// 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); })()), "phone", [], "any", false, false, true, 167), 167, $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.', 167, $this->source); })()), "phone", [], "any", false, false, true, 167), "vars", [], "any", false, false, true, 167), "label", [], "any", false, false, true, 167), "value" => (isset($context["phone"]) || array_key_exists("phone", $context) ? $context["phone"] : (function () { throw new RuntimeError('Variable "phone" does not exist.', 167, $this->source); })())]]);
echo "
";
// line 168
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.', 168, $this->source); })()), "phone", [], "any", false, false, true, 168), 168, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"phoneeHelp\" class=\"form-text\">";
// line 170
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.', 170, $this->source); })()), "phone", [], "any", false, false, true, 170), 170, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 173
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.', 173, $this->source); })()), "phone", [], "any", false, false, true, 173), 173, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 177
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 177, $this->source); })())) {
// line 178
echo " ";
$context["birthdate"] = 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.', 178, $this->source); })()), "getGeboorte_datum", [], "method", false, false, true, 178);
// line 179
echo " ";
} else {
// line 180
echo " ";
$context["birthdate"] = "";
// line 181
echo " ";
}
// line 182
echo " <div class=\"form-floating\">
";
// line 184
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.', 184, $this->source); })()), "birthdate", [], "any", false, false, true, 184), 184, $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.', 184, $this->source); })()), "birthdate", [], "any", false, false, true, 184), "vars", [], "any", false, false, true, 184), "label", [], "any", false, false, true, 184), "value" => (isset($context["birthdate"]) || array_key_exists("birthdate", $context) ? $context["birthdate"] : (function () { throw new RuntimeError('Variable "birthdate" does not exist.', 184, $this->source); })())]]);
echo "
";
// line 185
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.', 185, $this->source); })()), "birthdate", [], "any", false, false, true, 185), 185, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"birthdateHelp\" class=\"form-text\">";
// line 187
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.', 187, $this->source); })()), "birthdate", [], "any", false, false, true, 187), 187, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// 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); })()), "birthdate", [], "any", false, false, true, 190), 190, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12\">
";
// line 199
if ((isset($context["userObject"]) || array_key_exists("userObject", $context) ? $context["userObject"] : (function () { throw new RuntimeError('Variable "userObject" does not exist.', 199, $this->source); })())) {
// line 200
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.', 200, $this->source); })()), "getEmail", [], "method", false, false, true, 200);
// line 201
echo " ";
} else {
// line 202
echo " ";
$context["email"] = "";
// line 203
echo " ";
}
// line 204
echo " <div class=\"form-floating\">
";
// line 206
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.', 206, $this->source); })()), "email", [], "any", false, false, true, 206), 206, $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.', 206, $this->source); })()), "email", [], "any", false, false, true, 206), "vars", [], "any", false, false, true, 206), "label", [], "any", false, false, true, 206), "value" => (isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 206, $this->source); })())]]);
echo "
";
// line 207
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.', 207, $this->source); })()), "email", [], "any", false, false, true, 207), 207, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"emailHelp\" class=\"form-text\">";
// line 209
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.', 209, $this->source); })()), "email", [], "any", false, false, true, 209), 209, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 212
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.', 212, $this->source); })()), "email", [], "any", false, false, true, 212), 212, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
// line 217
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 217, $this->source); })()) && array_key_exists("recaptcha", $context))) {
// line 218
echo " ";
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 218, $this->source); })()) == 2)) {
// line 219
echo " <div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 220
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.', 220, $this->source); })()), 220, $this->source), "html", null, true);
echo "\"></div>
</div>
";
} elseif (( // line 222
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 222, $this->source); })()) == 3)) {
// line 223
echo " <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
";
}
// line 225
echo " ";
}
// line 226
echo "
";
// line 228
echo " <div class=\"col-12 form-check\">
";
// line 229
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.', 229, $this->source); })()), "conditions", [], "any", false, false, true, 229), 229, $this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
echo "
";
// line 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.', 230, $this->source); })()), "conditions", [], "any", false, false, true, 230), 230, $this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
echo "
<a href=\"";
// line 232
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 233
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 236
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.', 236, $this->source); })()), "conditions", [], "any", false, false, true, 236), 236, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 239
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.', 239, $this->source); })()), "conditions", [], "any", false, false, true, 239), 239, $this->source), 'errors');
echo "
</div>
</div>
";
// line 243
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.', 243, $this->source); })()), "submit", [], "any", false, false, true, 243), 243, $this->source), 'row', ["attr" => ["class" => "btn btn-primary mt-3"]]);
echo "
";
// line 245
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.', 245, $this->source); })()), 245, $this->source), 'form_end');
echo "
";
}
// line 248
echo " </section>
</div>
";
// line 263
echo "
";
// line 264
if ((( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 264, $this->source); })()) && ((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 264, $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.', 264, $this->source); })()), "flashes", [0 => [0 => "success"]], "method", false, false, true, 264), "success", [], "any", false, false, true, 264)) || 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.', 264, $this->source); })()), "flashes", [0 => [0 => "warning"]], "method", false, false, true, 264), "warning", [], "any", false, false, true, 264))))) {
// line 265
echo " <script>
function getReCaptcha(){
grecaptcha.ready(function () {
grecaptcha.execute('";
// line 268
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.', 268, $this->source); })()), 268, $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 278
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "contact/klantenkaart.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 650 => 278, 637 => 268, 632 => 265, 630 => 264, 627 => 263, 622 => 248, 616 => 245, 611 => 243, 604 => 239, 598 => 236, 592 => 233, 586 => 232, 581 => 230, 577 => 229, 574 => 228, 571 => 226, 568 => 225, 564 => 223, 562 => 222, 557 => 220, 554 => 219, 551 => 218, 549 => 217, 541 => 212, 535 => 209, 530 => 207, 526 => 206, 522 => 204, 519 => 203, 516 => 202, 513 => 201, 510 => 200, 508 => 199, 496 => 190, 490 => 187, 485 => 185, 481 => 184, 477 => 182, 474 => 181, 471 => 180, 468 => 179, 465 => 178, 463 => 177, 456 => 173, 450 => 170, 445 => 168, 441 => 167, 437 => 165, 434 => 164, 431 => 163, 428 => 162, 425 => 161, 423 => 160, 413 => 153, 407 => 150, 402 => 148, 398 => 147, 394 => 145, 391 => 144, 388 => 143, 385 => 142, 382 => 141, 380 => 140, 373 => 136, 367 => 133, 362 => 131, 358 => 130, 354 => 128, 351 => 127, 348 => 126, 345 => 125, 342 => 124, 340 => 123, 330 => 116, 324 => 113, 319 => 111, 315 => 110, 311 => 108, 308 => 107, 305 => 106, 302 => 105, 299 => 104, 297 => 103, 290 => 99, 284 => 96, 279 => 94, 275 => 93, 271 => 91, 268 => 90, 265 => 89, 262 => 88, 259 => 87, 257 => 86, 247 => 79, 241 => 76, 236 => 74, 232 => 73, 228 => 71, 226 => 70, 223 => 69, 220 => 68, 217 => 67, 214 => 66, 212 => 65, 205 => 61, 199 => 58, 194 => 56, 190 => 55, 186 => 53, 183 => 52, 180 => 51, 177 => 50, 174 => 49, 171 => 48, 165 => 44, 162 => 43, 160 => 42, 157 => 41, 149 => 36, 144 => 33, 142 => 32, 139 => 31, 136 => 30, 133 => 29, 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 userObject %}
{% set geenKlantenkaart = userObject.getKlantenkaart() %}
{% else %}
{% set geenKlantenkaart = false %}
{% endif %}
{% if geenKlantenkaart %}
<div class=\"row\">
<div class=\"col-12\">
<div class=\"alert alert-success\" role=\"alert\">
{{ \"Klantenkaart reeds aangemaakt.\"|trans }}
</div>
</div>
</div>
{% endif %}
{% if not success and not geenKlantenkaart %}
{{ form_start(form) }}
<div class=\"row mb-3\">
<div class=\"col-6\">
{# {{ 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 }) }}
{{ 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-6\">
{% 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 mb-3\">
<div class=\"col-6\">
{% if userObject %}
{% set phone = userObject.getTel() %}
{% else %}
{% set phone = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.phone, {'attr': {'class': 'form-control', 'placeholder': form.phone.vars.label, 'value': phone}}) }}
{{ form_label(form.phone, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"phoneeHelp\" class=\"form-text\">{{ form_help(form.phone) }}</div>
<div class=\"form-error\">
{{ form_errors(form.phone) }}
</div>
</div>
<div class=\"col-6\">
{% if userObject %}
{% set birthdate = userObject.getGeboorte_datum() %}
{% else %}
{% set birthdate = '' %}
{% endif %}
<div class=\"form-floating\">
{{ form_widget(form.birthdate, {'attr': {'class': 'form-control', 'placeholder': form.birthdate.vars.label, 'value': birthdate}}) }}
{{ form_label(form.birthdate, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"birthdateHelp\" class=\"form-text\">{{ form_help(form.birthdate) }}</div>
<div class=\"form-error\">
{{ form_errors(form.birthdate) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12\">
{% 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>
{% 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\">
{{ 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>
{{ form_row(form.submit, {'attr': {'class': 'btn btn-primary mt-3'}}) }}
{{ form_end(form) }}
{% endif %}
</section>
</div>
{#
{% if document.property('googlemaps') is defined %}
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"embed-container maps mapgrey\">
<iframe src=\"{{ document.property('googlemaps') }}\" width=\"100%\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
{% endif %}#}
{% 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/klantenkaart.html.twig", "/var/www/clients/client2/web42/web/pc/templates/contact/klantenkaart.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 3, "do" => 5, "for" => 17, "set" => 27);
static $filters = array("escape" => 19, "trans" => 36);
static $functions = array("pimcore_head_script" => 5, "include" => 14, "form_start" => 44, "form_widget" => 55, "form_label" => 56, "form_help" => 58, "form_errors" => 61, "check_websitesetting" => 232, "inotherlang" => 232, "pimcore_website_config" => 232, "form_row" => 243, "form_end" => 245, "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;
}
}
}