func (VS *Server) showEditUser(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	user := VS.getUserByID(c, id, "h_data", "showEditUser", "user := v.getUserByID")
	userhtml := VS.userToHTML(c, user)
	userhtml.Role = strings.ToLower(userhtml.Role)
	userhtml.Gender = strings.ToLower(userhtml.Gender)
	villages := VS.getAllVillagesFromTheSystem(c, "h_data", "showEditUser", "villages := v.getAllVillages")
	render(c, gin.H{
		"user":     userhtml,
		"edit":     true,
		"villages": villages,
	}, "form-user.html")
}
// Shows the page with the information of the User to modify the information
Shows the page with the information of the User to modify the information
// Shows the page with the information of the User to modify the information
func (VS *Server) showEditUser(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	user := VS.getUserByID(c, id, "h_data", "showEditUser", "user := v.getUserByID")
	userhtml := VS.userToHTML(c, user)
	userhtml.Role = strings.ToLower(userhtml.Role)
	userhtml.Gender = strings.ToLower(userhtml.Gender)
	villages := VS.getAllVillagesFromTheSystem(c, "h_data", "showEditUser", "villages := v.getAllVillages")
	render(c, gin.H{
		"user":     userhtml,
		"edit":     true,
		"villages": villages,
	}, "form-user.html")
}
func ( VS * Server ) showEditUser ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } user := VS . getUserByID ( c , id , " " , " " , " " ) userhtml := VS . userToHTML ( c , user ) userhtml . Role = strings . ToLower ( userhtml . Role ) userhtml . Gender = strings . ToLower ( userhtml . Gender ) villages := VS . getAllVillagesFromTheSystem ( c , " " , " " , " " ) render ( c , gin . H { " " : userhtml , " " : true , " " : villages , } , " " ) }
Shows the page with the information of the User to modify the information
Shows the page with the information of the User to modify the information