mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-23 14:35:24 -07:00
Work on the UI to show what episodes have been requested #254
This commit is contained in:
parent
a5cbd5dfd6
commit
0657264dd3
26 changed files with 8438 additions and 15 deletions
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
@if (Model.SearchForTvShows)
|
||||
{
|
||||
<li role="presentation"><a href="#TvShowTab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-television"></i >@UI.Requests_TvShowTabTitle</a></li>
|
||||
<li role="presentation"><a href="#TvShowTab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-television"></i>@UI.Requests_TvShowTabTitle</a></li>
|
||||
}
|
||||
@if (Model.SearchForMusic)
|
||||
{
|
||||
|
@ -131,6 +131,23 @@
|
|||
|
||||
|
||||
<script id="search-template" type="text/x-handlebars-template">
|
||||
<div hidden="hidden">
|
||||
@*http://iamceege.github.io/tooltipster/#methods*@
|
||||
{{#if episodes}}
|
||||
<div id="{{requestId}}toolTipContent">
|
||||
{{#each episodes}}
|
||||
Season: {{this.seasonNumber}}
|
||||
<br />
|
||||
Episodes Requested:
|
||||
{{#each this.episodes}}
|
||||
{{this}}
|
||||
{{/each}}
|
||||
<hr />
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div id="{{requestId}}Template" class="mix available-{{available}} approved-{{approved}} released-{{released}}" data-requestorder="{{requestedDateTicks}}" data-releaseorder="{{releaseDateTicks}}">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
|
@ -173,10 +190,11 @@
|
|||
{{/if_eq}}
|
||||
</div>
|
||||
{{#if_eq type "tv"}}
|
||||
{{#each episodes}}
|
||||
{{this.seasonNumber}} - {{this.episodeNumber}} @*// TODO Show the episodes requested*@
|
||||
{{/each}}
|
||||
{{#if episodes}}
|
||||
Episodes: <span class="customTooltip" data-tooltip-content="#{{requestId}}toolTipContent"><i class="fa fa-info-circle"></i></span>
|
||||
{{else}}
|
||||
<div>@UI.Requests_SeasonsRequested: {{seriesRequested}}</div>
|
||||
{{/if}}
|
||||
{{/if_eq}}
|
||||
{{#if requestedUsers}}
|
||||
<div>@UI.Requests_RequestedBy: {{requestedUsers}}</div>
|
||||
|
@ -251,6 +269,10 @@
|
|||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script id="album-template" type="text/x-handlebars-template">
|
||||
|
|
|
@ -299,7 +299,7 @@
|
|||
|
||||
<div class="modal fade" id="episodesModal">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-content col-md-12">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">@UI.Search_Modal_SeasonsTitle</h4>
|
||||
|
@ -310,8 +310,8 @@
|
|||
|
||||
<div hidden="hidden" id="selectedEpisodeId"></div>
|
||||
<div hidden="hidden" id="episodeTvID"></div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">@UI.Common_Close</button>
|
||||
<div class="modal-footer col-md-12">
|
||||
<button type="button" class="btn btn-default btn-default-outline" data-dismiss="modal">@UI.Common_Close</button>
|
||||
<button type="button" id="episodesRequest" class="btn btn-primary">@UI.Search_Request</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue