2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
#from sickbeard.common import *
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2014-11-20 22:25:33 +00:00
|
|
|
#set global $title = 'Existing Show'
|
|
|
|
#set global $header = 'Existing Show'
|
|
|
|
#set global $sbPath = '../..'
|
|
|
|
#set global $statpath = '../..'
|
|
|
|
#set global $topmenu = 'home'
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2014-03-10 05:18:05 +00:00
|
|
|
#import os.path
|
2014-11-20 22:25:33 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
<!--
|
2015-11-14 13:49:54 +00:00
|
|
|
\$.sgSid = '$kwargs.get('sid', '')';
|
|
|
|
\$.sgHashDir = '$kwargs.get('hash_dir', '')';
|
|
|
|
\$(document).ready(function(){
|
2014-11-20 22:25:33 +00:00
|
|
|
\$( '#tabs' ).tabs({
|
2014-03-10 05:18:05 +00:00
|
|
|
collapsible: true,
|
|
|
|
selected: #if $sickbeard.ROOT_DIRS then '-1' else '0'#
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//-->
|
|
|
|
</script>
|
2015-11-14 13:49:54 +00:00
|
|
|
<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?v=$sbPID"></script>
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/addExistingShow.js?v=$sbPID"></script>
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/rootDirs.js?v=$sbPID"></script>
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/addShowOptions.js?v=$sbPID"></script>
|
2014-09-30 22:20:37 +00:00
|
|
|
|
2014-11-20 22:25:33 +00:00
|
|
|
#if $varExists('header')
|
2014-03-10 05:18:05 +00:00
|
|
|
<h1 class="header">$header</h1>
|
2014-11-20 22:25:33 +00:00
|
|
|
#else
|
2014-03-10 05:18:05 +00:00
|
|
|
<h1 class="title">$title</h1>
|
|
|
|
#end if
|
|
|
|
|
2014-11-20 22:25:33 +00:00
|
|
|
<image class="preload-image" style="position:absolute;top:-999px" src="$sbRoot/images/loading32<%= '-dark' if 'dark' == sickbeard.THEME_NAME else '' %>.gif" width="32" height="32" border="0">
|
|
|
|
|
|
|
|
<form id="addShowForm" method="post" action="$sbRoot/home/addShows/addNewShow" accept-charset="utf-8">
|
|
|
|
|
2015-11-14 13:49:54 +00:00
|
|
|
<span#if $kwargs.get('hash_dir', None)# style="display:none"#end if>
|
|
|
|
<p>Tip: shows are added quicker when usable show nfo and xml metadata is found</p>
|
|
|
|
|
|
|
|
<p style="margin-top:15px">
|
|
|
|
<input type="checkbox" id="promptForSettings" name="promptForSettings" style="vertical-align: top;" />
|
|
|
|
<label for="promptForSettings">Enable to change the following options per show, otherwise use these options with all shows added below</label>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div id="tabs">
|
|
|
|
<ul>
|
|
|
|
<li><a href="#tabs-1">Manage parent folders</a></li>
|
|
|
|
<li><a href="#tabs-2">Custom options</a></li>
|
|
|
|
</ul>
|
|
|
|
<div id="tabs-1" class="existingtabs">
|
|
|
|
<div style="width: 430px; margin: 0px auto">
|
2014-11-20 22:25:33 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_rootDirs.tmpl')
|
2015-11-14 13:49:54 +00:00
|
|
|
</div>
|
2014-11-20 22:25:33 +00:00
|
|
|
</div>
|
2015-11-14 13:49:54 +00:00
|
|
|
<div id="tabs-2">
|
|
|
|
<div class="stepDiv">
|
2014-11-20 22:25:33 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_addShowOptions.tmpl')
|
2015-11-14 13:49:54 +00:00
|
|
|
</div>
|
2014-11-20 22:25:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-11-14 13:49:54 +00:00
|
|
|
<br />
|
|
|
|
<hr />
|
|
|
|
</span>
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2015-11-14 13:49:54 +00:00
|
|
|
<p>The following parent folder$multi_parents scanned for
|
|
|
|
#if not $kwargs.get('hash_dir', None)#existing shows. Toggle a folder to display shows#else#the existing show...#end if#
|
|
|
|
</p>
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2014-11-20 22:25:33 +00:00
|
|
|
<ul id="rootDirStaticList">
|
|
|
|
<li></li>
|
|
|
|
</ul>
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2015-11-14 13:49:54 +00:00
|
|
|
#if not $kwargs.get('hash_dir', None)
|
2014-11-20 22:25:33 +00:00
|
|
|
<p>shows <span class="boldest">not known</span> to SickGear are listed below...</p>
|
2015-11-14 13:49:54 +00:00
|
|
|
#end if
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2014-11-20 22:25:33 +00:00
|
|
|
<div id="tableDiv"></div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-11-20 22:25:33 +00:00
|
|
|
<br />
|
2015-11-14 13:49:54 +00:00
|
|
|
#if not $kwargs.get('hash_dir', None)
|
2015-03-10 00:13:58 +00:00
|
|
|
<p>If you tried to add a show, arrived here and can't see the folder, then that show may already be in your show list.</p>
|
2015-11-14 13:49:54 +00:00
|
|
|
#end if
|
2015-03-10 00:13:58 +00:00
|
|
|
|
2015-11-14 13:49:54 +00:00
|
|
|
<input class="btn btn-primary" type="button" value="#if $kwargs.get('hash_dir', None)#Redo Search#else#Submit#end if#" id="submitShowDirs" />
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
</form>
|
2015-05-07 00:36:40 +00:00
|
|
|
|
2015-11-14 13:49:54 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|