var/cache/dev/twig/fa/faefae9f26d1b8fd43c28d0da7e3d882.php line 50

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. /* homesearch.html.twig */
  14. class __TwigTemplate_9833509c5f763bfd5cee0541107229ba extends 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'headersection' => [$this'block_headersection'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homesearch.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homesearch.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""homesearch.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "- Recherche";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 5
  62.     public function block_headersection($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headersection"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headersection"));
  69.         // line 6
  70.         echo "<div class=\"fixed-top\">
  71.     ";
  72.         // line 7
  73.         echo twig_include($this->env$context"flashmessages/flashmessages.html.twig");
  74.         echo "
  75. </div>
  76. <section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"";
  77.         // line 9
  78.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html"nulltrue);
  79.         echo "\">
  80.     <div class=\"container\">
  81.         <div class=\"row justify-content-center\">
  82.             <div class=\"col-12\">
  83.                 <nav aria-label=\"breadcrumb\">
  84.                     <ol class=\"breadcrumb breadcrumb-transparent\">
  85.                         <li class=\"breadcrumb-item\"><a href=\"";
  86.         // line 15
  87.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
  88.         echo "\">Accueil</a></li>
  89.                         <li class=\"breadcrumb-item active\">Recherche</li>
  90.                     </ol>
  91.                 </nav>
  92.                 <!-- Heading -->
  93.                 <h1 class=\"display-2\">
  94.                     <i class=\"fab fa-searchengin mr-2\"></i><span class=\"font-weight-light\">Trouvez votre</span> tournoi ou festival
  95.                 </h1>
  96.                 <!-- Text -->
  97.                 <p class=\"lead text-muted mt-4\">
  98.                     Recherchez parmi tous les tournois et festivals de notre site.
  99.                 </p>
  100.             </div>
  101.         </div>
  102.     </div>
  103. </section>
  104. ";
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.     }
  110.     // line 33
  111.     public function block_body($context, array $blocks = [])
  112.     {
  113.         $macros $this->macros;
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  118.         // line 34
  119.         echo "<main>
  120.     <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  121.         <div id=\"spaces-container\" class=\"container\">
  122.             <div class=\"row justify-content-center mb-3\">
  123.                 <div class=\"col-12\">
  124.                     ";
  125.         // line 39
  126.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'39$this->source); })()), 'form_start', ["attr" => ["class" => "row justify-content-center"]]);
  127.         echo "
  128.                     <div class=\"col-12 col-lg-4\">
  129.                         <div class=\"form-group mb-lg-0\">
  130.                             <div class=\"input-group input-group-lg mb-lg-0\">
  131.                                 <div class=\"input-group-prepend\">
  132.                                     <span class=\"input-group-text\"><i class=\"fas fa-search-location\"></i></span>
  133.                                 </div>
  134.                                 ";
  135.         // line 46
  136.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'46$this->source); })()), "location", [], "any"falsefalsefalse46), 'widget', ["attr" => ["class" => "form-control autocomplete""placeholder" => "Ville""onFocus" => "geolocate()"]]);
  137.         echo "
  138.                             </div>
  139.                             ";
  140.         // line 49
  141.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'49$this->source); })()), "locationhidden", [], "any"falsefalsefalse49), 'widget');
  142.         echo "
  143.                             ";
  144.         // line 50
  145.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'50$this->source); })()), "placeid", [], "any"falsefalsefalse50), 'widget');
  146.         echo "
  147.                         </div>
  148.                     </div>
  149.                     <div class=\"col-12 col-lg-3\">
  150.                         <div class=\"input-group input-group-lg mb-3 mb-lg-0\">
  151.                             <div class=\"input-group-prepend\">
  152.                                 <span class=\"input-group-text\"><i class=\"far fa-calendar-alt\"></i></span>
  153.                             </div>
  154.                             ";
  155.         // line 58
  156.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'58$this->source); })()), "date", [], "any"falsefalsefalse58), 'widget', ["attr" => ["class" => "form-control datepicker""placeholder" => "Date""data-date-format" => "dd/mm/yyyy"]]);
  157.         echo "
  158.                             <!--<input class=\"form-control datepicker\" placeholder=\"Select date\" type=\"text\" required>-->
  159.                         </div>
  160.                     </div>
  161.                     <div class=\"col-12 col-lg-2\">
  162.                         ";
  163.         // line 63
  164.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'63$this->source); })()), "search", [], "any"falsefalsefalse63), 'widget', ["attr" => ["class" => "btn btn-lg btn-primary btn-block mt-3 mt-md-0 animate-up-2"]]);
  165.         echo "
  166.                         <!--<button class=\"btn btn-lg btn-primary btn-block mt-3 mt-md-0 animate-up-2\" type=\"submit\">Find a desk</button>-->
  167.                     </div>
  168.                 </div>
  169.             </div>
  170.             <div class=\"row justify-content-center\">
  171.                 <div class=\"col-12 col-lg-9 order-lg-1\">
  172.                     <div class=\"justify-content-between align-items-center d-flex\">
  173.                         <div class=\"mr-3\">
  174.                             <p class=\"mb-0 font-small\">
  175.                                 Nombre de résultats : ";
  176.         // line 74
  177.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'74$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse74), "html"nulltrue);
  178.         echo "
  179.                             </p>
  180.                         </div>
  181.                         <div class=\"\">
  182.                             <div class=\"input-group input-group-sm\">
  183.                                 <div class=\"input-group-prepend form-control-sm\">
  184.                                     <span class=\"input-group-text form-control-sm\"><i class=\"fas fa-route\"></i></span>
  185.                                     ";
  186.         // line 81
  187.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'81$this->source); })()), "distance", [], "any"falsefalsefalse81), 'widget', ["attr" => ["class" => "form-control-sm font-small""onchange" => "this.form.submit()"]]);
  188.         echo "
  189.                                 </div>
  190.                             </div>
  191.                         </div>    
  192.                     </div>
  193.                     ";
  194.         // line 86
  195.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formsearch"]) || array_key_exists("formsearch"$context) ? $context["formsearch"] : (function () { throw new RuntimeError('Variable "formsearch" does not exist.'86$this->source); })()), 'form_end');
  196.         echo "
  197.                     <div class=\"tab-content mt-4 mt-lg-4 \" id=\"tabcontentexample-5\">
  198.                         <div class=\"tab-pane fade show active\" id=\"link-example-13\" role=\"tabpanel\" aria-labelledby=\"tab-link-example-13\">
  199.                             ";
  200.         // line 89
  201.         $context['_parent'] = $context;
  202.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'89$this->source); })()));
  203.         foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
  204.             // line 90
  205.             echo "                            ";
  206.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFEditionController::ShowListView", ["id" => twig_get_attribute($this->env$this->source$context["bfedition"], "id", [], "any"falsefalsefalse90)]));
  207.             echo "
  208.                             ";
  209.         }
  210.         $_parent $context['_parent'];
  211.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfedition'], $context['_parent'], $context['loop']);
  212.         $context array_intersect_key($context$_parent) + $_parent;
  213.         // line 92
  214.         echo "                        </div>
  215.                     </div>
  216.                     ";
  217.         // line 94
  218.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'94$this->source); })()));
  219.         echo "
  220.                 </div>
  221.             </div>
  222.         </div>
  223.     </div>
  224. </main>
  225. <script>
  226.     var placeSearch, autocompleteinput;
  227.     var input = document.getElementById('festival_search_with_distance_location');
  228.     var componentForm = {
  229.         street_number: 'short_name',
  230.         route: 'long_name',
  231.         locality: 'long_name',
  232.         administrative_area_level_1: 'short_name',
  233.         country: 'long_name',
  234.         postal_code: 'short_name'
  235.     };
  236.     function initAutocomplete() {
  237.         google.maps.event.addDomListener(input, 'blur', function() {
  238.             if (jQuery('.pac-item:hover').length === 0) {
  239.                 google.maps.event.trigger(this, 'focus', {});
  240.                 google.maps.event.trigger(this, 'keydown', {
  241.                     keyCode: 13
  242.                 });
  243.             }
  244.         })
  245.         // Create the autocomplete object, restricting the search to geographical
  246.         // location types.
  247.         autocompleteinput = new google.maps.places.Autocomplete(
  248.             /** @type {!HTMLInputElement} */
  249.             (input), {
  250.                 types: ['geocode']
  251.             });
  252.         // When the user selects an address from the dropdown, populate the address
  253.         // fields in the form.
  254.         autocompleteinput.addListener('place_changed', fillInAddress);
  255.     }
  256.     function fillInAddress() {
  257.         // Get the place details from the autocomplete object.
  258.         var place = autocompleteinput.getPlace();
  259.         if (place != null && place.place_id) {
  260.             //fill the hidden data
  261.             document.getElementById('festival_search_with_distance_locationhidden').setAttribute('value', document.getElementById('festival_search_with_distance_location').value)
  262.             document.getElementById('festival_search_with_distance_placeid').setAttribute('value', place.place_id)
  263.         }
  264.     }
  265. </script>
  266. <script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyArRqV6iNkruffZtVT2G0iX4kfemd1SQD4&libraries=places&callback=initAutocomplete&sessiontoken=";
  267.         // line 156
  268.         echo twig_escape_filter($this->env, (isset($context["uuid"]) || array_key_exists("uuid"$context) ? $context["uuid"] : (function () { throw new RuntimeError('Variable "uuid" does not exist.'156$this->source); })()), "html"nulltrue);
  269.         echo "\" async defer></script>
  270. ";
  271.         
  272.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  273.         
  274.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  275.     }
  276.     public function getTemplateName()
  277.     {
  278.         return "homesearch.html.twig";
  279.     }
  280.     public function isTraitable()
  281.     {
  282.         return false;
  283.     }
  284.     public function getDebugInfo()
  285.     {
  286.         return array (  309 => 156,  244 => 94,  240 => 92,  231 => 90,  227 => 89,  221 => 86,  213 => 81,  203 => 74,  189 => 63,  181 => 58,  170 => 50,  166 => 49,  160 => 46,  150 => 39,  143 => 34,  133 => 33,  106 => 15,  97 => 9,  92 => 7,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  287.     }
  288.     public function getSourceContext()
  289.     {
  290.         return new Source("{% extends 'base.html.twig' %}
  291. {% block title %}- Recherche{% endblock %}
  292. {% block headersection %}
  293. <div class=\"fixed-top\">
  294.     {{ include('flashmessages/flashmessages.html.twig') }}
  295. </div>
  296. <section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
  297.     <div class=\"container\">
  298.         <div class=\"row justify-content-center\">
  299.             <div class=\"col-12\">
  300.                 <nav aria-label=\"breadcrumb\">
  301.                     <ol class=\"breadcrumb breadcrumb-transparent\">
  302.                         <li class=\"breadcrumb-item\"><a href=\"{{ path('home', {}, relative = false) }}\">Accueil</a></li>
  303.                         <li class=\"breadcrumb-item active\">Recherche</li>
  304.                     </ol>
  305.                 </nav>
  306.                 <!-- Heading -->
  307.                 <h1 class=\"display-2\">
  308.                     <i class=\"fab fa-searchengin mr-2\"></i><span class=\"font-weight-light\">Trouvez votre</span> tournoi ou festival
  309.                 </h1>
  310.                 <!-- Text -->
  311.                 <p class=\"lead text-muted mt-4\">
  312.                     Recherchez parmi tous les tournois et festivals de notre site.
  313.                 </p>
  314.             </div>
  315.         </div>
  316.     </div>
  317. </section>
  318. {%endblock%}
  319. {%block body%}
  320. <main>
  321.     <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  322.         <div id=\"spaces-container\" class=\"container\">
  323.             <div class=\"row justify-content-center mb-3\">
  324.                 <div class=\"col-12\">
  325.                     {{ form_start(formsearch, { 'attr': {'class': 'row justify-content-center'} }) }}
  326.                     <div class=\"col-12 col-lg-4\">
  327.                         <div class=\"form-group mb-lg-0\">
  328.                             <div class=\"input-group input-group-lg mb-lg-0\">
  329.                                 <div class=\"input-group-prepend\">
  330.                                     <span class=\"input-group-text\"><i class=\"fas fa-search-location\"></i></span>
  331.                                 </div>
  332.                                 {{ form_widget(formsearch.location, {'attr': {'class': 'form-control autocomplete', 'placeholder': 'Ville', 'onFocus' : 'geolocate()' }}) }}
  333.                             </div>
  334.                             {{ form_widget(formsearch.locationhidden)}}
  335.                             {{ form_widget(formsearch.placeid)}}
  336.                         </div>
  337.                     </div>
  338.                     <div class=\"col-12 col-lg-3\">
  339.                         <div class=\"input-group input-group-lg mb-3 mb-lg-0\">
  340.                             <div class=\"input-group-prepend\">
  341.                                 <span class=\"input-group-text\"><i class=\"far fa-calendar-alt\"></i></span>
  342.                             </div>
  343.                             {{ form_widget(formsearch.date, {'attr': {'class': 'form-control datepicker', 'placeholder': 'Date', 'data-date-format':'dd/mm/yyyy'}}) }}
  344.                             <!--<input class=\"form-control datepicker\" placeholder=\"Select date\" type=\"text\" required>-->
  345.                         </div>
  346.                     </div>
  347.                     <div class=\"col-12 col-lg-2\">
  348.                         {{ form_widget(formsearch.search, {'attr': {'class': 'btn btn-lg btn-primary btn-block mt-3 mt-md-0 animate-up-2' }} ) }}
  349.                         <!--<button class=\"btn btn-lg btn-primary btn-block mt-3 mt-md-0 animate-up-2\" type=\"submit\">Find a desk</button>-->
  350.                     </div>
  351.                 </div>
  352.             </div>
  353.             <div class=\"row justify-content-center\">
  354.                 <div class=\"col-12 col-lg-9 order-lg-1\">
  355.                     <div class=\"justify-content-between align-items-center d-flex\">
  356.                         <div class=\"mr-3\">
  357.                             <p class=\"mb-0 font-small\">
  358.                                 Nombre de résultats : {{ pagination.getTotalItemCount }}
  359.                             </p>
  360.                         </div>
  361.                         <div class=\"\">
  362.                             <div class=\"input-group input-group-sm\">
  363.                                 <div class=\"input-group-prepend form-control-sm\">
  364.                                     <span class=\"input-group-text form-control-sm\"><i class=\"fas fa-route\"></i></span>
  365.                                     {{ form_widget(formsearch.distance, {'attr': {'class': 'form-control-sm font-small', 'onchange':'this.form.submit()'}}) }}
  366.                                 </div>
  367.                             </div>
  368.                         </div>    
  369.                     </div>
  370.                     {{form_end(formsearch)}}
  371.                     <div class=\"tab-content mt-4 mt-lg-4 \" id=\"tabcontentexample-5\">
  372.                         <div class=\"tab-pane fade show active\" id=\"link-example-13\" role=\"tabpanel\" aria-labelledby=\"tab-link-example-13\">
  373.                             {% for bfedition in pagination %}
  374.                             {{ render(controller('App\\\\Controller\\\\BFEditionController::ShowListView', {id:bfedition.id})) }}
  375.                             {%endfor%}
  376.                         </div>
  377.                     </div>
  378.                     {{ knp_pagination_render(pagination) }}
  379.                 </div>
  380.             </div>
  381.         </div>
  382.     </div>
  383. </main>
  384. <script>
  385.     var placeSearch, autocompleteinput;
  386.     var input = document.getElementById('festival_search_with_distance_location');
  387.     var componentForm = {
  388.         street_number: 'short_name',
  389.         route: 'long_name',
  390.         locality: 'long_name',
  391.         administrative_area_level_1: 'short_name',
  392.         country: 'long_name',
  393.         postal_code: 'short_name'
  394.     };
  395.     function initAutocomplete() {
  396.         google.maps.event.addDomListener(input, 'blur', function() {
  397.             if (jQuery('.pac-item:hover').length === 0) {
  398.                 google.maps.event.trigger(this, 'focus', {});
  399.                 google.maps.event.trigger(this, 'keydown', {
  400.                     keyCode: 13
  401.                 });
  402.             }
  403.         })
  404.         // Create the autocomplete object, restricting the search to geographical
  405.         // location types.
  406.         autocompleteinput = new google.maps.places.Autocomplete(
  407.             /** @type {!HTMLInputElement} */
  408.             (input), {
  409.                 types: ['geocode']
  410.             });
  411.         // When the user selects an address from the dropdown, populate the address
  412.         // fields in the form.
  413.         autocompleteinput.addListener('place_changed', fillInAddress);
  414.     }
  415.     function fillInAddress() {
  416.         // Get the place details from the autocomplete object.
  417.         var place = autocompleteinput.getPlace();
  418.         if (place != null && place.place_id) {
  419.             //fill the hidden data
  420.             document.getElementById('festival_search_with_distance_locationhidden').setAttribute('value', document.getElementById('festival_search_with_distance_location').value)
  421.             document.getElementById('festival_search_with_distance_placeid').setAttribute('value', place.place_id)
  422.         }
  423.     }
  424. </script>
  425. <script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyArRqV6iNkruffZtVT2G0iX4kfemd1SQD4&libraries=places&callback=initAutocomplete&sessiontoken={{uuid}}\" async defer></script>
  426. {%endblock%}
  427. ""homesearch.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/homesearch.html.twig");
  428.     }
  429. }