2014-03-10 01:18:05 -04:00
|
|
|
#import sickbeard
|
|
|
|
|
|
|
|
<table id="addRootDirTable" class="sickbeardTable tablesorter">
|
|
|
|
<thead><tr><th width="1%"><input type="checkbox" id="checkAll" checked=checked></th><th>Directory</th><th width="20%">Show Name (tvshow.nfo)<th width="20%">Indexer</td></tr></thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th rowspan="1" colspan="3" align="left"><a href="#" style="padding-left: 10px;" class="showManage">Manage Directories</a></th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
#for $curDir in $dirList:
|
|
|
|
#if $curDir['added_already']:
|
|
|
|
#continue
|
|
|
|
#end if
|
|
|
|
|
|
|
|
#set $show_id = $curDir['dir']
|
2014-03-25 01:57:24 -04:00
|
|
|
#set $indexer = 1
|
2014-03-10 01:18:05 -04:00
|
|
|
#if $curDir['existing_info'][0]:
|
2014-03-25 01:57:24 -04:00
|
|
|
#set $show_id = $show_id + '|' + $str($curDir['existing_info'][0]) + '|' + $str($curDir['existing_info'][1])
|
|
|
|
#set $indexer = $curDir['existing_info'][2]
|
2014-03-10 01:18:05 -04:00
|
|
|
#end if
|
|
|
|
|
2014-03-25 01:57:24 -04:00
|
|
|
<tr>
|
2014-03-10 01:18:05 -04:00
|
|
|
<td><input type="checkbox" id="$show_id" class="dirCheck" checked=checked></td>
|
|
|
|
<td><label for="$show_id">$curDir['display_dir']</label></td>
|
2014-03-25 01:57:24 -04:00
|
|
|
#if $curDir['existing_info'][1]:
|
|
|
|
<td><a href="$sickbeard.indexerApi($indexer).config["show_url"]$curDir['existing_info'][0]">$curDir['existing_info'][1]</a></td>
|
|
|
|
#else:
|
|
|
|
<td>?</td>
|
2014-03-10 01:18:05 -04:00
|
|
|
#end if
|
|
|
|
<td>
|
|
|
|
<select name="indexer">
|
2014-03-26 15:28:46 -04:00
|
|
|
#for $curIndexer in $sickbeard.indexerApi.indexers().items():
|
2014-03-10 01:18:05 -04:00
|
|
|
<option value="$curIndexer[0]" #if $curIndexer[0] == $indexer then "selected=\"selected\"" else ""#>$curIndexer[1]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
#end for
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
2014-03-25 01:57:24 -04:00
|
|
|
</table>
|