diff --git a/config.yaml b/config.yaml index 53e2a50..b7c13bb 100644 --- a/config.yaml +++ b/config.yaml @@ -137,6 +137,9 @@ views: - web/layouts/vehicles/search.html booking_display: files: + - web/layouts/vehicles/_partials/booking_status_badge.html + - web/layouts/vehicles/_partials/booking_documents.html + - web/layouts/vehicles/_partials/booking_status_history.html - web/layouts/vehicles/booking-display.html bookings_list: files: @@ -170,6 +173,9 @@ views: - web/layouts/vehicles_management/fleet-update.html booking_display: files: + - web/layouts/vehicles/_partials/booking_status_badge.html + - web/layouts/vehicles/_partials/booking_documents.html + - web/layouts/vehicles/_partials/booking_status_history.html - web/layouts/vehicles_management/booking-display.html delete_booking: files: diff --git a/web/layouts/vehicles/_partials/booking_documents.html b/web/layouts/vehicles/_partials/booking_documents.html new file mode 100644 index 0000000..0fa6dbd --- /dev/null +++ b/web/layouts/vehicles/_partials/booking_documents.html @@ -0,0 +1,51 @@ +{{define "booking_documents"}} +
Documents
+ {{if eq (len .ViewState.documents) 0}} +Aucun document
+ {{end}} + + + {{if gt (len .ViewState.documents) 0}} + +| Type | +Nom du document | +Ajouté le | ++ Actions + | +
|---|---|---|---|
|
+
+ {{index $.ViewState.file_types_map .Metadata.Type}}
+
+ |
+
+ {{.Metadata.Name}} + |
+ {{.LastModified.Format "02/01/2006"}} | ++ + + + | +
Historique des statuts
++ {{if .FromStatus}}{{$from := .FromStatus}}{{range $.ViewState.status_options}}{{if eq (index . "name") $from}}{{index . "label"}}{{end}}{{end}} → {{end}}{{$to := .ToStatus}}{{range $.ViewState.status_options}}{{if eq (index . "name") $to}}{{index . "label"}}{{end}}{{end}} + par {{.UserName}} + ({{.GroupName}}) +
+ {{if .Comment}} +{{.Comment}}
+ {{end}} +Informations utiles sur la réservation.
Documents
- {{if eq (len .ViewState.documents) 0}} -Aucun document
- {{end}} - - - {{if gt (len .ViewState.documents) 0}} - -| Type | -Nom du document | -Ajouté le | -- Actions - | -
|---|---|---|---|
|
-
- {{index $.ViewState.file_types_map .Metadata.Type}}
-
- |
-
- {{.Metadata.Name}} - |
- {{.LastModified.Format "02/01/2006"}} | -- - - - | -
Motif : {{.ViewState.booking.Data.motif}}
{{end}} {{else}} -Informations utiles sur la réservation.
{{end}}Documents
- {{if eq (len .ViewState.documents) 0}} -Aucun document
- {{end}} - - - {{if gt (len .ViewState.documents) 0}} - -| Type | -Nom du document | -Ajouté le | -- Actions - | -
|---|---|---|---|
|
-
- {{index $.ViewState.file_types_map .Metadata.Type}}
-
- |
-
- {{.Metadata.Name}} - |
- {{.LastModified.Format "02/01/2006"}} | -- - - - | -