2014-03-10 05:18:05 +00:00
#import sickbeard
2014-11-09 02:49:38 +00:00
#from sickbeard . helpers import anon_url
2015-05-07 00:36:40 +00:00
##
2014-11-15 22:14:49 +00:00
#set global $ header = ' New Show '
#set global $ title = ' New 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-15 22:14:49 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_top.tmpl ' )
2014-03-10 05:18:05 +00:00
2016-11-01 15:34:18 +00:00
#set indexer_count = len ( [ $ i for $ i in $ sickbeard . indexerApi ( ) . indexers if $ sickbeard . indexerApi ( i ) . config . get ( ' active ' , False ) and not $ sickbeard . indexerApi ( i ) . config . get ( ' defunct ' , False ) ] ) + 1
2015-08-14 23:02:05 +00:00
<script>
var show_scene_maps = ${ show_scene_maps }
</script>
2015-09-12 07:17:26 +00:00
<script type="text/javascript" src=" $ sbRoot /js/formwizard.js?v= $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/qualityChooser.js?v= $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/newShow.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-15 22:14:49 +00:00
#if $ varExists ( ' header ' )
<h1 class="header"> $ header </h1>
#else
<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">
2014-10-21 19:09:01 +00:00
<div id="newShowPortal">
<div id="displayText">aoeu</div>
<br />
2014-11-20 22:25:33 +00:00
<form id="addShowForm" method="post" action=" $ sbRoot /home/addShows/addNewShow" accept-charset="utf-8">
2014-10-21 19:09:01 +00:00
2014-11-20 22:25:33 +00:00
<fieldset class="sectionwrap step-one">
2015-09-24 18:19:44 +00:00
<legend class="legendStep"><p> #if $ use_provided_info # Using known show information #else # Find show at TV info source #end if# </p></legend>
2014-10-21 19:09:01 +00:00
2014-11-15 22:14:49 +00:00
<div class="stepDiv">
<input type="hidden" id="indexer_timeout" value=" $ sickbeard . INDEXER_TIMEOUT " />
2016-11-01 15:34:18 +00:00
<input type="hidden" id="indexer_count" value=" $ indexer_count " />
2014-10-21 19:09:01 +00:00
2014-11-15 22:14:49 +00:00
#if $ use_provided_info
#set $ provided_indexer_local = $ provided_indexer
#set $ provided_indexer_id_local = $ provided_indexer_id
2015-09-24 18:19:44 +00:00
Show: <a href="<%= anon_url(sickbeard.indexerApi(provided_indexer_local).config['show_url'], provided_indexer_id_local) %>"> $ provided_indexer_name </a>
2014-10-21 19:09:01 +00:00
<input type="hidden" name="indexerLang" value="en" />
2015-09-24 18:19:44 +00:00
<input type="hidden" name="whichSeries" value=" #echo ' | ' . join ( [ str ( $ provided_indexer ) , ' ' , str ( $ provided_indexer_id ) , $ provided_indexer_name ] ) # " />
2014-10-21 19:09:01 +00:00
<input type="hidden" id="providedName" value=" $ provided_indexer_name " />
<input type="hidden" id="providedIndexer" value=" $ provided_indexer " />
2014-11-15 22:14:49 +00:00
#else
2015-12-16 23:35:39 +00:00
#if 2 > $ len ( $ indexers )
<style>
#addShowForm input # nameToSearch{width:611px}
</style>
<input type="hidden" id="providedIndexer" value=" $ provided_indexer " />
#end if
2014-10-21 19:09:01 +00:00
<input type="text" id="nameToSearch" value=" $ default_show_name " class="form-control form-control-inline input-sm input350" />
2014-11-20 22:25:33 +00:00
<span style="float:right">
2015-12-16 23:35:39 +00:00
<select name="indexerLang" id="indexerLangSelect" class="form-control form-control-inline input-sm">
<option value="en" selected="selected">en</option>
</select><b> *</b>
#if 1 < $ len ( $ indexers )
<select name="providedIndexer" id="providedIndexer" class="form-control form-control-inline input-sm">
<option value="0" #if $ provided_indexer == 0 then " selected= \" selected \" " else " " # >All Indexers</option>
#for $ indexer in $ indexers
<option value=" $ indexer " #if $ provided_indexer == $ indexer then " selected= \" selected \" " else " " # > $ indexers [ $ indexer ]</option>
#end for
</select>
#end if
<input class="btn btn-inline" type="button" id="searchName" value="Search" />
2014-11-20 22:25:33 +00:00
</span>
2014-10-21 19:09:01 +00:00
<br />
2015-11-14 13:49:54 +00:00
<p style="margin:5px 0 15px">Enter show name, TVDB ID, IMDb Url, or IMDb ID. <b>*</b>SickGear supports english, language is used for show/episode data</p>
2014-11-20 22:25:33 +00:00
<div id="searchResults" style="height: 100%"></div>
2014-11-15 22:14:49 +00:00
#end if
2014-10-21 19:09:01 +00:00
2014-11-15 22:14:49 +00:00
</div>
2014-11-20 22:25:33 +00:00
<div style="clear:both"> </div>
2014-11-15 22:14:49 +00:00
</fieldset>
2014-10-21 19:09:01 +00:00
2016-06-30 19:15:09 +00:00
<fieldset class="sectionwrap step-two" style="visibility:hidden">
2014-11-20 22:25:33 +00:00
<legend class="legendStep"><p>Pick parent folder</p></legend>
2014-10-21 19:09:01 +00:00
2014-11-20 22:25:33 +00:00
<div class="stepDiv parent-folder">
2014-11-15 22:14:49 +00:00
#if $ provided_show_dir
2014-10-21 19:09:01 +00:00
Pre-chosen Destination Folder: <b> $ provided_show_dir </b> <br />
<input type="hidden" id="fullShowPath" name="fullShowPath" value=" $ provided_show_dir " /><br />
2014-11-15 22:14:49 +00:00
#else
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_rootDirs.tmpl ' )
#end if
2014-09-30 22:20:37 +00:00
</div>
2014-11-20 22:25:33 +00:00
<div style="clear:both"> </div>
2014-11-15 22:14:49 +00:00
</fieldset>
2016-06-30 19:15:09 +00:00
<fieldset class="sectionwrap step-three" style="visibility:hidden">
2014-11-20 22:25:33 +00:00
<legend class="legendStep"><p>Set custom options</p></legend>
2014-11-15 22:14:49 +00:00
<div class="stepDiv">
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_addShowOptions.tmpl ' )
</div>
2014-11-20 22:25:33 +00:00
<div style="clear:both"> </div>
2014-11-15 22:14:49 +00:00
</fieldset>
#for $ curNextDir in $ other_shows
<input type="hidden" name="other_shows" value=" $ curNextDir " />
#end for
<input type="hidden" name="skipShow" id="skipShow" value="" />
2014-10-21 19:09:01 +00:00
</form>
2014-03-10 05:18:05 +00:00
2014-11-15 22:14:49 +00:00
<br />
2014-03-10 05:18:05 +00:00
2014-11-15 22:14:49 +00:00
<div style="width: 100%; text-align: center;">
<input class="btn" type="button" id="addShowButton" value="Add Show" disabled="disabled" />
#if $ provided_show_dir
<input class="btn" type="button" id="skipShowButton" value="Skip Show" />
2014-03-10 05:18:05 +00:00
#end if
2014-11-15 22:14:49 +00:00
</div>
2014-03-10 05:18:05 +00:00
2015-09-12 07:17:26 +00:00
<script type="text/javascript" src=" $ sbRoot /js/rootDirs.js?v= $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/blackwhite.js?v= $ sbPID "></script>
2014-03-10 05:18:05 +00:00
2014-09-30 22:20:37 +00:00
</div></div>
2015-11-14 13:49:54 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_bottom.tmpl ' )