2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
#import datetime
|
|
|
|
#from sickbeard import common
|
|
|
|
|
2015-02-25 23:19:52 +00:00
|
|
|
#set global $title = 'Episode Overview'
|
|
|
|
#set global $header = 'Episode Overview'
|
|
|
|
#set global $sbPath = '..'
|
|
|
|
#set global $topmenu = 'manage'
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
#import os.path
|
2015-02-25 23:19:52 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
2014-09-30 22:20:37 +00:00
|
|
|
|
2014-03-10 05:18:05 +00: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:
|
2015-02-25 23:19:52 +00:00
|
|
|
<h3>None of your episodes have status <span class="grey-text">$common.statusStrings[$int($whichStatus)]</span></h3>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
|
|
|
|
|
|
|
<form action="$sbRoot/manage/episodeStatuses" method="get">
|
2015-02-25 23:19:52 +00:00
|
|
|
Manage episodes with status <select name="whichStatus" class="form-control form-control-inline input-sm">
|
|
|
|
#for $curStatus in [$common.SKIPPED, $common.UNKNOWN, $common.SNATCHED, $common.WANTED, $common.ARCHIVED, $common.IGNORED]:
|
|
|
|
<option value="$curStatus">$common.statusStrings[$curStatus]</option>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end for
|
2015-02-25 23:19:52 +00:00
|
|
|
</select>
|
|
|
|
<input class="btn btn-inline" type="submit" value="Manage" />
|
2014-03-10 05:18:05 +00: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" />
|
|
|
|
|
2015-02-25 23:19:52 +00:00
|
|
|
<h3>${len($sorted_show_ids)} Shows containing <span class="grey-text">$common.statusStrings[$int($whichStatus)]</span> episodes</h3>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
#if $whichStatus in ($common.ARCHIVED, $common.IGNORED, $common.SNATCHED):
|
2015-02-28 03:05:20 +00:00
|
|
|
#set $row_class = 'good'
|
2014-03-10 05:18:05 +00:00
|
|
|
#else
|
2015-02-25 23:19:52 +00:00
|
|
|
#set $row_class = $common.Overview.overviewStrings[$whichStatus]
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
|
|
|
<input type="hidden" id="row_class" value="$row_class" />
|
|
|
|
|
2015-02-25 23:19:52 +00:00
|
|
|
<div class="form-group">
|
|
|
|
Set checked shows/episodes to <select name="newStatus" class="form-control form-control-inline input-sm">
|
2014-03-10 05:18:05 +00:00
|
|
|
#set $statusList = [$common.SKIPPED, $common.WANTED, $common.ARCHIVED, $common.IGNORED]
|
|
|
|
#if $int($whichStatus) in $statusList
|
2015-02-25 23:19:52 +00:00
|
|
|
$statusList.remove($int($whichStatus))
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
|
|
|
|
|
|
|
#if $int($whichStatus) in [$common.SNATCHED, $common.SNATCHED_PROPER]
|
2015-02-25 23:19:52 +00:00
|
|
|
$statusList.append($common.FAILED)
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
|
|
|
|
|
|
|
#for $curStatus in $statusList:
|
2015-02-25 23:19:52 +00:00
|
|
|
<option value="$curStatus">$common.statusStrings[$curStatus]</option>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end for
|
2015-02-25 23:19:52 +00:00
|
|
|
</select>
|
|
|
|
<input class="btn btn-inline go" type="submit" value="Go" />
|
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-02-25 23:19:52 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="button" class="btn btn-xs selectAllShows" value="Select all">
|
|
|
|
<input type="button" class="btn btn-xs unselectAllShows" value="Clear all">
|
|
|
|
<input type="button" class="btn btn-xs expandAll" value="Expand All Shows">
|
2014-03-10 05:18:05 +00:00
|
|
|
</div>
|
|
|
|
|
2014-10-21 19:09:01 +00:00
|
|
|
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
|
2014-03-10 05:18:05 +00:00
|
|
|
#for $cur_indexer_id in $sorted_show_ids:
|
2015-02-25 23:19:52 +00:00
|
|
|
<tr id="$cur_indexer_id">
|
|
|
|
<th><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all" /></th>
|
|
|
|
<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>
|
|
|
|
</tr>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end for
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
#end if
|
|
|
|
|
2015-02-25 23:19:52 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|