fix: misc

This commit is contained in:
2026-08-08 16:21:55 +02:00
parent 96392b78bf
commit dbc766a2c5
5 changed files with 43 additions and 13 deletions
+11 -1
View File
@@ -63,7 +63,7 @@ func (gc *GroupController) GroupHandler(c *gin.Context) {
}
if action == "addCard" {
cardName := c.PostForm("Name")
cardName := c.PostForm("name")
_, err := services.Cards.Create(c, cardName, int32(id))
if err != nil {
@@ -73,6 +73,16 @@ func (gc *GroupController) GroupHandler(c *gin.Context) {
}
}
if action == "deleteCard" {
err := services.Cards.Delete(c)
if err != nil {
fmt.Println(err)
c.HTML(http.StatusBadRequest, "accessauths.html", gin.H{"error": err})
return
}
}
if action == "delete" {
err := services.Groups.Delete(c, int32(id))