2014-03-10 01:18:05 -04:00
#import os . path
#import sickbeard
#set global $ header = " New Show "
#set global $ title = " New Show "
#set global $ sbPath = " ../.. "
#set global $ statpath = " ../.. " #
#set global $ topmenu = " home " #
#import os . path
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_top.tmpl " )
<script type="text/javascript" src=" $ sbRoot /js/formwizard.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/qualityChooser.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/newShow.js? $ sbPID "></script>
2014-09-30 18:20:37 -04:00
<script type="text/javascript" src=" $ sbRoot /js/addShowOptions.js? $ sbPID "></script>
<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
2014-09-30 18:20:37 -04:00
<div id="summary2" class="align-left">
2014-03-10 01:18:05 -04:00
<div id="displayText">aoeu</div>
<br />
2014-09-30 18:20:37 -04:00
<form id="addShowForm" method="post" action=" $ sbRoot /home/addShows/addNewShow" accept-charset="utf-8" style="width: 800px;">
2014-03-10 01:18:05 -04:00
<fieldset class="sectionwrap">
2014-03-25 01:57:24 -04:00
<legend class="legendStep">Find a show on the TVDB or TVRAGE</legend>
2014-03-10 01:18:05 -04:00
<div class="stepDiv">
2014-05-21 18:55:02 -04:00
<input type="hidden" id="indexer_timeout" value=" $ sickbeard . INDEXER_TIMEOUT " />
2014-05-21 14:17:52 -04:00
2014-03-10 01:18:05 -04:00
#if $ use_provided_info :
2014-03-25 01:57:24 -04:00
Show retrieved from existing metadata: <a href=" $ sickbeard . indexerApi ( $ provided_indexer ).config["show_url"] $ provided_indexer_id "> $ provided_indexer_name </a>
2014-03-10 22:32:02 -04:00
<input type="hidden" name="indexerLang" value="en" />
2014-03-10 01:18:05 -04:00
<input type="hidden" name="whichSeries" value=" $ provided_indexer_id " />
<input type="hidden" id="providedName" value=" $ provided_indexer_name " />
2014-03-16 02:28:11 -04:00
<input type="hidden" id="providedIndexer" value=" $ provided_indexer " />
2014-03-10 01:18:05 -04:00
#else :
2014-09-30 18:20:37 -04:00
<div id="middlewrap">
<div id="middle"><input type="text" id="nameToSearch" value=" $ default_show_name " style="height: 20px; width: 300px; margin-right: 15px;" /></div>
<div id="middle"><select name="indexerLang" id="indexerLangSelect" style="margin-right: 2px;">
2014-03-10 01:18:05 -04:00
<option value="en" selected="selected">en</option>
2014-09-30 18:20:37 -04:00
</select><b>*</b></div>
2014-05-01 20:57:51 -04:00
2014-09-30 18:20:37 -04:00
<div id="middle"><select name="providedIndexer" id="providedIndexer" style="margin-left: 8px; margin-right: 10px;">
2014-04-22 18:58:43 -04:00
<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
2014-09-30 18:20:37 -04:00
</select></div>
<div id="middle"><input class="btn" style="margin-top: 0px !important;" type="button" id="searchName" value="Search" /></div>
</div>
<br />
2014-03-10 01:18:05 -04:00
<b>*</b> This will only affect the language of the retrieved metadata file contents and episode filenames.<br />
2014-05-23 08:37:22 -04:00
This <b>DOES NOT</b> allow SickRage to download non-english TV episodes!<br />
2014-03-10 01:18:05 -04:00
<br />
2014-09-30 18:20:37 -04:00
<div id="searchResults" style="height: 100%;"><br/></div>
2014-03-10 01:18:05 -04:00
#end if
</div>
</fieldset>
<fieldset class="sectionwrap">
<legend class="legendStep">Pick the parent folder</legend>
<div class="stepDiv">
#if $ provided_show_dir :
Pre-chosen Destination Folder: <b> $ provided_show_dir </b> <br />
<input type="hidden" id="fullShowPath" name="fullShowPath" value=" $ provided_show_dir " /><br />
#else
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_rootDirs.tmpl " )
#end if
</div>
</fieldset>
<fieldset class="sectionwrap">
<legend class="legendStep">Customize options</legend>
<div class="stepDiv">
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_addShowOptions.tmpl " )
</div>
</fieldset>
#for $ curNextDir in $ other_shows :
<input type="hidden" name="other_shows" value=" $ curNextDir " />
#end for
<input type="hidden" name="skipShow" id="skipShow" value="" />
</form>
<br />
2014-09-30 18:20:37 -04:00
<div style="width: 100%; text-align: center;">
2014-03-10 01:18:05 -04:00
<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" />
#end if
</div>
<script type="text/javascript" src=" $ sbRoot /js/rootDirs.js? $ sbPID "></script>
2014-09-30 18:20:37 -04:00
</div></div>
2014-03-10 01:18:05 -04:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_bottom.tmpl " )