{% extends 'base.html.twig' %}{% block title %}Calculs{% endblock %}{% block body %}<div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <h2>Detail du calcul</h2> <table class="table"> <tbody> <tr> <th>Titre</th> <td>{{ computing.Title }}</td> </tr> <tr> <th>Addresse d'origine</th> <td>{{ computing.Addresse }}</td> </tr> <tr> <th>Lon</th> <td>{{ computing.lon }}</td> </tr> <tr> <th>Lat</th> <td>{{ computing.lat }}</td> </tr> <tr> <th>Date choisie</th> <td>{% if computing.departureDateTime is not null %}{{ computing.departureDateTime.format('d M à H:i') }}{% endif %}</td> </tr> <tr> <th>Status</th> <td>{{ computing.getStatusTextInfo }}</td> </tr> </tbody> </table> </div> </div> <div class="card"> <div class="card-body"> <br/> <h2>Général</h2> <br/> <div class="col-lg-6"> <div class="card"> <div class="card-body"> <h4 class="card-title mb-4">Comparatif des temps</h4> <div id="column_chart" class="apex-charts" dir="ltr"></div> </div> </div> <!--end card--> </div> <div class="col-lg-6"> <div class="card"> <div class="card-body"> <h4 class="card-title mb-4">Fichiers</h4> <a href="{{ path('app_computing_export_excell' , {'id': computing.id}) }}" class="btn btn-primary">Export Excell</a> </div> </div> <!--end card--> </div> <script> $( document ).ready(function() { var options = { series: [{ name: 'Marche', data: [{{ moyennes.aller.walking }}] }, { name: 'Vélo', data: [{{ moyennes.aller.bicycling }} ] }, { name: 'Transport', data: [{{ moyennes.aller.transit }}] }, { name: 'Voiture', data: [{{ moyennes.aller.driving }}] }, ], chart: { type: 'bar', height: 350 }, plotOptions: { bar: { horizontal: false, columnWidth: '15%', endingShape: 'rounded' }, }, dataLabels: { enabled: false }, stroke: { show: true, width: 2, colors: ['transparent'] }, xaxis: { categories: ['Aller'], }, yaxis: { title: { text: 'Temps en min' } }, fill: { opacity: 1 }, tooltip: { y: { formatter: function (val) { return val + " min" } } } }; var chart = new ApexCharts(document.querySelector("#column_chart"), options); chart.render(); }); </script> </div> </div> <div class="card"> <div class="card-body"> <h2>Détail par adresses</h2> <br/> <table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%; font-size:11px"> <thead> <tr> <th>Adresse</th> <th colspan="2">Aller Marche</th> <th colspan="2">Aller Vélo</th> <th colspan="2">Aller Transport</th> <th colspan="2">Aller Voiture</th> {#<th colspan="2">Retour Marche</th> <th colspan="2">Retour Vélo</th> <th colspan="2">Retour Transport</th> <th colspan="2">Retour Voiture</th>#} </tr> </thead> <tbody> {% for timing in timings %} <tr> <th>{{ timing.address_name }}</th> <th>{{ timing.aller.timing.walking }}</th> <th>{{ timing.aller.distance.walking }} </th> <th>{{ timing.aller.timing.bicycling }}</th> <th>{{ timing.aller.distance.bicycling }}</th> <th>{{ timing.aller.timing.transit }}</th> <th>{{ timing.aller.distance.transit }}</th> <th>{{ timing.aller.timing.driving }}</th> <th>{{ timing.aller.distance.driving }}</th> {# <th>{{ timing.retour.timing.walking }}</th> <th>{{ timing.retour.distance.walking }} </th> <th>{{ timing.retour.timing.bicycling }}</th> <th>{{ timing.retour.distance.bicycling }}</th> <th>{{ timing.retour.timing.transit }}</th> <th>{{ timing.retour.distance.transit }}</th> <th>{{ timing.retour.timing.driving }}</th> <th>{{ timing.retour.distance.driving }}</th>#} </tr> {% endfor %} </tbody> </table> <br/> <a href="{{ path('app_computing_index') }}" class="btn btn-primary">Retour à la liste</a> </div> </div> </div></div>{% endblock %}