<?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;
/* _widgets/header-search.html.twig */
class __TwigTemplate_f5250c5192700373711ed5059afc6b7f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "_widgets/header-search.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_widgets/header-search.html.twig"));
// line 1
$cached = $this->env->getRuntime('Twig\Extra\Cache\CacheRuntime')->getCache()->get("navbar_header_search_html", function (\Symfony\Contracts\Cache\ItemInterface $item) use ($context, $macros) {
$item->expiresAfter(3600);
ob_start(function () { return ''; });
// line 2
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(twig_get_attribute($this->env, $this->source, (isset($context["twigVars"]) || array_key_exists("twigVars", $context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.', 2, $this->source); })()), "searchForm", [], "any", false, false, false, 2), 'form_start', ["attr" => ["class" => "input-group", "id" => "gs_form"]]);
echo "
";
// line 3
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["twigVars"]) || array_key_exists("twigVars", $context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.', 3, $this->source); })()), "searchForm", [], "any", false, false, false, 3), "term", [], "any", false, false, false, 3), 'widget', ["attr" => ["class" => "form-control form-control-sm border-0 typeahead", "aria-label" => "Suche", "data-url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_searchresult_suggest")]]);
// line 9
echo "
<div class=\"input-group-append\">
<button class=\"btn btn-sm btn-light border-0\" type=\"submit\">
<i class=\"fas fa-search\"></i>
</button>
</div>
";
// line 15
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["twigVars"]) || array_key_exists("twigVars", $context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.', 15, $this->source); })()), "searchForm", [], "any", false, false, false, 15), 'rest');
echo "
";
// line 16
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(twig_get_attribute($this->env, $this->source, (isset($context["twigVars"]) || array_key_exists("twigVars", $context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.', 16, $this->source); })()), "searchForm", [], "any", false, false, false, 16), 'form_end');
echo "
";
return ob_get_clean();
});
echo '' === $cached ? '' : new Markup($cached, $this->env->getCharset());
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "_widgets/header-search.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 66 => 16, 62 => 15, 54 => 9, 52 => 3, 47 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% cache \"navbar_header_search_html\" ttl(3600) %}
{{ form_start(twigVars.searchForm, {'attr': {'class': 'input-group', 'id': 'gs_form'}}) }}
{{ form_widget(twigVars.searchForm.term, {
'attr': {
'class': 'form-control form-control-sm border-0 typeahead',
'aria-label': 'Suche',
'data-url': path('app_searchresult_suggest')
}
}) }}
<div class=\"input-group-append\">
<button class=\"btn btn-sm btn-light border-0\" type=\"submit\">
<i class=\"fas fa-search\"></i>
</button>
</div>
{{ form_rest(twigVars.searchForm) }}
{{ form_end(twigVars.searchForm) }}
{% endcache %}
", "_widgets/header-search.html.twig", "/var/www/frontend-dev/apps/frontend/templates/_widgets/header-search.html.twig");
}
}