func (VS *Server) showEditVideoCourse(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	video, _ := VS.getVideoCourseByID(c, id, "h_videos", "showEditVideoCourse", "video, _ := VS.getVideoCourseByID", true)
	// Check for a translation in another language
	trans, b := VS.mayLookForTranslation(c, video.ID)
	if b {
		video = trans.(VideoCourse)
	}
	//Get the steps of the product
	steps := VS.getAllStepsFromSpecificVideoCourse(c, video.ID, "h_videos", "showEditVideoCourse", "steps := VS.getAllStepsFromSpecificVideoCourse")
	service, b := VS.getOurService(c, "h_videos", "showEditVideoCourse", "service, b := VS.getOurService")
	if !b {
		return
	}
	sType := VS.getAllServiceTypes(c, "h_videos", "showEditVideoCourse", "sType := VS.getAllServiceTypes")
	servicesTypeHTML := VS.servicesTypeToServicesTypeHTML(c, sType)
	render(c, gin.H{
		"product":     video,
		"edit":        true,
		"steps":       len(steps),
		"serviceType": service.TypeID,
		"sType":       servicesTypeHTML,
	}, "form-video-course.html")
}
// Shows the page with the information of the Video course to modify
Shows the page with the information of the Video course to modify
// Shows the page with the information of the Video course to modify
func (VS *Server) showEditVideoCourse(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	video, _ := VS.getVideoCourseByID(c, id, "h_videos", "showEditVideoCourse", "video, _ := VS.getVideoCourseByID", true)
	trans, b := VS.mayLookForTranslation(c, video.ID)
	if b {
		video = trans.(VideoCourse)
	}
	steps := VS.getAllStepsFromSpecificVideoCourse(c, video.ID, "h_videos", "showEditVideoCourse", "steps := VS.getAllStepsFromSpecificVideoCourse")
	service, b := VS.getOurService(c, "h_videos", "showEditVideoCourse", "service, b := VS.getOurService")
	if !b {
		return
	}
	sType := VS.getAllServiceTypes(c, "h_videos", "showEditVideoCourse", "sType := VS.getAllServiceTypes")
	servicesTypeHTML := VS.servicesTypeToServicesTypeHTML(c, sType)
	render(c, gin.H{
		"product":     video,
		"edit":        true,
		"steps":       len(steps),
		"serviceType": service.TypeID,
		"sType":       servicesTypeHTML,
	}, "form-video-course.html")
}
func ( VS * Server ) showEditVideoCourse ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } video , _ := VS . getVideoCourseByID ( c , id , " " , " " , " " , true ) trans , b := VS . mayLookForTranslation ( c , video . ID ) if b { video = trans . ( VideoCourse ) } steps := VS . getAllStepsFromSpecificVideoCourse ( c , video . ID , " " , " " , " " ) service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } sType := VS . getAllServiceTypes ( c , " " , " " , " " ) servicesTypeHTML := VS . servicesTypeToServicesTypeHTML ( c , sType ) render ( c , gin . H { " " : video , " " : true , " " : len ( steps ) , " " : service . TypeID , " " : servicesTypeHTML , } , " " ) }
Shows the page with the information of the Video course to modify
Shows the page with the information of the Video course to modify
// Check for a translation in another language //Get the steps of the product