Implemented anime characters
This commit is contained in:
@ -2,17 +2,19 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.
|
||||
.widget-form.mountable
|
||||
.widget.anime-list-item-view(data-api="/api/animelist/" + viewUser.ID + "/update/" + anime.ID)
|
||||
h1= anime.Title.Canonical
|
||||
|
||||
InputNumber("Episodes", float64(item.Episodes), "Episodes", "Number of episodes you watched", "0", arn.EpisodeCountMax(anime.EpisodeCount), "1")
|
||||
|
||||
.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
|
||||
.anime-list-item-progress-edit
|
||||
.anime-list-item-episodes-edit
|
||||
InputNumber("Episodes", float64(item.Episodes), "Episodes", "Number of episodes you watched", "0", arn.EpisodeCountMax(anime.EpisodeCount), "1")
|
||||
|
||||
.widget-input.anime-list-item-status-edit
|
||||
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
|
||||
|
||||
.anime-list-item-rating-edit
|
||||
InputNumber("Rating.Overall", item.Rating.Overall, arn.OverallRatingName(item.Episodes), "Overall rating on a scale of 0 to 10", "0", "10", "0.1")
|
||||
|
@ -1,3 +1,15 @@
|
||||
// .anime-list-item-progress-edit
|
||||
// horizontal-wrap
|
||||
// justify-content space-between
|
||||
// width 100%
|
||||
|
||||
// .anime-list-item-episodes-edit
|
||||
// flex 1
|
||||
// margin-right content-padding
|
||||
|
||||
// .anime-list-item-status-edit
|
||||
// flex-basis 50%
|
||||
|
||||
.anime-list-item-rating-edit
|
||||
horizontal-wrap
|
||||
justify-content space-between
|
||||
|
Reference in New Issue
Block a user