Added studios to anime information

This commit is contained in:
2017-11-27 19:57:58 +01:00
parent 4c01ac9d6d
commit 15555f293f
2 changed files with 8 additions and 2 deletions

View File

@ -5,8 +5,8 @@ import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
"github.com/animenotifier/notify.moe/utils/editform"
)
// Get anime edit page.
@ -24,5 +24,5 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusNotFound, "Anime not found", err)
}
return ctx.HTML(components.EditAnime(anime))
return ctx.HTML(editform.Render(anime, "Edit anime", user))
}