func (VS *Server) showEditService(c *gin.Context) {
	sType := VS.getAllServiceTypes(c, "h_data", "showEditService", "sType := VS.getAllServiceTypes")
	servicesTypeHTML := VS.servicesTypeToServicesTypeHTML(c, sType)
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	service := VS.getServiceByID(c, id, "h_data", "showEditService", "service := VS.getServiceByID", true)
	// servHTML := VS.serviceToHTML(c, service)
	villages := VS.getAllVillagesFromTheSystem(c, "h_data", "showEditService", "villages := VS.getAllVillagesFromTheSystem")
	render(c, gin.H{
		"villages": villages,
		// "service": servHTML,
		"service": service,
		"edit":    true,
		"sType":   servicesTypeHTML,
	}, "form-service.html")
}
// Shows the page with the information of the Service to modify
Shows the page with the information of the Service to modify
// Shows the page with the information of the Service to modify
func (VS *Server) showEditService(c *gin.Context) {
	sType := VS.getAllServiceTypes(c, "h_data", "showEditService", "sType := VS.getAllServiceTypes")
	servicesTypeHTML := VS.servicesTypeToServicesTypeHTML(c, sType)
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	service := VS.getServiceByID(c, id, "h_data", "showEditService", "service := VS.getServiceByID", true)
	villages := VS.getAllVillagesFromTheSystem(c, "h_data", "showEditService", "villages := VS.getAllVillagesFromTheSystem")
	render(c, gin.H{
		"villages": villages,
		"service": service,
		"edit":    true,
		"sType":   servicesTypeHTML,
	}, "form-service.html")
}
func ( VS * Server ) showEditService ( c * gin . Context ) { sType := VS . getAllServiceTypes ( c , " " , " " , " " ) servicesTypeHTML := VS . servicesTypeToServicesTypeHTML ( c , sType ) id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } service := VS . getServiceByID ( c , id , " " , " " , " " , true ) villages := VS . getAllVillagesFromTheSystem ( c , " " , " " , " " ) render ( c , gin . H { " " : villages , " " : service , " " : true , " " : servicesTypeHTML , } , " " ) }
Shows the page with the information of the Service to modify
Shows the page with the information of the Service to modify
// servHTML := VS.serviceToHTML(c, service) // "service": servHTML,