<?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;
/* home/contact.html.twig */
class __TwigTemplate_776de0f392fc5764c47d35f549f57b4c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title_suffix' => [$this, 'block_title_suffix'],
'head_scripts' => [$this, 'block_head_scripts'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\MiscExtension']->getBaseTemplateName(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1)), "home/contact.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", "home/contact.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/contact.html.twig"));
// line 4
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 4, $this->source); })()), ["bootstrap_4_layout.html.twig"], true);
// 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 2
public function block_title_suffix($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", "title_suffix"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title_suffix"));
echo "Kontakt";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_head_scripts($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", "head_scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts"));
// line 7
echo " <script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 10
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 11
echo " <h2 class=\"mb-3\">Kontakt aufnehmen ... und Hilfe erhalten</h2>
<h4>Bitte fülle dieses Formular aus</h4>
<p>Unsere Antwort erfolgt per E-Mail. Bitte achte daher auf eine gültige E-Mail Adresse, damit wir dich auch
erreichen können!</p>
<div class=\"align-items-center bg-grey-10 py-2 pb-lg-2 mx-0 mb-4\">
";
// line 16
if (((isset($context["emailSent"]) || array_key_exists("emailSent", $context) ? $context["emailSent"] : (function () { throw new RuntimeError('Variable "emailSent" does not exist.', 16, $this->source); })()) || (isset($context["failure"]) || array_key_exists("failure", $context) ? $context["failure"] : (function () { throw new RuntimeError('Variable "failure" does not exist.', 16, $this->source); })()))) {
// line 17
echo " ";
$context["class"] = (((isset($context["failure"]) || array_key_exists("failure", $context) ? $context["failure"] : (function () { throw new RuntimeError('Variable "failure" does not exist.', 17, $this->source); })())) ? ("alert alert-danger") : ("alert alert-success"));
// line 18
echo " <div class=\"col-12 ";
echo twig_escape_filter($this->env, (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 18, $this->source); })()), "html", null, true);
echo "\">
<strong>Vielen Dank!</strong>
";
// line 20
if ((isset($context["failure"]) || array_key_exists("failure", $context) ? $context["failure"] : (function () { throw new RuntimeError('Variable "failure" does not exist.', 20, $this->source); })())) {
// line 21
echo " <p>Das hat leider nicht geklappt. Bitte versuche es nochmal oder schicke uns eine E-Mail an support@frivol.com</p>
";
} else {
// line 23
echo " <p>Deine Nachricht wurde gespeichert und wird von einem Mitarbeiter aus dem Support bearbeitet.
Wir bitten um Geduld, besonders nachts, an Wochenenden und Feiertagen.</p>
";
}
// line 26
echo " </div>
";
}
// line 28
echo " ";
if (((isset($context["emailSent"]) || array_key_exists("emailSent", $context) ? $context["emailSent"] : (function () { throw new RuntimeError('Variable "emailSent" does not exist.', 28, $this->source); })()) == false)) {
// line 29
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 29, $this->source); })()), 'form_start', ["attr" => ["class" => "col-12", "id" => "contact_form"]]);
echo "
";
// line 30
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 30, $this->source); })()), "firstName", [], "any", false, false, false, 30), 'row');
echo "
";
// line 31
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 31, $this->source); })()), "lastName", [], "any", false, false, false, 31), 'row');
echo "
";
// line 32
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 32, $this->source); })()), "email", [], "any", false, false, false, 32), 'row');
echo "
";
// line 33
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 33, $this->source); })()), "phone", [], "any", false, false, false, 33), 'row');
echo "
";
// line 34
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 34, $this->source); })()), "webmId", [], "any", false, false, false, 34), 'row');
echo "
";
// line 35
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 35, $this->source); })()), "topic", [], "any", false, false, false, 35), 'row');
echo "
";
// line 36
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 36, $this->source); })()), "message", [], "any", false, false, false, 36), 'row');
echo "
";
// line 37
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 37, $this->source); })()), "info", [], "any", false, false, false, 37), 'row');
echo "
<div id=\"contactFormContent\" style=\"visibility:hidden;\">
";
// line 39
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 39, $this->source); })()), "submit", [], "any", false, false, false, 39), 'row', ["attr" => ["disabled" => "disabled"]]);
echo "
</div>
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 41
echo twig_escape_filter($this->env, (isset($context["RECAPTCHA_FORM_KEY"]) || array_key_exists("RECAPTCHA_FORM_KEY", $context) ? $context["RECAPTCHA_FORM_KEY"] : (function () { throw new RuntimeError('Variable "RECAPTCHA_FORM_KEY" does not exist.', 41, $this->source); })()), "html", null, true);
echo "\" data-callback=\"recaptchaCallback\"></div>
";
// line 42
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 42, $this->source); })()), 'form_end');
echo "
";
}
// line 44
echo " </div>
<h4>Europäischer Support:</h4>
<img src=\"";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/contactInfo.png"), "html", null, true);
echo "\" data-callback=\"contactCallback\" class=\"company-contact-info\" />
<div class=\"row-fluid\">
<div class=\"span12\">
<h5>Online-Streitbeilegung (Art. 14 Abs. 1 ODR-Verordnung):</h5>
<p>
Die Europäische Kommission stellt unter <a href=\"http://ec.europa.eu/consumers/odr\" target=\"_blank\">
http://ec.europa.eu/consumers/odr</a> eine Plattform zur Online-Streitbeilegung bereit.
</p>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 60
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 61
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
function recaptchaCallback() {
\$(\"#contactFormContent\").css(\"visibility\", \"visible\");
\$('#contact_form_submit').removeAttr('disabled');
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "home/contact.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 238 => 61, 228 => 60, 206 => 47, 201 => 44, 196 => 42, 192 => 41, 187 => 39, 182 => 37, 178 => 36, 174 => 35, 170 => 34, 166 => 33, 162 => 32, 158 => 31, 154 => 30, 149 => 29, 146 => 28, 142 => 26, 137 => 23, 133 => 21, 131 => 20, 125 => 18, 122 => 17, 120 => 16, 113 => 11, 103 => 10, 92 => 7, 82 => 6, 63 => 2, 53 => 1, 51 => 4, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends baseTemplateName(app.request) %}
{% block title_suffix %}Kontakt{% endblock %}
{% form_theme form 'bootstrap_4_layout.html.twig' %}
{% block head_scripts %}
<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
{% endblock %}
{% block body %}
<h2 class=\"mb-3\">Kontakt aufnehmen ... und Hilfe erhalten</h2>
<h4>Bitte fülle dieses Formular aus</h4>
<p>Unsere Antwort erfolgt per E-Mail. Bitte achte daher auf eine gültige E-Mail Adresse, damit wir dich auch
erreichen können!</p>
<div class=\"align-items-center bg-grey-10 py-2 pb-lg-2 mx-0 mb-4\">
{% if emailSent or failure %}
{% set class = failure ? \"alert alert-danger\" : \"alert alert-success\" %}
<div class=\"col-12 {{ class }}\">
<strong>Vielen Dank!</strong>
{% if failure %}
<p>Das hat leider nicht geklappt. Bitte versuche es nochmal oder schicke uns eine E-Mail an support@frivol.com</p>
{% else %}
<p>Deine Nachricht wurde gespeichert und wird von einem Mitarbeiter aus dem Support bearbeitet.
Wir bitten um Geduld, besonders nachts, an Wochenenden und Feiertagen.</p>
{% endif %}
</div>
{% endif %}
{% if emailSent == false %}
{{ form_start(form, {'attr': {'class': 'col-12', 'id': 'contact_form'}}) }}
{{ form_row(form.firstName) }}
{{ form_row(form.lastName) }}
{{ form_row(form.email) }}
{{ form_row(form.phone) }}
{{ form_row(form.webmId) }}
{{ form_row(form.topic) }}
{{ form_row(form.message) }}
{{ form_row(form.info) }}
<div id=\"contactFormContent\" style=\"visibility:hidden;\">
{{ form_row(form.submit, {'attr': {'disabled':'disabled'}}) }}
</div>
<div class=\"g-recaptcha\" data-sitekey=\"{{ RECAPTCHA_FORM_KEY }}\" data-callback=\"recaptchaCallback\"></div>
{{ form_end(form) }}
{% endif %}
</div>
<h4>Europäischer Support:</h4>
<img src=\"{{ asset('build/images/contactInfo.png')}}\" data-callback=\"contactCallback\" class=\"company-contact-info\" />
<div class=\"row-fluid\">
<div class=\"span12\">
<h5>Online-Streitbeilegung (Art. 14 Abs. 1 ODR-Verordnung):</h5>
<p>
Die Europäische Kommission stellt unter <a href=\"http://ec.europa.eu/consumers/odr\" target=\"_blank\">
http://ec.europa.eu/consumers/odr</a> eine Plattform zur Online-Streitbeilegung bereit.
</p>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
function recaptchaCallback() {
\$(\"#contactFormContent\").css(\"visibility\", \"visible\");
\$('#contact_form_submit').removeAttr('disabled');
}
</script>
{% endblock %}
", "home/contact.html.twig", "/var/www/frontend-dev/apps/frontend/templates/home/contact.html.twig");
}
}