diff --git a/handlers/application/solidarity_service.go b/handlers/application/solidarity_service.go index be0fa24..59bdd81 100644 --- a/handlers/application/solidarity_service.go +++ b/handlers/application/solidarity_service.go @@ -144,4 +144,11 @@ func (h *ApplicationHandler) SolidarityService (w http.ResponseWriter, r *http.R h.cache.PutWithTTL(cacheid, accounts, 1*time.Hour) h.Renderer.BeneficiariesSolidarity(w, r, accounts, drivers, parcourmobAccounts, cacheid) +} + +func (h *ApplicationHandler) CreateDriver (w http.ResponseWriter, r *http.Request) { + + + + h.Renderer.CreateDriver(w, r) } \ No newline at end of file diff --git a/main.go b/main.go index 1e2bfd1..b97e3e7 100755 --- a/main.go +++ b/main.go @@ -140,6 +140,8 @@ func main() { //=================================silvermobi==================================== application.HandleFunc("/solidarity_service/", applicationHandler.SolidarityService) application.HandleFunc("/solidarity_service/create/{id}", applicationHandler.DriversJourney) + application.HandleFunc("/solidarity_service/driver/create", applicationHandler.CreateDriver) + appGroup := application.PathPrefix("/group_module").Subrouter() appGroup.HandleFunc("/", applicationHandler.Groups) diff --git a/renderer/solidarity_service.go b/renderer/solidarity_service.go index 4b06698..9120616 100644 --- a/renderer/solidarity_service.go +++ b/renderer/solidarity_service.go @@ -114,3 +114,10 @@ func (renderer *Renderer) SolidarityServiceListAvailableDrivers(w http.ResponseW renderer.Render("solidarity_service", w, r, files, state) } + +func (renderer *Renderer) CreateDriver(w http.ResponseWriter, r *http.Request) { + files := renderer.ThemeConfig.GetStringSlice("views.solidarity_service.create_driver.files") + state := NewState(r, renderer.ThemeConfig, solidarityserviceMenu) + + renderer.Render("solidarity_service", w, r, files, state) +}