New field for exercice to display a text after exercice validation

This commit is contained in:
nemunaire 2018-12-02 17:53:26 +01:00
parent 87471acf98
commit 21697f01ca
9 changed files with 43 additions and 18 deletions

View file

@ -148,6 +148,10 @@ func partUpdateExercice(exercice fic.Exercice, body []byte) (interface{}, error)
exercice.Headline = ue.Headline
}
if len(ue.Finished) > 0 {
exercice.Finished = ue.Finished
}
if len(ue.Overview) > 0 {
exercice.Overview = ue.Overview
}
@ -203,7 +207,7 @@ func createExercice(theme fic.Theme, body []byte) (interface{}, error) {
}
}
return theme.AddExercice(ue.Title, ue.URLId, ue.Path, ue.Statement, ue.Overview, ue.Headline, depend, ue.Gain, ue.VideoURI)
return theme.AddExercice(ue.Title, ue.URLId, ue.Path, ue.Statement, ue.Overview, ue.Headline, depend, ue.Gain, ue.VideoURI, ue.Finished)
}
type uploadedHint struct {