{{define "content"}}

Réservations

{{range .ViewState.bookings}} {{end}}
Statut Type Véhicule Prescripteur Gestionnaire Beneficiaire Dates Actions
{{if .Data.administrator_unavailability}} Retiré {{else}} {{if eq .Status 1 }} A venir {{end}} {{if eq .Status 0 }} En cours {{end}} {{if eq .Status -1 }} Terminé {{end}} {{end}}
{{(index $.ViewState.vehicles_map .Vehicleid).Type}}
{{(index $.ViewState.vehicles_map .Vehicleid).Data.licence_plate}}
{{if .Data.booked_by}} {{if .Data.booked_by.user}} {{.Data.booked_by.user.display_name}} {{end}} {{if .Data.booked_by.group}} ({{.Data.booked_by.group.name}}) {{end}} {{end}} {{if gt (len (index $.ViewState.vehicles_map .Vehicleid).Administrators) 0}} {{ (index $.ViewState.groups_map (index (index $.ViewState.vehicles_map .Vehicleid).Administrators 0)).Data.name }} {{end}} {{if not .Data.administrator_unavailability}}
{{end}}
{{if not .Data.administrator_unavailability}}
Du {{(timeFrom .Startdate).Format "02/01/2006"}} au {{(timeFrom .Enddate).Format "02/01/2006"}}
{{else}}
Du {{(timeFrom .Unavailablefrom).Format "02/01/2006"}} au {{(timeFrom .Unavailableto).Format "02/01/2006"}}
{{end}}
Voir
{{end}}