2017-07-01 23:19:57 +02:00

17 lines
573 B
Plaintext

component EditAnime(anime *arn.Anime)
h2= anime.Title.Canonical
.widgets
.widget(data-api="/api/anime/" + anime.ID)
h3.anime-section-name Mappings
InputText("Custom:ShoboiID", anime.GetMapping("shoboi/anime"), "Shoboi TID", "TID on cal.syoboi.jp")
InputText("Custom:AniListID", anime.GetMapping("anilist/anime"), "AniList ID", "ID on anilist.co")
.buttons
a.button.ajax(href="/anime/" + anime.ID)
Icon("arrow-left")
span View anime
a.button(href="/api/anime/" + anime.ID, target="_blank")
Icon("search-plus")
span JSON API