2017-06-20 10:41:26 +00:00
|
|
|
component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.Anime)
|
2017-06-20 18:13:04 +00:00
|
|
|
.widgets.mountable
|
2017-06-21 12:00:52 +00:00
|
|
|
.widget.anime-list-item-view(data-api="/api/animelist/" + viewUser.ID + "/update/" + anime.ID)
|
2017-06-20 10:41:26 +00:00
|
|
|
h2= anime.Title.Canonical
|
2017-06-19 18:59:02 +00:00
|
|
|
|
2017-06-26 09:43:47 +00:00
|
|
|
InputNumber("Episodes", float64(item.Episodes), "Episodes", "Number of episodes you watched", "0", arn.EpisodeCountMax(anime.EpisodeCount), "1")
|
|
|
|
|
2017-07-02 21:42:46 +00:00
|
|
|
.widget-input
|
|
|
|
label(for="Status") Status:
|
|
|
|
select.widget-element.action(id="Status", data-field="Status", value=item.Status, data-action="save", data-trigger="change")
|
|
|
|
option(value=arn.AnimeListStatusWatching) Watching
|
|
|
|
option(value=arn.AnimeListStatusCompleted) Completed
|
|
|
|
option(value=arn.AnimeListStatusPlanned) Plan to watch
|
|
|
|
option(value=arn.AnimeListStatusHold) On hold
|
|
|
|
option(value=arn.AnimeListStatusDropped) Dropped
|
2017-06-29 13:55:04 +00:00
|
|
|
|
2017-06-26 09:43:47 +00:00
|
|
|
.anime-list-item-rating-edit
|
2017-07-01 00:14:14 +00:00
|
|
|
InputNumber("Rating.Overall", item.Rating.Overall, arn.OverallRatingName(item.Episodes), "Overall rating on a scale of 0 to 10", "0", "10", "0.1")
|
2017-06-26 09:43:47 +00:00
|
|
|
InputNumber("Rating.Story", item.Rating.Story, "Story", "Story rating on a scale of 0 to 10", "0", "10", "0.1")
|
|
|
|
InputNumber("Rating.Visuals", item.Rating.Visuals, "Visuals", "Visuals rating on a scale of 0 to 10", "0", "10", "0.1")
|
|
|
|
InputNumber("Rating.Soundtrack", item.Rating.Soundtrack, "Soundtrack", "Soundtrack rating on a scale of 0 to 10", "0", "10", "0.1")
|
|
|
|
|
|
|
|
InputNumber("RewatchCount", float64(item.RewatchCount), "Rewatched", "How often you rewatched this anime", "0", "100", "1")
|
2017-06-19 18:59:02 +00:00
|
|
|
|
2017-06-21 12:00:52 +00:00
|
|
|
InputTextArea("Notes", item.Notes, "Notes", "Your notes")
|
2017-06-20 10:41:26 +00:00
|
|
|
|
2017-06-20 18:13:04 +00:00
|
|
|
.buttons.mountable
|
2017-07-05 19:23:59 +00:00
|
|
|
a.ajax.button(href="/+" + viewUser.Nick + "/animelist/watching")
|
2017-06-20 10:41:26 +00:00
|
|
|
Icon("list")
|
|
|
|
span View collection
|
|
|
|
a.ajax.button(href=anime.Link())
|
|
|
|
Icon("search-plus")
|
|
|
|
span View anime
|
2017-06-20 20:54:45 +00:00
|
|
|
button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-anime-id=anime.ID, data-user-id=viewUser.ID, data-user-nick=viewUser.Nick)
|
2017-06-20 10:41:26 +00:00
|
|
|
Icon("trash")
|
|
|
|
span Remove from collection
|