{% extends 'base.html.twig' %}
{% block title %}Nos chasses{% endblock %}
{% block bodyClass %}page-hunter{% endblock %}
{% block meta %}
<script type="text/javascript">
let map;
// initMap('map', {lat: 46.603354, lng: 1.8883335});
function initMap(map_id = 'map', position = {lat: 46.603354, lng: 1.8883335}) {
map = new google.maps.Map(document.getElementById(map_id), {
center: {
lat: position.lat,
lng: position.lng,
},
zoom: 6,
styles: [
{
"featureType": "poi",
"stylers": [
{"visibility": "off"}
]
}
],
zoomControlOptions: {
position: google.maps.ControlPosition.TOP_RIGHT
},
});
var markers = {{ mapOffers|json_encode|raw }};
if (markers.length > 0) {
createMarkers(markers, map);
}
}
function getRandomInt(max) {
return Math.floor(Math.random() * max);
}
function createMarkers(markers, map) {
let previousInfowindow = false;
const image = "{{ url('homepage') ~ '/build/images/map_marker.png' }}";
var bounds = new google.maps.LatLngBounds();
var clusterMarkers = [];
$.each(markers, function (index, element) {
if (element.latitude === null || element.longitude === null) {
return;
}
var latitude = parseFloat(element.latitude) + getRandomInt(25) / 1000;
var longitude = parseFloat(element.longitude) + getRandomInt(25) / 1000;
const marker = new google.maps.Marker({
position: {lat: parseFloat(latitude), lng: parseFloat(longitude)},
map,
icon: image,
offerId: element.offerId
});
clusterMarkers.push(marker);
if ($(window).width() >= 991) {
bounds.extend({lat: parseFloat(latitude), lng: parseFloat(longitude)});
}
marker.addListener('click', function () {
showInfoWindow(this);
});
// map.addListener('click', function (e) {
// if (window.innerWidth > 991) {
// if (e.pixel.y >= 58 && e.pixel.y <= 140) {
// $('.map_marker_show').html('');
// }
// } else {
// if (e.pixel.y >= 165 && e.pixel.y <= 205) {
// $('.map_marker_show').html('');
// }
// }
// })
var url = Routing.generate('google_maps_marker_show', {id: marker.offerId});
$.ajax({
url: url,
success: function (html) {
const infowindow = new google.maps.InfoWindow({
content: html,
});
marker.addListener("click", () => {
if (previousInfowindow) {
previousInfowindow.close();
}
infowindow.open({
anchor: marker,
map,
});
previousInfowindow = infowindow;
});
}
});
});
if ($(window).width() >= 991) {
if (markers.length === 1) {
// map.setZoom(3);
if (markers[0].latitude !== null && markers[0].longitude !== null) {
bounds.extend({lat: parseFloat(markers[0].latitude) - 0.2, lng: parseFloat(markers[0].longitude) - 0.2});
bounds.extend({lat: parseFloat(markers[0].latitude) + 0.2, lng: parseFloat(markers[0].longitude) + 0.2});
map.fitBounds(bounds);
} else {
map.setZoom(6);
map.setCenter({lat: 46.603354, lng: 1.8883335});
}
} else {
map.fitBounds(bounds);
}
}
var cluster = new MarkerClusterer(map, clusterMarkers, {
imagePath: "https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",
});
}
function showInfoWindow(marker) {
}
</script>
<script defer src="https://maps.googleapis.com/maps/api/js?key={{ 'maps_key'|getGlobalParameter }}&libraries=places&v=weekly&callback=initMap"></script>
<script src="https://unpkg.com/@google/markerclustererplus@5.1.0/dist/markerclustererplus.min.js"></script>
{% endblock %}
{% block body %}
<style>
.main.nos_chasses .data .list .header a .home-card-image {
height: 100% !important;
}
</style>
<div class="main nos_chasses">
<div class="data" style="z-index: 0">
<div class="mobile_integ">
<div class="header">
<h1>Nos chasses</h1>
<a href="#" class="toogle desk"><span class="active">Carte</span><span>Liste</span></a>
</div>
<div id="desktop_search">
{{ form_start(formDesktop, {attr: {action: path('hunt_search')}}) }}
<div class="last-1">
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="region"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
Régions </label>
<p id="regions_search_label"></p><span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.region, {'attr': {'placeholder': 'Régions'} }) }}
</div>
</div>
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="regionmod"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
Modes de chasse </label>
<p></p><span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.huntingMode, {'attr': {'placeholder': 'Modes de chasse'} }) }}
</div>
</div>
<ul class="search">
<li>
<label> Dates </label>
{{ form_widget(formDesktop.dates) }}
</li>
</ul>
</div>
<div class="line-filter">
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="departement"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
Département <span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.departement, {'attr': {'placeholder': 'Département'} }) }}
</div>
</div>
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="offerType"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
Type d'offre <span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.type, {'attr': {'placeholder': "Type d'offre"} }) }}
</div>
</div>
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="gibierType"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
Type de gibier <span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.gibier, {'attr': {'placeholder': "Type de gibier"} }) }}
</div>
</div>
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="typedanimal"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
Animal <span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="typedanimal"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.animals) }}
</div>
</div>
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="typedarmes"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside">
Type d'arme <span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="typedarmes"
data-popper-placement="bottom-start">
{{ form_widget(formDesktop.weapons) }}
</div>
</div>
<div class="line-1 toUpdatePrice">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="typeprix"
data-bs-toggle="dropdown" aria-expanded="true">Prix <span></span></a>
<div class="form dropdown-menu pri" aria-labelledby="typeprix"
data-popper-placement="bottom-start">
<!--<div id="flat-slider"></div>-->
<div class="prices">
<div>
<label> Prix minimum </label>
{{ form_widget(formDesktop.priceMin) }}
</div>
<div>
<label> Prix maximum </label>
{{ form_widget(formDesktop.priceMax) }}
</div>
</div>
<button class="valid-btn" type="button"> Valider</button>
</div>
</div>
</div>
<div class="footer-sidebar">
{{ form_widget(formDesktop.save) }}
<a href="{{ path('our_hunts') }}" class="btn-default btn linkerr"> Tout effacer </a>
</div>
<div class="flow dee">
{% set count = app.request.get('page', 1)*limit %}
{% if pagination.getTotalItemCount > 0 %}
<div class="number_annonces"><span
class="current-page"> {{ ((app.request.get('page', 1)-1)*limit)+1 }} </span> -
<span
class="shower-perpage"> {% if pagination.getTotalItemCount > limit %}{{ count }}{% else %}{{ pagination.getTotalItemCount }}{% endif %} </span>
sur <span class="nbr-total"> {{ pagination.getTotalItemCount }} </span> annonces
</div>
{% endif %}
<div class="asc_desc">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink1"
data-bs-toggle="dropdown" aria-expanded="false">
Trier par
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path data-name="Tracé 84"
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"
transform="translate(-81.069 -229.428)" style="fill: #1db3a3;"/>
<path data-name="Tracé 85"
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"
transform="translate(-422.084 -12.574)" style="fill: #1db3a3;"/>
</svg>
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink1">
<li data-sort="pertinance"><a
class="dropdown-item sort {% if order == 'isTuchassouSelected' %}active{% endif %}"
href="#" data-order="isTuchassouSelected" data-sort="DESC"> Pertinence</a>
</li>
<li data-sort="price-asc"><a
class="dropdown-item sort {% if order == 'price' and sort == 'ASC' %}active{% endif %}"
href="#" data-order="price" data-sort="ASC"> Prix croissant </a></li>
<li data-sort="price-desc"><a
class="dropdown-item sort {% if order == 'price' and sort == 'DESC' %}active{% endif %}"
href="#" data-order="price" data-sort="DESC"> Prix décroissant </a></li>
<li data-sort=""><a
class="dropdown-item sort {% if order == 'createdAt' and sort == 'DESC' %}active{% endif %}"
href="#" data-order="createdAt" data-sort="DESC"> Plus récent </a></li>
<li data-sort=""><a
class="dropdown-item sort {% if order == 'createdAt' and sort == 'ASC' %}active{% endif %}"
href="#" data-order="createdAt" data-sort="ASC"> Plus ancien </a></li>
</ul>
</div>
</div>
{{ form_end(formDesktop) }}
</div>
<div id="mobile_search" style="display: none;">
{{ form_start(formMobile, {attr: {action: path('hunt_search')}}) }}
<div class="last-1 last-m">
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="region"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
Régions </label>
<p></p><span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formMobile.region, {'attr': {'placeholder': 'Régions'} }) }}
</div>
</div>
<div class="line-1 toUpdate">
<a class="btn btn-secondary dropdown-toggle " href="#" role="button" id="regionmod"
data-bs-toggle="dropdown" aria-expanded="true" data-bs-auto-close="outside"> <label>
Modes de chasse </label>
<p></p><span></span>
</a>
<div class="form dropdown-menu" aria-labelledby="departement"
data-popper-placement="bottom-start">
{{ form_widget(formMobile.huntingMode, {'attr': {'placeholder': 'Modes de chasse'} }) }}
</div>
</div>
<div class="ligne-1">
<button type="submit" id="search_form_save_" name="search_form[save]"
class="btn-primary btn">Appliquer
</button>
</div>
</div>
<div class="flow">
<div id="sidebar-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="">
<g data-name="icons Q2">
<path data-name="Tracé 11"
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"
style="fill: #1db3a3;" transform="rotate(-90 12.223 10.16)"/>
<path data-name="Tracé 12"
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"
transform="rotate(-90 15.726 6.555)" style="fill: #1db3a3;"/>
<path data-name="Tracé 13"
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"
transform="rotate(-90 19.279 3.002)" style="fill: #1db3a3;"/>
</g>
</svg>
Filtres
<span> </span>
</div>
<div class="asc_desc">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink1"
data-bs-toggle="dropdown" aria-expanded="false">
Trier par
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path data-name="Tracé 84"
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"
transform="translate(-81.069 -229.428)" style="fill: #1db3a3;"/>
<path data-name="Tracé 85"
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"
transform="translate(-422.084 -12.574)" style="fill: #1db3a3;"/>
</svg>
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink1">
<li data-sort="pertinance"><a
class="dropdown-item sort {% if order == 'isTuchassouSelected' %}active{% endif %}"
href="#" data-order="isTuchassouSelected" data-sort="DESC"> Pertinence</a>
</li>
<li data-sort="price-asc"><a
class="dropdown-item sort {% if order == 'price' and sort == 'ASC' %}active{% endif %}"
href="#" data-order="price" data-sort="ASC"> Prix croissant </a></li>
<li data-sort="price-desc"><a
class="dropdown-item sort {% if order == 'price' and sort == 'DESC' %}active{% endif %}"
href="#" data-order="price" data-sort="DESC"> Prix décroissant </a></li>
<li data-sort=""><a
class="dropdown-item sort {% if order == 'createdAt' and sort == 'DESC' %}active{% endif %}"
href="#" data-order="createdAt" data-sort="DESC"> Plus récent </a></li>
<li data-sort=""><a
class="dropdown-item sort {% if order == 'createdAt' and sort == 'ASC' %}active{% endif %}"
href="#" data-order="createdAt" data-sort="ASC"> Plus ancien </a></li>
</ul>
</div>
</div>
<div id="sidebar">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Filtres
</a>
</div>
<ul id="sidebar-mobile-menu">
<li><a class="d"> Dates <span class="val"> </span></a></li>
<li><a class="de"> Département <span class="val"> </span></a></li>
<li><a class="to"> Type d'offre <span class="val"> </span></a></li>
<li><a class="tl"> Type de gibier <span class="val"> </span> </a></li>
<li><a class="aa"> Animal <span class="val"> </span></a></li>
<li><a class="ta"> Type d'arme <span class="val"> </span></a></li>
<li><a class="p"> Prix <span class="val"> </span> </a></li>
</ul>
<div class="modifable">
<div id="dates">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Dates
</a>
</div>
<div class="form">
{{ form_widget(formMobile.dates, {'attr': {'placeholder': ''} }) }}
</div>
</div>
<div id="dept">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Département
</a>
</div>
<div class="form">
{{ form_widget(formMobile.departement, {'attr': {'placeholder': 'Département '} }) }}
</div>
</div>
<div id="dept1">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Type d'offre
</a>
</div>
<div class="form">
{{ form_widget(formMobile.type) }}
</div>
</div>
<div id="dept4">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Type de gibier
</a>
</div>
<div class="form">
{{ form_widget(formMobile.gibier) }}
</div>
</div>
<div id="dept5">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Animal
</a>
</div>
<div class="form">
{{ form_widget(formMobile.animals) }}
</div>
</div>
<div id="dept2">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Type d'arme
</a>
</div>
<div class="form">
{{ form_widget(formMobile.weapons) }}
</div>
</div>
<div id="dept_add">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Prix
</a>
</div>
<h3>Animal</h3>
<div class="form">
</div>
</div>
<div id="dept3">
<div class="headline">
<a href="#" class="back">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24">
<path data-name=""
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"
transform="translate(-213.866 -149.485)"
style="fill:#172a3b;fill-rule:evenodd"/>
</svg>
Prix
</a>
</div>
<h3>Sélectionnez une tranche de prix</h3>
<div class="form resp">
<div id="flat-slider"></div>
<p>Sélectionnez une tranche de prix</p>
<div class="prices">
<div>
<label> Prix minimum </label>
{{ form_widget(formMobile.priceMin) }}
</div>
<div>
<label> Prix maximum </label>
{{ form_widget(formMobile.priceMax) }}
</div>
</div>
</div>
</div>
</div>
<div class="footer-sidebar">
<button type="button" id="search_form_save" name="search_form[save]"
class="btn-primary btn">Appliquer
</button>
<a id="mobile-reset-filter" href="#" class="btn-default btn linkerr"> Tout effacer </a>
</div>
</div>
{{ form_end(formMobile) }}
</div>
<div class="version-desk">
<div class="header">
<h1>Nos chasses</h1>
<a href="#" class="toogle"><span>Liste</span><span class="active">Carte</span></a>
</div>
<a href="{{ path('our_hunts') }}" class="btn-default btn"> Tout effacer </a>
<ul class="filters_group">
<li>{{ pagination.getTotalItemCount }} offres</li>
{{ knp_pagination_sortable(pagination, 'Id', 'a.id') }}
<li></li>
</ul>
</div>
{% set count = app.request.get('page', 1)*limit %}
{% if pagination.getTotalItemCount == 0 %}
<div class="number_annonces"><span>0 sur 0 annonces</span></div>
{% else %}
<div class="number_annonces m"><span
class="current-page"> {{ ((app.request.get('page', 1)-1)*limit)+1 }} </span> - <span
class="shower-perpage"> {% if pagination.getTotalItemCount > limit %}{{ count }}{% else %}{{ pagination.getTotalItemCount }}{% endif %} </span>
sur <span class="nbr-total"> {{ pagination.getTotalItemCount }} </span> annonces
</div>
{% endif %}
<ul class="list">
{% for offer in pagination %}
{% set territory = offer.getterritory() %}
<li class="{% if offer.status == 3 %}li-offer-epuise{% endif %}">
{{ include('front/hunt/offer_bloc.html.twig') }}
</li>
{% endfor %}
</ul>
{{ knp_pagination_render(pagination) }}
</div>
<div class="map">
{# <div class="map_marker_show"></div> #}
<div id="map" style="width: 100%; height: 500px;"></div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}