{% extends 'b_index.html.twig' %} {% block title %}Voyage{% endblock %} {% block stylesheets %} {{ encore_entry_link_tags('app_table') }} {% endblock %} {% block body %} {# #}

Liste des Voyages

{{ include('voyage/formList.html.twig') }}
{% set items=voyages %} {% for item in items %} {# {% set capacite=item.vehicule.capacite %}#} {% set disponibilite =item.available %} {# {% set available= capacite-disponibilite %}#} {% else %} {% endfor %}
Ville depart Ville arrivée Date depart Date arrivé Place Dispo Reference Date creation Heure depart Heure arrivée Bus Action
{{ item.villedepart.nom }} {{ item.villearrive.nom }} {{ item.datedepart ? item.datedepart|date('d-m-Y') : '' }} {{ item.datearrive ? item.datearrive|date('d-m-Y') : '' }} {{ item.available }} {{ item.reference }} {{ item.datecreation ? item.datecreation|date('d-m-Y') : '' }} {{ item.heuredepart }} {{ item.heurearrivee }} {{ item.vehicule.marque }}/ {{ item.vehicule.modele }} / {{ item.vehicule.immatriculation }}
{% if item.actif ==1 %} {% if disponibilite>0 %} {% endif %} {% endif %}
{# #}
{# #}
{# #}
Pas d'enregistrement trouvé
Ville depart Ville arrivée Date depart Date arrivé Reference Date creation Heure depart Heure arrivée Bus Action
{% endblock %} {% block javascripts %} {{ encore_entry_script_tags('apps_table') }} {# #} {% endblock %}