var/cache/test/twig/b6/b6fd15f6d0873a22a05d7b0f1bc50396.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @ui2022/table-filter.html.twig */
  14. class __TwigTemplate_00a4fe436ffcd9974f1409f8ed09b423 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'filter' => [$this'block_filter'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ui2022/table-filter.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ui2022/table-filter.html.twig"));
  34.         // line 1
  35.         $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["_args"]) || array_key_exists("_args"$context) ? $context["_args"] : (function () { throw new RuntimeError('Variable "_args" does not exist.'1$this->source); })()), "form", [], "any"falsefalsefalse1);
  36.         // line 2
  37.         echo "
  38. ";
  39.         // line 3
  40.         $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.'3$this->source); })()), [=> "@ui2022/forms/themes/filtering.html.twig"], true);
  41.         // line 4
  42.         echo "
  43. <div class=\"table__filter\">
  44.     ";
  45.         // line 6
  46.         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.'6$this->source); })()), 'form_start', ["action" => ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 7
  47. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'7$this->source); })()), "vars", [], "any"falsefalsefalse7), "action", [], "any"falsefalsefalse7)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'7$this->source); })()), "vars", [], "any"falsefalsefalse7), "action", [], "any"falsefalsefalse7)) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "attributes", [], "any"falsefalsefalse7), "get", [=> "_route"], "method"falsefalsefalse7), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "attributes", [], "any"falsefalsefalse7), "get", [=> "_route_params"], "method"falsefalsefalse7))))]);
  48.         // line 8
  49.         echo "
  50.     <div class=\"row align-items-center\">
  51.         <div class=\"col-12 col-sm-auto\">
  52.             ";
  53.         // line 11
  54.         $this->displayBlock('filter'$context$blocks);
  55.         // line 27
  56.         echo "        </div>
  57.         <div class=\"col-12 col-sm-auto ml-sm-auto\">
  58.             ";
  59.         // line 29
  60.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })()), 'rest');
  61.         echo "
  62.         </div>
  63.     </div>
  64.     ";
  65.         // line 32
  66.         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.'32$this->source); })()), 'form_end');
  67.         echo "
  68. </div>
  69. ";
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.     }
  75.     // line 11
  76.     public function block_filter($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""filter"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""filter"));
  83.         // line 12
  84.         echo "                ";
  85.         if ((twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "filter", [], "any"truetruefalse12) && 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.'12$this->source); })()), "filter", [], "any"falsefalsefalse12))) {
  86.             // line 13
  87.             echo "                    ";
  88.             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.'13$this->source); })()), "filter", [], "any"falsefalsefalse13), 'widget');
  89.             echo "
  90.                     <script type=\"text/javascript\">
  91.                         (function (window, document, \$, undefined) {
  92.                             \$(function () {
  93.                                 \$('#";
  94.             // line 17
  95.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'17$this->source); })()), "filter", [], "any"falsefalsefalse17), "vars", [], "any"falsefalsefalse17), "id", [], "any"falsefalsefalse17), "html"nulltrue);
  96.             echo "').on('change', function (e) {
  97.                                     if (\$(e.currentTarget).val()) {
  98.                                         \$('#";
  99.             // line 19
  100.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'19$this->source); })()), "vars", [], "any"falsefalsefalse19), "id", [], "any"falsefalsefalse19), "html"nulltrue);
  101.             echo "').submit();
  102.                                     }
  103.                                 });
  104.                             });
  105.                         })(window, document, jQuery);
  106.                     </script>
  107.                 ";
  108.         }
  109.         // line 26
  110.         echo "            ";
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.     }
  116.     public function getTemplateName()
  117.     {
  118.         return "@ui2022/table-filter.html.twig";
  119.     }
  120.     public function isTraitable()
  121.     {
  122.         return false;
  123.     }
  124.     public function getDebugInfo()
  125.     {
  126.         return array (  124 => 26,  114 => 19,  109 => 17,  101 => 13,  98 => 12,  88 => 11,  75 => 32,  69 => 29,  65 => 27,  63 => 11,  58 => 8,  56 => 7,  55 => 6,  51 => 4,  49 => 3,  46 => 2,  44 => 1,);
  127.     }
  128.     public function getSourceContext()
  129.     {
  130.         return new Source("{% set form = _args.form %}
  131. {% form_theme form '@ui2022/forms/themes/filtering.html.twig' %}
  132. <div class=\"table__filter\">
  133.     {{ form_start(form, {
  134.         action: form.vars.action ?: path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')),
  135.     }) }}
  136.     <div class=\"row align-items-center\">
  137.         <div class=\"col-12 col-sm-auto\">
  138.             {% block filter %}
  139.                 {% if form.filter is defined and form.filter %}
  140.                     {{ form_widget(form.filter) }}
  141.                     <script type=\"text/javascript\">
  142.                         (function (window, document, \$, undefined) {
  143.                             \$(function () {
  144.                                 \$('#{{ form.filter.vars.id }}').on('change', function (e) {
  145.                                     if (\$(e.currentTarget).val()) {
  146.                                         \$('#{{ form.vars.id }}').submit();
  147.                                     }
  148.                                 });
  149.                             });
  150.                         })(window, document, jQuery);
  151.                     </script>
  152.                 {% endif %}
  153.             {% endblock %}
  154.         </div>
  155.         <div class=\"col-12 col-sm-auto ml-sm-auto\">
  156.             {{ form_rest(form) }}
  157.         </div>
  158.     </div>
  159.     {{ form_end(form) }}
  160. </div>
  161. ""@ui2022/table-filter.html.twig""/var/www/campussuite/ui2022/table-filter.html.twig");
  162.     }
  163. }