{{define "content"}}

Réservation de véhicule

{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}} {{end}}

Bénéficiaire

Nom
{{.ViewState.beneficiary.Data.first_name}} {{.ViewState.beneficiary.Data.last_name}}
Email
{{.ViewState.beneficiary.Data.email}}
Téléphone
{{.ViewState.beneficiary.Data.phone_number}}
{{if .ViewState.Data.birthdate}}
Date de naissance
{{(timeFrom .ViewState.Data.birthdate).Format "02/01/2006"}}
{{end}} {{if and .ViewState.Data.gender (ne .ViewState.Data.gender "0")}}
Date de naissance
{{genderISO5218 .ViewState.Data.gender}}
{{end}} {{if .ViewState.Data.address}}
Adresse
{{.ViewState.Data.address.properties.label}}
{{end}}
{{if or .ViewState.booking.Data.Deleted .ViewState.booking.Deleted}}

Réservation annulée le {{(timeFrom .ViewState.booking.Unavailableto).Format "02/01/2006"}}

Motif : {{.ViewState.booking.Data.motif}}

{{else}}

Réservation

Informations utiles sur la réservation.

{{end}}
{{if .ViewState.booking.Data.booked_by}}
Prescripteur
{{if .ViewState.booking.Data.booked_by.user}} {{.ViewState.booking.Data.booked_by.user.display_name}} {{end}} {{if .ViewState.booking.Data.booked_by.group}}{{.ViewState.booking.Data.booked_by.group.name}}{{end}}
{{end}}
Véhicule
{{.ViewState.vehicle.Data.name}}
Immatriculation
{{.ViewState.vehicle.Data.licence_plate}}
Type
{{.ViewState.vehicle.Type}}
{{if .ViewState.vehicle.Data.address}}
Lieu de récupération
{{.ViewState.vehicle.Data.address.properties.label}}
{{end}}
Date de récupération
{{(timeFrom .ViewState.booking.Startdate).Format "02/01/2006"}}
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}} Modifier {{end}}
Date de retour
{{(timeFrom .ViewState.booking.Enddate).Format "02/01/2006"}}
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}} Modifier {{end}}
Indisponible à partir du
{{(timeFrom .ViewState.booking.Unavailablefrom).Format "02/01/2006"}}
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}} Modifier {{end}}
Sera à nouveau disponible le
{{(timeFrom .ViewState.booking.Unavailableto).Format "02/01/2006"}}
{{if and (ne .ViewState.booking.Status -1) (not (or .ViewState.booking.Deleted .ViewState.booking.Data.Deleted))}} Modifier {{end}}

Documents

{{if eq (len .ViewState.documents) 0}}

Aucun document

{{end}} {{if gt (len .ViewState.documents) 0}}
{{range .ViewState.documents}} {{end}}
Type Actions
{{index $.ViewState.file_types_map .Metadata.Type}}

{{.Metadata.Name}}

{{.LastModified.Format "02/01/2006"}}
{{end}}
{{end}}