func (VS *Server) showVillages(c *gin.Context) {
	villages := VS.getAllVillagesFromTheSystem(c, "h_data", "showVillages", "villages := v.getAllVillagesFromTheSystem")
	services := VS.getAllServices(c, "h_data", "showVillages", "services := v.getAllServices")
	servicesHTML := VS.servicesToHTML(c, services)
	JSON, err := json.Marshal(servicesHTML)
	VS.checkOperation(c, "h_date", "showVillages", "JSON, err := json.Marshal(servicesHTML)", err)
	render(c, gin.H{
		"services": servicesHTML,
		"villages": villages,
		"JSON":     string(JSON),
	}, "villages.html")
}
// Shows the screen with all Villages and Services included in the sistem
Shows the screen with all Villages and Services included in the sistem
// Shows the screen with all Villages and Services included in the sistem
func (VS *Server) showVillages(c *gin.Context) {
	villages := VS.getAllVillagesFromTheSystem(c, "h_data", "showVillages", "villages := v.getAllVillagesFromTheSystem")
	services := VS.getAllServices(c, "h_data", "showVillages", "services := v.getAllServices")
	servicesHTML := VS.servicesToHTML(c, services)
	JSON, err := json.Marshal(servicesHTML)
	VS.checkOperation(c, "h_date", "showVillages", "JSON, err := json.Marshal(servicesHTML)", err)
	render(c, gin.H{
		"services": servicesHTML,
		"villages": villages,
		"JSON":     string(JSON),
	}, "villages.html")
}
func ( VS * Server ) showVillages ( c * gin . Context ) { villages := VS . getAllVillagesFromTheSystem ( c , " " , " " , " " ) services := VS . getAllServices ( c , " " , " " , " " ) servicesHTML := VS . servicesToHTML ( c , services ) JSON , err := json . Marshal ( servicesHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : servicesHTML , " " : villages , " " : string ( JSON ) , } , " " ) }
Shows the screen with all Villages and Services included in the sistem
Shows the screen with all Villages and Services included in the sistem