func (VS *Server) todoCheckedToHTML(c *gin.Context, checked ToDoChecked) ToDoChecked {
	var ch ToDoChecked
	ch.ID = checked.ID
	ch.IDToDo = checked.IDToDo
	ch.Numbers = checked.Numbers
	ch.Descriptions = checked.Descriptions
	ch.Date = checked.Date
	ch.Checkboxes = checked.Checkboxes
	todo := VS.getTodoByID(c, checked.IDToDo, "h_view", "todoCheckedToHTML", "todo := VS.getTodoByID(c, checked")
	for index, p := range checked.Photos {
		user := VS.getUserByID(c, todo.IDUser, "h_view", "todoCheckedToHTML", "user := VS.getUserByID(c, todo")
		newPhoto := FieldPhoto{
			ID:         p.ID,
			IDToDo:     p.IDToDo,
			TitlePhoto: todo.Photos[index].TitlePhoto,
			Photo:      "/local/users/" + user.Username + "/to-dos/checked/" + p.Photo,
		}
		ch.Photos = append(ch.Photos, newPhoto)
	}
	return ch
}
// This method takes a TodoChecked and returns a TodoCheckedHTML
This method takes a TodoChecked and returns a TodoCheckedHTML
// This method takes a TodoChecked and returns a TodoCheckedHTML
func (VS *Server) todoCheckedToHTML(c *gin.Context, checked ToDoChecked) ToDoChecked {
	var ch ToDoChecked
	ch.ID = checked.ID
	ch.IDToDo = checked.IDToDo
	ch.Numbers = checked.Numbers
	ch.Descriptions = checked.Descriptions
	ch.Date = checked.Date
	ch.Checkboxes = checked.Checkboxes
	todo := VS.getTodoByID(c, checked.IDToDo, "h_view", "todoCheckedToHTML", "todo := VS.getTodoByID(c, checked")
	for index, p := range checked.Photos {
		user := VS.getUserByID(c, todo.IDUser, "h_view", "todoCheckedToHTML", "user := VS.getUserByID(c, todo")
		newPhoto := FieldPhoto{
			ID:         p.ID,
			IDToDo:     p.IDToDo,
			TitlePhoto: todo.Photos[index].TitlePhoto,
			Photo:      "/local/users/" + user.Username + "/to-dos/checked/" + p.Photo,
		}
		ch.Photos = append(ch.Photos, newPhoto)
	}
	return ch
}
func ( VS * Server ) todoCheckedToHTML ( c * gin . Context , checked ToDoChecked ) ToDoChecked { var ch ToDoChecked ch . ID = checked . ID ch . IDToDo = checked . IDToDo ch . Numbers = checked . Numbers ch . Descriptions = checked . Descriptions ch . Date = checked . Date ch . Checkboxes = checked . Checkboxes todo := VS . getTodoByID ( c , checked . IDToDo , " " , " " , " " ) for index , p := range checked . Photos { user := VS . getUserByID ( c , todo . IDUser , " " , " " , " " ) newPhoto := FieldPhoto { ID : p . ID , IDToDo : p . IDToDo , TitlePhoto : todo . Photos [ index ] . TitlePhoto , Photo : " " + user . Username + " " + p . Photo , } ch . Photos = append ( ch . Photos , newPhoto ) } return ch }
This method takes a TodoChecked and returns a TodoCheckedHTML
This method takes a TodoChecked and returns a TodoCheckedHTML