func (VS *Server) showNewStep(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	video, _ := VS.getVideoCourseByID(c, id, "h_videos", "showNewStep", "video, _ := VS.getVideoCourseByID", true)
	toolsTotal, materialsTotal := VS.getToolsAndMaterials(c, video)
	service, b := VS.getOurService(c, "h_videos", "showNewStep", "service, b := VS.getOurService")
	if !b {
		return
	}

	// Calculate the num of steps
	steps := VS.getAllStepsFromSpecificVideoCourse(c, id, "h_videos", "showNewStep", "steps := VS.getAllStepsFromSpecificVideoCourse")
	render(c, gin.H{
		"product":     video,
		"numStep":     len(steps) + 1,
		"tools":       toolsTotal,
		"materials":   materialsTotal,
		"serviceType": service.TypeID,
	}, "form-step.html")
}
// Shows the page to introduce the information of the new Step
Shows the page to introduce the information of the new Step
// Shows the page to introduce the information of the new Step
func (VS *Server) showNewStep(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	video, _ := VS.getVideoCourseByID(c, id, "h_videos", "showNewStep", "video, _ := VS.getVideoCourseByID", true)
	toolsTotal, materialsTotal := VS.getToolsAndMaterials(c, video)
	service, b := VS.getOurService(c, "h_videos", "showNewStep", "service, b := VS.getOurService")
	if !b {
		return
	}
	steps := VS.getAllStepsFromSpecificVideoCourse(c, id, "h_videos", "showNewStep", "steps := VS.getAllStepsFromSpecificVideoCourse")
	render(c, gin.H{
		"product":     video,
		"numStep":     len(steps) + 1,
		"tools":       toolsTotal,
		"materials":   materialsTotal,
		"serviceType": service.TypeID,
	}, "form-step.html")
}
func ( VS * Server ) showNewStep ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } video , _ := VS . getVideoCourseByID ( c , id , " " , " " , " " , true ) toolsTotal , materialsTotal := VS . getToolsAndMaterials ( c , video ) service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } steps := VS . getAllStepsFromSpecificVideoCourse ( c , id , " " , " " , " " ) render ( c , gin . H { " " : video , " " : len ( steps ) + 1 , " " : toolsTotal , " " : materialsTotal , " " : service . TypeID , } , " " ) }
Shows the page to introduce the information of the new Step
Shows the page to introduce the information of the new Step
// Calculate the num of steps