{{ define "solidarity_bookings_list" }} {{if eq (len .ViewState.bookings) 0}}
Conducteur | Passager | Départ | Destination | Date | Statut | |
---|---|---|---|---|---|---|
{{ (index $.ViewState.drivers_map .DriverId).Data.first_name }} {{ (index $.ViewState.drivers_map .DriverId).Data.last_name }} | {{ (index $.ViewState.passengers_map .PassengerId).Data.first_name }} {{ (index $.ViewState.passengers_map .PassengerId).Data.last_name }} | {{ .Journey.PassengerPickup.Properties.label }} | {{ .Journey.PassengerDrop.Properties.label }} | {{ timeFormat .Journey.PassengerPickupDate "02/01/2006 15:04" }} |
{{ if eq .Status "WAITING_CONFIRMATION"}}
Attente confirmation
{{ else if eq .Status "VALIDATED"}}
Validé
{{ else if eq .Status "CANCELLED"}}
Annulé
{{ end }}
{{if and .Data.motivation (or (or (eq .Data.motivation "Santé") (eq .Data.motivation "Insertion")) (eq .Data.motivation "Administratif"))}} Trajet garanti : {{.Data.motivation}} {{end}}
|
Voir |