templates/front/hunts.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Nos chasses{% endblock %}
  3. {% block bodyClass %}page-hunter{% endblock %}
  4. {% block meta %}
  5.     <script type="text/javascript">
  6.         let map;
  7.         // initMap('map', {lat: 46.603354, lng: 1.8883335});
  8.         function initMap(map_id = 'map', position = {lat: 46.603354, lng: 1.8883335}) {
  9.             map = new google.maps.Map(document.getElementById(map_id), {
  10.                 center: {
  11.                     lat: position.lat,
  12.                     lng: position.lng,
  13.                 },
  14.                 zoom: 6,
  15.                 styles: [
  16.                     {
  17.                         "featureType": "poi",
  18.                         "stylers": [
  19.                             {"visibility": "off"}
  20.                         ]
  21.                     }
  22.                 ],
  23.                 zoomControlOptions: {
  24.                     position: google.maps.ControlPosition.TOP_RIGHT
  25.                 },
  26.             });
  27.             var markers = {{ mapOffers|json_encode|raw }};
  28.             if (markers.length > 0) {
  29.                 createMarkers(markers, map);
  30.             }
  31.         }
  32.         function getRandomInt(max) {
  33.             return Math.floor(Math.random() * max);
  34.         }
  35.         function createMarkers(markers, map) {
  36.             let previousInfowindow = false;
  37.             const image = "{{ url('homepage') ~ '/build/images/map_marker.png' }}";
  38.             var bounds = new google.maps.LatLngBounds();
  39.             var clusterMarkers = [];
  40.             $.each(markers, function (index, element) {
  41.                 if (element.latitude === null || element.longitude === null) {
  42.                     return;
  43.                 }
  44.                 var latitude = parseFloat(element.latitude) + getRandomInt(25) / 1000;
  45.                 var longitude = parseFloat(element.longitude) + getRandomInt(25) / 1000;
  46.                 const marker = new google.maps.Marker({
  47.                     position: {lat: parseFloat(latitude), lng: parseFloat(longitude)},
  48.                     map,
  49.                     icon: image,
  50.                     offerId: element.offerId
  51.                 });
  52.                 clusterMarkers.push(marker);
  53.                 if ($(window).width() >= 991) {
  54.                     bounds.extend({lat: parseFloat(latitude), lng: parseFloat(longitude)});
  55.                 }
  56.                 marker.addListener('click', function () {
  57.                     showInfoWindow(this);
  58.                 });
  59.                // map.addListener('click', function (e) {
  60.                //     if (window.innerWidth > 991) {
  61.                //         if (e.pixel.y >= 58 && e.pixel.y <= 140) {
  62.                //             $('.map_marker_show').html('');
  63.                //         }
  64.                //     } else {
  65.                //         if (e.pixel.y >= 165 && e.pixel.y <= 205) {
  66.                //             $('.map_marker_show').html('');
  67.                //         }
  68.                //     }
  69.                // })
  70.                 var url = Routing.generate('google_maps_marker_show', {id: marker.offerId});
  71.                 $.ajax({
  72.                     url: url,
  73.                     success: function (html) {
  74.                         const infowindow = new google.maps.InfoWindow({
  75.                             content: html,
  76.                         });
  77.                         marker.addListener("click", () => {
  78.                             if (previousInfowindow) {
  79.                                 previousInfowindow.close();
  80.                             }
  81.                             infowindow.open({
  82.                                 anchor: marker,
  83.                                 map,
  84.                             });
  85.                             previousInfowindow = infowindow;
  86.                         });
  87.                     }
  88.                 });
  89.             });
  90.             if ($(window).width() >= 991) {
  91.                 if (markers.length === 1) {
  92.                   //  map.setZoom(3);
  93.                     if (markers[0].latitude !== null && markers[0].longitude !== null) {
  94.                         bounds.extend({lat: parseFloat(markers[0].latitude) - 0.2, lng: parseFloat(markers[0].longitude) - 0.2});
  95.                         bounds.extend({lat: parseFloat(markers[0].latitude) + 0.2, lng: parseFloat(markers[0].longitude) + 0.2});
  96.                         map.fitBounds(bounds);
  97.                     } else {
  98.                         map.setZoom(6);
  99.                         map.setCenter({lat: 46.603354, lng: 1.8883335});
  100.                     }
  101.                 } else {
  102.                     map.fitBounds(bounds);
  103.                 }
  104.             }
  105.             var cluster = new MarkerClusterer(map, clusterMarkers, {
  106.                 imagePath: "https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",
  107.             });
  108.         }
  109.         function showInfoWindow(marker) {
  110.         }
  111.     </script>
  112.     <script defer src="https://maps.googleapis.com/maps/api/js?key={{ 'maps_key'|getGlobalParameter }}&libraries=places&v=weekly&callback=initMap"></script>
  113.     <script src="https://unpkg.com/@google/markerclustererplus@5.1.0/dist/markerclustererplus.min.js"></script>
  114. {% endblock %}
  115. {% block body %}
  116.     <style>
  117.         .main.nos_chasses .data .list .header a .home-card-image {
  118.             height: 100% !important;
  119.         }
  120.     </style>
  121.     <div class="main nos_chasses">
  122.         <div class="data" style="z-index: 0">
  123.             <div class="mobile_integ">
  124.                 <div class="header">
  125.                     <h1>Nos chasses</h1>
  126.                     <a href="#" class="toogle desk"><span class="active">Carte</span><span>Liste</span></a>
  127.                 </div>
  128.                 <div id="desktop_search">
  129.                     {{ form_start(formDesktop, {attr: {action: path('hunt_search')}}) }}
  130.                     <div class="last-1">
  131.                         <div class="line-1 toUpdate">
  132.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="region"
  133.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
  134.                                     Régions </label>
  135.                                 <p id="regions_search_label"></p><span></span>
  136.                             </a>
  137.                             <div class="form dropdown-menu" aria-labelledby="departement"
  138.                                  data-popper-placement="bottom-start">
  139.                                 {{ form_widget(formDesktop.region, {'attr': {'placeholder': 'Régions'} }) }}
  140.                             </div>
  141.                         </div>
  142.                         <div class="line-1 toUpdate">
  143.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="regionmod"
  144.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
  145.                                     Modes de chasse </label>
  146.                                 <p></p><span></span>
  147.                             </a>
  148.                             <div class="form dropdown-menu" aria-labelledby="departement"
  149.                                  data-popper-placement="bottom-start">
  150.                                 {{ form_widget(formDesktop.huntingMode, {'attr': {'placeholder': 'Modes de chasse'} }) }}
  151.                             </div>
  152.                         </div>
  153.                         <ul class="search">
  154.                             <li>
  155.                                 <label> Dates </label>
  156.                                 {{ form_widget(formDesktop.dates) }}
  157.                             </li>
  158.                         </ul>
  159.                     </div>
  160.                     <div class="line-filter">
  161.                         <div class="line-1 toUpdate">
  162.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="departement"
  163.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
  164.                                 Département <span></span>
  165.                             </a>
  166.                             <div class="form dropdown-menu" aria-labelledby="departement"
  167.                                  data-popper-placement="bottom-start">
  168.                                 {{ form_widget(formDesktop.departement, {'attr': {'placeholder': 'Département'} }) }}
  169.                             </div>
  170.                         </div>
  171.                         <div class="line-1 toUpdate">
  172.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="offerType"
  173.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
  174.                                 Type d'offre <span></span>
  175.                             </a>
  176.                             <div class="form dropdown-menu" aria-labelledby="departement"
  177.                                  data-popper-placement="bottom-start">
  178.                                 {{ form_widget(formDesktop.type, {'attr': {'placeholder': "Type d'offre"} }) }}
  179.                             </div>
  180.                         </div>
  181.                         <div class="line-1 toUpdate">
  182.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="gibierType"
  183.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
  184.                                 Type de gibier <span></span>
  185.                             </a>
  186.                             <div class="form dropdown-menu" aria-labelledby="departement"
  187.                                  data-popper-placement="bottom-start">
  188.                                 {{ form_widget(formDesktop.gibier, {'attr': {'placeholder': "Type de gibier"} }) }}
  189.                             </div>
  190.                         </div>
  191.                         <div class="line-1 toUpdate">
  192.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="typedanimal"
  193.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
  194.                                 Animal <span></span>
  195.                             </a>
  196.                             <div class="form dropdown-menu" aria-labelledby="typedanimal"
  197.                                  data-popper-placement="bottom-start">
  198.                                 {{ form_widget(formDesktop.animals) }}
  199.                             </div>
  200.                         </div>
  201.                         <div class="line-1 toUpdate">
  202.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="typedarmes"
  203.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
  204.                                 Type d'arme <span></span>
  205.                             </a>
  206.                             <div class="form dropdown-menu" aria-labelledby="typedarmes"
  207.                                  data-popper-placement="bottom-start">
  208.                                 {{ form_widget(formDesktop.weapons) }}
  209.                             </div>
  210.                         </div>
  211.                         <div class="line-1 toUpdatePrice">
  212.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="typeprix"
  213.                                data-bs-toggle="dropdown" aria-expanded="true">Prix <span></span></a>
  214.                             <div class="form dropdown-menu pri" aria-labelledby="typeprix"
  215.                                  data-popper-placement="bottom-start">
  216.                                 <!--<div id="flat-slider"></div>-->
  217.                                 <div class="prices">
  218.                                     <div>
  219.                                         <label> Prix minimum </label>
  220.                                         {{ form_widget(formDesktop.priceMin) }}
  221.                                     </div>
  222.                                     <div>
  223.                                         <label> Prix maximum </label>
  224.                                         {{ form_widget(formDesktop.priceMax) }}
  225.                                     </div>
  226.                                 </div>
  227.                                 <button class="valid-btn" type="button"> Valider</button>
  228.                             </div>
  229.                         </div>
  230.                     </div>
  231.                     <div class="footer-sidebar">
  232.                         {{ form_widget(formDesktop.save) }}
  233.                         <a href="{{ path('our_hunts') }}" class="btn-default btn linkerr"> Tout effacer </a>
  234.                     </div>
  235.                     <div class="flow dee">
  236.                         {% set count = app.request.get('page', 1)*limit %}
  237.                         {% if pagination.getTotalItemCount > 0 %}
  238.                             <div class="number_annonces"><span
  239.                                         class="current-page"> {{ ((app.request.get('page', 1)-1)*limit)+1 }} </span> -
  240.                                 <span
  241.                                         class="shower-perpage"> {% if pagination.getTotalItemCount > limit %}{{ count }}{% else %}{{ pagination.getTotalItemCount }}{% endif %} </span>
  242.                                 sur <span class="nbr-total"> {{ pagination.getTotalItemCount }} </span> annonces
  243.                             </div>
  244.                         {% endif %}
  245.                         <div class="asc_desc">
  246.                             <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink1"
  247.                                data-bs-toggle="dropdown" aria-expanded="false">
  248.                                 Trier par
  249.                                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  250.                                     <path data-name="Tracé 84"
  251.                                           d="m90.941 243.919-1.563 1.633v-10.913a1.1 1.1 0 0 0-1.069-1.117 1.078 1.078 0 0 0-1.069 1.117v10.912l-1.563-1.632a1.044 1.044 0 0 0-1.508 0 1.16 1.16 0 0 0 0 1.575l3.4 3.551a1.012 1.012 0 0 0 .74.315 1.085 1.085 0 0 0 .74-.315l3.373-3.523a1.16 1.16 0 0 0 0-1.575.989.989 0 0 0-1.481-.029z"
  252.                                           transform="translate(-81.069 -229.428)" style="fill: #1db3a3;"/>
  253.                                     <path data-name="Tracé 85"
  254.                                           d="m443.009 20.535-3.4-3.551a1.043 1.043 0 0 0-1.508 0l-3.373 3.551a1.16 1.16 0 0 0 0 1.575 1.044 1.044 0 0 0 1.508 0l1.563-1.633v10.912a1.07 1.07 0 1 0 2.139 0V20.477l1.562 1.633a1.012 1.012 0 0 0 .74.315 1.085 1.085 0 0 0 .74-.315 1.134 1.134 0 0 0 .027-1.575z"
  255.                                           transform="translate(-422.084 -12.574)" style="fill: #1db3a3;"/>
  256.                                 </svg>
  257.                             </a>
  258.                             <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink1">
  259.                                 <li data-sort="pertinance"><a
  260.                                             class="dropdown-item sort {% if order == 'isTuchassouSelected' %}active{% endif %}"
  261.                                             href="#" data-order="isTuchassouSelected" data-sort="DESC"> Pertinence</a>
  262.                                 </li>
  263.                                 <li data-sort="price-asc"><a
  264.                                             class="dropdown-item sort {% if order == 'price' and sort == 'ASC' %}active{% endif %}"
  265.                                             href="#" data-order="price" data-sort="ASC"> Prix croissant </a></li>
  266.                                 <li data-sort="price-desc"><a
  267.                                             class="dropdown-item sort {% if order == 'price' and sort == 'DESC' %}active{% endif %}"
  268.                                             href="#" data-order="price" data-sort="DESC"> Prix décroissant </a></li>
  269.                                 <li data-sort=""><a
  270.                                             class="dropdown-item sort {% if order == 'createdAt' and sort == 'DESC' %}active{% endif %}"
  271.                                             href="#" data-order="createdAt" data-sort="DESC"> Plus récent </a></li>
  272.                                 <li data-sort=""><a
  273.                                             class="dropdown-item sort {% if order == 'createdAt' and sort == 'ASC' %}active{% endif %}"
  274.                                             href="#" data-order="createdAt" data-sort="ASC"> Plus ancien </a></li>
  275.                             </ul>
  276.                         </div>
  277.                     </div>
  278.                     {{ form_end(formDesktop) }}
  279.                 </div>
  280.                 <div id="mobile_search" style="display: none;">
  281.                     {{ form_start(formMobile, {attr: {action: path('hunt_search')}}) }}
  282.                     <div class="last-1 last-m">
  283.                         <div class="line-1 toUpdate">
  284.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="region"
  285.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
  286.                                     Régions </label>
  287.                                 <p></p><span></span>
  288.                             </a>
  289.                             <div class="form dropdown-menu" aria-labelledby="departement"
  290.                                  data-popper-placement="bottom-start">
  291.                                 {{ form_widget(formMobile.region, {'attr': {'placeholder': 'Régions'} }) }}
  292.                             </div>
  293.                         </div>
  294.                         <div class="line-1 toUpdate">
  295.                             <a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="regionmod"
  296.                                data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
  297.                                     Modes de chasse </label>
  298.                                 <p></p><span></span>
  299.                             </a>
  300.                             <div class="form dropdown-menu" aria-labelledby="departement"
  301.                                  data-popper-placement="bottom-start">
  302.                                 {{ form_widget(formMobile.huntingMode, {'attr': {'placeholder': 'Modes de chasse'} }) }}
  303.                             </div>
  304.                         </div>
  305.                         <div class="ligne-1">
  306.                             <button type="submit" id="search_form_save_" name="search_form[save]"
  307.                                     class="btn-primary btn">Appliquer
  308.                             </button>
  309.                         </div>
  310.                     </div>
  311.                     <div class="flow">
  312.                         <div id="sidebar-btn">
  313.                             <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="">
  314.                                 <g data-name="icons Q2">
  315.                                     <path data-name="Tracé 11"
  316.                                           d="M19.19 2.031H8.986A3.147 3.147 0 0 0 6.092 0a3.046 3.046 0 0 0-2.843 2.031H1.117A1.066 1.066 0 0 0 0 3.046a1.066 1.066 0 0 0 1.117 1.015h2.132a3.046 3.046 0 0 0 2.843 2.031 3.147 3.147 0 0 0 2.894-2.031h10.2a1.066 1.066 0 0 0 1.117-1.015 1.066 1.066 0 0 0-1.113-1.015zM6.092 4.061a1.015 1.015 0 1 1 1.015-1.015 1.015 1.015 0 0 1-1.015 1.015z"
  317.                                           style="fill: #1db3a3;" transform="rotate(-90 12.223 10.16)"/>
  318.                                     <path data-name="Tracé 12"
  319.                                           d="M19.088 2.031h-2.081A3.147 3.147 0 0 0 14.113 0a3.046 3.046 0 0 0-2.843 2.031H1.015a1.015 1.015 0 1 0 0 2.031H11.27a3.046 3.046 0 0 0 2.843 2.031 3.147 3.147 0 0 0 2.894-2.031h2.081a1.015 1.015 0 1 0 0-2.031zm-4.975 2.03a1.015 1.015 0 1 1 1.015-1.015 1.015 1.015 0 0 1-1.015 1.015z"
  320.                                           transform="rotate(-90 15.726 6.555)" style="fill: #1db3a3;"/>
  321.                                     <path data-name="Tracé 13"
  322.                                           d="M19.088 2.031h-8.681A3.147 3.147 0 0 0 7.513 0 3.046 3.046 0 0 0 4.67 2.031H1.015a1.015 1.015 0 0 0 0 2.031H4.67a3.046 3.046 0 0 0 2.843 2.03 3.148 3.148 0 0 0 2.894-2.031h8.681a1.015 1.015 0 0 0 0-2.031zM7.513 4.061a1.015 1.015 0 1 1 1.016-1.015 1.015 1.015 0 0 1-1.016 1.015z"
  323.                                           transform="rotate(-90 19.279 3.002)" style="fill: #1db3a3;"/>
  324.                                 </g>
  325.                             </svg>
  326.                             Filtres
  327.                             <span> </span>
  328.                         </div>
  329.                         <div class="asc_desc">
  330.                             <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink1"
  331.                                data-bs-toggle="dropdown" aria-expanded="false">
  332.                                 Trier par
  333.                                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  334.                                     <path data-name="Tracé 84"
  335.                                           d="m90.941 243.919-1.563 1.633v-10.913a1.1 1.1 0 0 0-1.069-1.117 1.078 1.078 0 0 0-1.069 1.117v10.912l-1.563-1.632a1.044 1.044 0 0 0-1.508 0 1.16 1.16 0 0 0 0 1.575l3.4 3.551a1.012 1.012 0 0 0 .74.315 1.085 1.085 0 0 0 .74-.315l3.373-3.523a1.16 1.16 0 0 0 0-1.575.989.989 0 0 0-1.481-.029z"
  336.                                           transform="translate(-81.069 -229.428)" style="fill: #1db3a3;"/>
  337.                                     <path data-name="Tracé 85"
  338.                                           d="m443.009 20.535-3.4-3.551a1.043 1.043 0 0 0-1.508 0l-3.373 3.551a1.16 1.16 0 0 0 0 1.575 1.044 1.044 0 0 0 1.508 0l1.563-1.633v10.912a1.07 1.07 0 1 0 2.139 0V20.477l1.562 1.633a1.012 1.012 0 0 0 .74.315 1.085 1.085 0 0 0 .74-.315 1.134 1.134 0 0 0 .027-1.575z"
  339.                                           transform="translate(-422.084 -12.574)" style="fill: #1db3a3;"/>
  340.                                 </svg>
  341.                             </a>
  342.                             <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink1">
  343.                                 <li data-sort="pertinance"><a
  344.                                             class="dropdown-item sort {% if order == 'isTuchassouSelected' %}active{% endif %}"
  345.                                             href="#" data-order="isTuchassouSelected" data-sort="DESC"> Pertinence</a>
  346.                                 </li>
  347.                                 <li data-sort="price-asc"><a
  348.                                             class="dropdown-item sort {% if order == 'price' and sort == 'ASC' %}active{% endif %}"
  349.                                             href="#" data-order="price" data-sort="ASC"> Prix croissant </a></li>
  350.                                 <li data-sort="price-desc"><a
  351.                                             class="dropdown-item sort {% if order == 'price' and sort == 'DESC' %}active{% endif %}"
  352.                                             href="#" data-order="price" data-sort="DESC"> Prix décroissant </a></li>
  353.                                 <li data-sort=""><a
  354.                                             class="dropdown-item sort {% if order == 'createdAt' and sort == 'DESC' %}active{% endif %}"
  355.                                             href="#" data-order="createdAt" data-sort="DESC"> Plus récent </a></li>
  356.                                 <li data-sort=""><a
  357.                                             class="dropdown-item sort {% if order == 'createdAt' and sort == 'ASC' %}active{% endif %}"
  358.                                             href="#" data-order="createdAt" data-sort="ASC"> Plus ancien </a></li>
  359.                             </ul>
  360.                         </div>
  361.                     </div>
  362.                     <div id="sidebar">
  363.                         <div class="headline">
  364.                             <a href="#" class="back">
  365.                                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  366.                                     <path data-name=""
  367.                                           d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  368.                                           transform="translate(-213.866 -149.485)"
  369.                                           style="fill:#172a3b;fill-rule:evenodd"/>
  370.                                 </svg>
  371.                                 Filtres
  372.                             </a>
  373.                         </div>
  374.                         <ul id="sidebar-mobile-menu">
  375.                             <li><a class="d"> Dates <span class="val"> </span></a></li>
  376.                             <li><a class="de"> Département <span class="val"> </span></a></li>
  377.                             <li><a class="to"> Type d'offre <span class="val"> </span></a></li>
  378.                             <li><a class="tl"> Type de gibier <span class="val"> </span> </a></li>
  379.                             <li><a class="aa"> Animal <span class="val"> </span></a></li>
  380.                             <li><a class="ta"> Type d'arme <span class="val"> </span></a></li>
  381.                             <li><a class="p"> Prix <span class="val"> </span> </a></li>
  382.                         </ul>
  383.                         <div class="modifable">
  384.                             <div id="dates">
  385.                                 <div class="headline">
  386.                                     <a href="#" class="back">
  387.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  388.                                              viewBox="0 0 24 24">
  389.                                             <path data-name=""
  390.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  391.                                                   transform="translate(-213.866 -149.485)"
  392.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  393.                                         </svg>
  394.                                         Dates
  395.                                     </a>
  396.                                 </div>
  397.                                 <div class="form">
  398.                                     {{ form_widget(formMobile.dates, {'attr': {'placeholder': ''} }) }}
  399.                                 </div>
  400.                             </div>
  401.                             <div id="dept">
  402.                                 <div class="headline">
  403.                                     <a href="#" class="back">
  404.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  405.                                              viewBox="0 0 24 24">
  406.                                             <path data-name=""
  407.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  408.                                                   transform="translate(-213.866 -149.485)"
  409.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  410.                                         </svg>
  411.                                         Département
  412.                                     </a>
  413.                                 </div>
  414.                                 <div class="form">
  415.                                     {{ form_widget(formMobile.departement, {'attr': {'placeholder': 'Département '} }) }}
  416.                                 </div>
  417.                             </div>
  418.                             <div id="dept1">
  419.                                 <div class="headline">
  420.                                     <a href="#" class="back">
  421.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  422.                                              viewBox="0 0 24 24">
  423.                                             <path data-name=""
  424.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  425.                                                   transform="translate(-213.866 -149.485)"
  426.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  427.                                         </svg>
  428.                                         Type d'offre
  429.                                     </a>
  430.                                 </div>
  431.                                 <div class="form">
  432.                                     {{ form_widget(formMobile.type) }}
  433.                                 </div>
  434.                             </div>
  435.                             <div id="dept4">
  436.                                 <div class="headline">
  437.                                     <a href="#" class="back">
  438.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  439.                                              viewBox="0 0 24 24">
  440.                                             <path data-name=""
  441.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  442.                                                   transform="translate(-213.866 -149.485)"
  443.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  444.                                         </svg>
  445.                                         Type de gibier
  446.                                     </a>
  447.                                 </div>
  448.                                 <div class="form">
  449.                                     {{ form_widget(formMobile.gibier) }}
  450.                                 </div>
  451.                             </div>
  452.                             <div id="dept5">
  453.                                 <div class="headline">
  454.                                     <a href="#" class="back">
  455.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  456.                                              viewBox="0 0 24 24">
  457.                                             <path data-name=""
  458.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  459.                                                   transform="translate(-213.866 -149.485)"
  460.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  461.                                         </svg>
  462.                                         Animal
  463.                                     </a>
  464.                                 </div>
  465.                                 <div class="form">
  466.                                     {{ form_widget(formMobile.animals) }}
  467.                                 </div>
  468.                             </div>
  469.                             <div id="dept2">
  470.                                 <div class="headline">
  471.                                     <a href="#" class="back">
  472.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  473.                                              viewBox="0 0 24 24">
  474.                                             <path data-name=""
  475.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  476.                                                   transform="translate(-213.866 -149.485)"
  477.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  478.                                         </svg>
  479.                                         Type d'arme
  480.                                     </a>
  481.                                 </div>
  482.                                 <div class="form">
  483.                                     {{ form_widget(formMobile.weapons) }}
  484.                                 </div>
  485.                             </div>
  486.                             <div id="dept_add">
  487.                                 <div class="headline">
  488.                                     <a href="#" class="back">
  489.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  490.                                              viewBox="0 0 24 24">
  491.                                             <path data-name=""
  492.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  493.                                                   transform="translate(-213.866 -149.485)"
  494.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  495.                                         </svg>
  496.                                         Prix
  497.                                     </a>
  498.                                 </div>
  499.                                 <h3>Animal</h3>
  500.                                 <div class="form">
  501.                                 </div>
  502.                             </div>
  503.                             <div id="dept3">
  504.                                 <div class="headline">
  505.                                     <a href="#" class="back">
  506.                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
  507.                                              viewBox="0 0 24 24">
  508.                                             <path data-name=""
  509.                                                   d="M233.218 162.145h-11.907l4.936 4.936a1.014 1.014 0 1 1-1.434 1.434l-6.671-6.671a1.007 1.007 0 0 1 0-1.434l6.671-6.671a1.014 1.014 0 1 1 1.434 1.434l-4.936 4.97h11.907a1 1 0 0 1 0 2z"
  510.                                                   transform="translate(-213.866 -149.485)"
  511.                                                   style="fill:#172a3b;fill-rule:evenodd"/>
  512.                                         </svg>
  513.                                         Prix
  514.                                     </a>
  515.                                 </div>
  516.                                 <h3>Sélectionnez une tranche de prix</h3>
  517.                                 <div class="form resp">
  518.                                     <div id="flat-slider"></div>
  519.                                     <p>Sélectionnez une tranche de prix</p>
  520.                                     <div class="prices">
  521.                                         <div>
  522.                                             <label> Prix minimum </label>
  523.                                             {{ form_widget(formMobile.priceMin) }}
  524.                                         </div>
  525.                                         <div>
  526.                                             <label> Prix maximum </label>
  527.                                             {{ form_widget(formMobile.priceMax) }}
  528.                                         </div>
  529.                                     </div>
  530.                                 </div>
  531.                             </div>
  532.                         </div>
  533.                         <div class="footer-sidebar">
  534.                             <button type="button" id="search_form_save" name="search_form[save]"
  535.                                     class="btn-primary btn">Appliquer
  536.                             </button>
  537.                             <a id="mobile-reset-filter" href="#" class="btn-default btn linkerr"> Tout effacer </a>
  538.                         </div>
  539.                     </div>
  540.                     {{ form_end(formMobile) }}
  541.                 </div>
  542.                 <div class="version-desk">
  543.                     <div class="header">
  544.                         <h1>Nos chasses</h1>
  545.                         <a href="#" class="toogle"><span>Liste</span><span class="active">Carte</span></a>
  546.                     </div>
  547.                     <a href="{{ path('our_hunts') }}" class="btn-default btn"> Tout effacer </a>
  548.                     <ul class="filters_group">
  549.                         <li>{{ pagination.getTotalItemCount }} offres</li>
  550.                         {{ knp_pagination_sortable(pagination, 'Id', 'a.id') }}
  551.                         <li></li>
  552.                     </ul>
  553.                 </div>
  554.                 {% set count = app.request.get('page', 1)*limit %}
  555.                 {% if pagination.getTotalItemCount == 0 %}
  556.                     <div class="number_annonces"><span>0 sur 0 annonces</span></div>
  557.                 {% else %}
  558.                     <div class="number_annonces m"><span
  559.                                 class="current-page"> {{ ((app.request.get('page', 1)-1)*limit)+1 }} </span> - <span
  560.                                 class="shower-perpage"> {% if pagination.getTotalItemCount > limit %}{{ count }}{% else %}{{ pagination.getTotalItemCount }}{% endif %} </span>
  561.                         sur <span class="nbr-total"> {{ pagination.getTotalItemCount }} </span> annonces
  562.                     </div>
  563.                 {% endif %}
  564.                 <ul class="list">
  565.                     {% for offer in pagination %}
  566.                         {% set territory = offer.getterritory() %}
  567.                         <li class="{% if offer.status == 3 %}li-offer-epuise{% endif %}">
  568.                             {{ include('front/hunt/offer_bloc.html.twig') }}
  569.                         </li>
  570.                     {% endfor %}
  571.                 </ul>
  572.                 {{ knp_pagination_render(pagination) }}
  573.             </div>
  574.             <div class="map">
  575.                 {# <div class="map_marker_show"></div> #}
  576.                 <div id="map" style="width: 100%; height: 500px;"></div>
  577.             </div>
  578.         </div>
  579.     </div>
  580. {% endblock %}
  581. {% block javascripts %}
  582.     {{ parent() }}
  583. {% endblock %}