add unbooking vehicles

This commit is contained in:
soukainna 2023-03-03 17:23:52 +01:00
parent bdcb386dff
commit 795066b6e5
1 changed files with 11 additions and 0 deletions

View File

@ -88,3 +88,14 @@ func (renderer *Renderer) VehicleManagementBookingDisplay(w http.ResponseWriter,
// renderer.Render("fleet display Unbooking vehicle", w, r, files, state)
// }
func (renderer *Renderer) UnbookingVehicles(w http.ResponseWriter, r *http.Request, vehicles []fleetsstorage.Vehicle) {
files := renderer.ThemeConfig.GetStringSlice("views.vehicles_management.unbooking_display.files")
state := NewState(r, renderer.ThemeConfig, vehiclesmanagementMenu)
state.ViewState = map[string]any{
"vehicles": vehicles,
}
renderer.Render("fleet display Unbooking vehicle", w, r, files, state)
}