Example #1
0
func EditDrinkForm(w http.ResponseWriter, r *http.Request, p config.Page) {
	fi := config.NewFormInfo(p.Id, "edit-drink.html", String{
		Val: p.Args.Con["drink_id"],
	})

	templates.RenderForm(w, fi)
}
Example #2
0
func NewCocktailForm(w http.ResponseWriter, r *http.Request, p config.Page) {
	fi := config.NewFormInfo(p.Id, "new-cocktail.html", database.GetDrinks())

	templates.RenderForm(w, fi)
}
Example #3
0
func NewDrinkForm(w http.ResponseWriter, r *http.Request, p config.Page) {
	fi := config.NewFormInfo(p.Id, "new-drink.html", String{})

	templates.RenderForm(w, fi)
}