func (VS *Server) showEditCategory(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	cat := VS.getCategoryByID(c, id, "h_data", "showEditCategory", "cat := VS.getCategoryByID")
	trans, b := VS.mayLookForTranslation(c, cat.ID)
	if b {
		cat = trans.(Category)
	}
	types := VS.getAllCategoryType(c, "h_data", "showEditCategory", "types := v.getAllCategoryType")
	sType := VS.getAllServiceTypes(c, "h_data", "showEditCategory", "sType := VS.getAllServiceTypes")
	servicesTypeHTML := VS.servicesTypeToServicesTypeHTML(c, sType)
	render(c, gin.H{
		"category": cat,
		"types":    types,
		"edit":     true,
		"sType":    servicesTypeHTML,
	}, "form-category.html")
}
// Shows the page to modify the information of the Category
Shows the page to modify the information of the Category
// Shows the page to modify the information of the Category
func (VS *Server) showEditCategory(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	cat := VS.getCategoryByID(c, id, "h_data", "showEditCategory", "cat := VS.getCategoryByID")
	trans, b := VS.mayLookForTranslation(c, cat.ID)
	if b {
		cat = trans.(Category)
	}
	types := VS.getAllCategoryType(c, "h_data", "showEditCategory", "types := v.getAllCategoryType")
	sType := VS.getAllServiceTypes(c, "h_data", "showEditCategory", "sType := VS.getAllServiceTypes")
	servicesTypeHTML := VS.servicesTypeToServicesTypeHTML(c, sType)
	render(c, gin.H{
		"category": cat,
		"types":    types,
		"edit":     true,
		"sType":    servicesTypeHTML,
	}, "form-category.html")
}
func ( VS * Server ) showEditCategory ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } cat := VS . getCategoryByID ( c , id , " " , " " , " " ) trans , b := VS . mayLookForTranslation ( c , cat . ID ) if b { cat = trans . ( Category ) } types := VS . getAllCategoryType ( c , " " , " " , " " ) sType := VS . getAllServiceTypes ( c , " " , " " , " " ) servicesTypeHTML := VS . servicesTypeToServicesTypeHTML ( c , sType ) render ( c , gin . H { " " : cat , " " : types , " " : true , " " : servicesTypeHTML , } , " " ) }
Shows the page to modify the information of the Category
Shows the page to modify the information of the Category