{% extends 'base.html.twig' %}{% block title %}Accueil{% endblock %}{% block body %} <div class="container-fluid"> <h1 style="text-align: center; color: #069; margin: 5%">Resultats des investigations geotechniques et de recherche de point d’eau le long des axes routiers prioritaires</h1> <div class="row"> <div class="col-sm-3"> <!--h1>Emprunts index</h1--> <a class="menu_lien" href="{{ path('default') }}">Accueil</a> {#- <a class="menu_lien" href="{{ path('routes_new') }}">Nouvel enregistrement</a>#}<br/><br/> <div style='overflow:scroll; height:700px;'> <table class="table" id="dtables"> <thead> <tr> <th>Nom</th> <th>Coordonnées des Emp. et points d'eau</th> </tr> </thead> <tbody> {% for route in routes %} <tr> <td> {{ route.nom }}<br/> {% if route.fichiers is not empty %} {% for fichier in route.fichiers %} <a target="_blank" href="{{ asset('uploads/'~ fichier.nom) }}" title="Fichier enregistré">{{ fichier.rnom }}</a><br/> {% endfor %} {% else %} <span style="color:red">Aucun fichier enregistré</span> {% endif %} <br/> <a href="{{ path('routes_edit', {'id': route.id}) }}">Modifier</a> </td> <td style='width: 70%'> {% if route.emprunts is not empty %} <h6><u>Liste des emprunts</u></h6> {% for emprunt in route.emprunts %} <div><button class='btn btn-link select_elt' id='{{ asset('map/#13/'~emprunt.latitude~'/'~ emprunt.longitude) }}'>{{ emprunt.nom }}</button></div> {% endfor %} {% endif %} {% if route.pointEaux is not empty %} <h6><u>Liste des points d'eau</u></h6> {% for pointeau in route.pointEaux %} <div style="text-align: left"><button class='btn btn-link select_elt' id='{{ asset('map/#13/'~pointeau.latitude~'/'~ pointeau.longitude) }}'>{{ pointeau.nom }}</button></div> {% endfor %} {% endif %} </td> </tr> {% else %} <tr> <td colspan="3">Aucun enregistrement</td> </tr> {% endfor %} </tbody> </table> </div> </div> <div class="col-sm-9"> <!--a href="{{ path('emprunts_index') }}">Liste des emprunts</a> - <a href="{{ path('point_eaux_index') }}">Liste des points d'eaux</a--><div style="font-size: 120%"><span style="color: blue">Point bleu</span> pour les points d'eau - <span style="color: orange">Point orange</span> et <span style="color: red">point rouge</span> pour les emprunts lateriques en fonction des coordonnées UTM 29P et 30P</div> <!--- <div style="background-color:#00A096;" iddiv="box_1" class="mymagicoverbox"> Please click me ! </div> <div id="myfond_gris" opendiv=""></div>--> <div class="embed-responsive embed-responsive-16by9" style="border: 1px solid #999; margin-top: 15px" > <iframe class="lazyload embed-responsive-item" src="{{ asset('map/#7/13/-7') }}" allowfullscreen loading="lazy"></iframe> </div> <!--div align="center"> <div style="background-color:#00A096;" iddiv="box_1" class="mymagicoverbox"> Please click me ! </div> <div style="background-color:#F8B334;" iddiv="box_2" class="mymagicoverbox"> And click me too... </div> </div> <div id="box_1" class="mymagicoverbox_fenetre" style="left:-225px; width:450px;"> Title of the first box ! <div class="mymagicoverbox_fenetreinterieur" style="height:150px; "> <div align="center"> <br>Hum... Are you really sure ? <br><br> <div style="width:100px" align="center" class="mymagicoverbox_fermer">NO I'M NOT</div> </div> </div> </div--> <br/><br/> </div> </div> </div>{% endblock %}{% block javascripts %} {{ parent() }} <script type="text/javascript"> $(document).ready(function () { $('.select_elt').on('click', function () { var url = $(this).attr('id'); //alert(url) $('.embed-responsive-item').attr('src', url); $('#myfond_gris').fadeIn(300); var iddiv = $(this).attr("iddiv"); $('#' + iddiv).fadeIn(300); $('#myfond_gris').attr('opendiv', iddiv); return false; }); }); </script> <script> if ('loading' in HTMLIFrameElement.prototype) { const iframes = document.querySelectorAll('iframe[loading="lazy"]'); iframes.forEach(iframe => { iframe.src = iframe.dataset.src; }); } else { // Dynamically import the LazySizes library const script = document.createElement('script'); script.src = 'https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.2.2/lazysizes.min.js'; document.body.appendChild(script); } </script> <script> $(document).ready(function () { $(".mymagicoverbox").click(function () { $('#myfond_gris').fadeIn(300); var iddiv = $(this).attr("iddiv"); $('#' + iddiv).fadeIn(300); $('#myfond_gris').attr('opendiv', iddiv); return false; }); $('#myfond_gris, .mymagicoverbox_fermer').click(function () { var iddiv = $("#myfond_gris").attr('opendiv'); $('#myfond_gris').fadeOut(300); $('#' + iddiv).fadeOut(300); }); }); </script>{% endblock %}