// newOrEditChampionshipHandler builds a Championship form for the user to create a Championship.
newOrEditChampionshipHandler builds a Championship form for the user to create a Championship.
// newOrEditChampionshipHandler builds a Championship form for the user to create a Championship .
func newOrEditChampionshipHandler(w http.ResponseWriter, r *http.Request) {
	opts, err := championshipManager.BuildChampionshipOpts(r)
	if err != nil {
		logrus.Errorf("couldn't build championship form, err: %s", err)
		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		return
	}
	ViewRenderer.MustLoadTemplate(w, r, "championships/new.html", opts)
}
func newOrEditChampionshipHandler ( w http . ResponseWriter , r * http . Request ) { opts , err := championshipManager . BuildChampionshipOpts ( r ) if err != nil { logrus . Errorf ( " " , err ) http . Error ( w , http . StatusText ( http . StatusInternalServerError ) , http . StatusInternalServerError ) return } ViewRenderer . MustLoadTemplate ( w , r , " " , opts ) }
newOrEditChampionshipHandler builds a Championship form for the user to create a Championship.
newOrEditChampionshipHandler builds a Championship form for the user to create a Championship .