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) }
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) }
func NewDrinkForm(w http.ResponseWriter, r *http.Request, p config.Page) { fi := config.NewFormInfo(p.Id, "new-drink.html", String{}) templates.RenderForm(w, fi) }