func (VS *Server) showEditItem(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	item, _ := VS.getItemByID(c, id, "h_data", "showEditItem", "item, _ := VS.getItemByID", true)
	trans, b := VS.mayLookForTranslation(c, item.ID)
	if b {
		item = trans.(Item)
	}
	cat := VS.getCategoryByID(c, item.IDCategory, "h_data", "showEditItem", "cat := v.getCategoryByID")
	categories := VS.getAllCategories(c, "h_data", "showEditItem", "categories := VS.getAllCategories")
	render(c, gin.H{
		"item":       item,
		"edit":       true,
		"cat":        cat,
		"categories": categories,
	}, "form-item.html")
}
// Shows the page to modify the information of the Item
Shows the page to modify the information of the Item
// Shows the page to modify the information of the Item
func (VS *Server) showEditItem(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	item, _ := VS.getItemByID(c, id, "h_data", "showEditItem", "item, _ := VS.getItemByID", true)
	trans, b := VS.mayLookForTranslation(c, item.ID)
	if b {
		item = trans.(Item)
	}
	cat := VS.getCategoryByID(c, item.IDCategory, "h_data", "showEditItem", "cat := v.getCategoryByID")
	categories := VS.getAllCategories(c, "h_data", "showEditItem", "categories := VS.getAllCategories")
	render(c, gin.H{
		"item":       item,
		"edit":       true,
		"cat":        cat,
		"categories": categories,
	}, "form-item.html")
}
func ( VS * Server ) showEditItem ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } item , _ := VS . getItemByID ( c , id , " " , " " , " " , true ) trans , b := VS . mayLookForTranslation ( c , item . ID ) if b { item = trans . ( Item ) } cat := VS . getCategoryByID ( c , item . IDCategory , " " , " " , " " ) categories := VS . getAllCategories ( c , " " , " " , " " ) render ( c , gin . H { " " : item , " " : true , " " : cat , " " : categories , } , " " ) }
Shows the page to modify the information of the Item
Shows the page to modify the information of the Item