2014-03-10 01:18:05 -04:00
|
|
|
#import sickbeard
|
|
|
|
#import datetime
|
|
|
|
#from sickbeard import common
|
|
|
|
#set global $title="Episode Overview"
|
|
|
|
#set global $header="Episode Overview"
|
|
|
|
|
|
|
|
#set global $sbPath=".."
|
|
|
|
|
|
|
|
#set global $topmenu="manage"#
|
|
|
|
#import os.path
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
2014-09-30 18:20:37 -04:00
|
|
|
|
|
|
|
<div id="content960">
|
2014-03-10 01:18:05 -04:00
|
|
|
#if $varExists('header')
|
|
|
|
<h1 class="header">$header</h1>
|
|
|
|
#else
|
|
|
|
<h1 class="title">$title</h1>
|
|
|
|
#end if
|
|
|
|
|
|
|
|
#if not $whichStatus or ($whichStatus and not $ep_counts):
|
|
|
|
|
|
|
|
#if $whichStatus:
|
|
|
|
<h2>None of your episodes have status $common.statusStrings[$int($whichStatus)]</h2>
|
|
|
|
<br />
|
|
|
|
#end if
|
|
|
|
|
|
|
|
<form action="$sbRoot/manage/episodeStatuses" method="get">
|
2014-10-21 15:09:01 -04:00
|
|
|
Manage episodes with status <select name="whichStatus" class="form-control form-control-inline input-sm">
|
2014-03-10 01:18:05 -04:00
|
|
|
#for $curStatus in [$common.SKIPPED, $common.SNATCHED, $common.WANTED, $common.ARCHIVED, $common.IGNORED]:
|
|
|
|
<option value="$curStatus">$common.statusStrings[$curStatus]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
2014-10-21 15:09:01 -04:00
|
|
|
<input class="btn btn-inline" type="submit" value="Manage" />
|
2014-03-10 01:18:05 -04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/manageEpisodeStatuses.js?$sbPID"></script>
|
|
|
|
|
|
|
|
<form action="$sbRoot/manage/changeEpisodeStatuses" method="post">
|
|
|
|
<input type="hidden" id="oldStatus" name="oldStatus" value="$whichStatus" />
|
|
|
|
|
|
|
|
<h2>Shows containing $common.statusStrings[$int($whichStatus)] episodes</h2>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
#if $whichStatus in ($common.ARCHIVED, $common.IGNORED, $common.SNATCHED):
|
|
|
|
#set $row_class = "good"
|
|
|
|
#else
|
|
|
|
#set $row_class = $common.Overview.overviewStrings[$whichStatus]
|
|
|
|
#end if
|
|
|
|
<input type="hidden" id="row_class" value="$row_class" />
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
Set checked shows/episodes to <select name="newStatus" class="form-control form-control-inline input-sm">
|
2014-03-10 01:18:05 -04:00
|
|
|
#set $statusList = [$common.SKIPPED, $common.WANTED, $common.ARCHIVED, $common.IGNORED]
|
|
|
|
#if $int($whichStatus) in $statusList
|
|
|
|
$statusList.remove($int($whichStatus))
|
|
|
|
#end if
|
|
|
|
|
|
|
|
#if $int($whichStatus) in [$common.SNATCHED, $common.SNATCHED_PROPER]
|
|
|
|
$statusList.append($common.FAILED)
|
|
|
|
#end if
|
|
|
|
|
|
|
|
#for $curStatus in $statusList:
|
|
|
|
<option value="$curStatus">$common.statusStrings[$curStatus]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
2014-10-21 15:09:01 -04:00
|
|
|
<input class="btn btn-inline" type="submit" value="Go" />
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
<div>
|
2014-10-21 15:09:01 -04:00
|
|
|
<button type="button" class="btn btn-xs selectAllShows">Select all</a></button>
|
|
|
|
<button type="button" class="btn btn-xs unselectAllShows">Clear all</a></button>
|
2014-03-10 01:18:05 -04:00
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
|
2014-03-10 01:18:05 -04:00
|
|
|
#for $cur_indexer_id in $sorted_show_ids:
|
|
|
|
<tr id="$cur_indexer_id">
|
|
|
|
<th><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all" checked="checked" /></th>
|
2014-10-21 15:09:01 -04:00
|
|
|
<th colspan="2" style="width: 100%; text-align: left;"><a class="whitelink" href="$sbRoot/home/displayShow?show=$cur_indexer_id">$show_names[$cur_indexer_id]</a> ($ep_counts[$cur_indexer_id]) <input type="button" class="pull-right get_more_eps btn" id="$cur_indexer_id" value="Expand" /></th>
|
2014-03-10 01:18:05 -04:00
|
|
|
</tr>
|
|
|
|
#end for
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
#end if
|
2014-09-30 18:20:37 -04:00
|
|
|
</div>
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|