2014-03-10 01:18:05 -04:00
#import os . path
#import sickbeard
#from sickbeard . common import *
#set global $ title = " Existing Show "
#set global $ header = " Existing 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/qualityChooser.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/addExistingShow.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/rootDirs.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/addShowOptions.js? $ sbPID "></script>
<script type="text/javascript" charset="utf-8">
<!--
\$(document).ready(function(){
\$( " #tabs " ).tabs( {
collapsible: true,
selected: #if $ sickbeard . ROOT_DIRS then ' -1 ' else ' 0 ' #
});
});
//-->
</script>
2014-09-30 18:20:37 -04:00
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-11-15 15:15:06 -05:00
<div id="newShowPortal">
<div id="config-components">
<ul>
<li><a href=" #core - component - group1 " >Add Existing Show</a></li>
</ul>
<div id="core-component-group1" class="tab-pane active component-group">
<form id="addShowForm" method="post" action=" $ sbRoot /home/addShows/addNewShow" accept-charset="utf-8">
2014-03-10 01:18:05 -04:00
2014-11-15 15:15:06 -05:00
<div id="tabs">
<ul>
<li><a href=" #tabs - 1 " >Manage Directories</a></li>
<li><a href=" #tabs - 2 " >Customize Options</a></li>
</ul>
<div id="tabs-1" class="existingtabs">
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_rootDirs.tmpl " )
</div>
<div id="tabs-2" class="existingtabs">
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_addShowOptions.tmpl " )
</div>
</div>
<br />
2014-10-21 15:09:01 -04:00
2014-11-15 15:15:06 -05:00
<p>SickRage can add existing shows, using the current options, by using locally stored NFO/XML metadata to eliminate user interaction.
If you would rather have SickRage prompt you to customize each show, then use the checkbox below.</p>
2014-10-21 15:09:01 -04:00
2014-11-15 15:15:06 -05:00
<p><input type="checkbox" name="promptForSettings" id="promptForSettings" /> <label for="promptForSettings">Prompt me to set settings for each show</label></p>
2014-10-21 15:09:01 -04:00
2014-11-15 15:15:06 -05:00
<hr />
2014-10-21 15:09:01 -04:00
2014-11-15 15:15:06 -05:00
<p><b>Displaying folders within these directories which aren't already added to SickRage:</b></p>
2014-03-10 01:18:05 -04:00
2014-11-15 15:15:06 -05:00
<ul id="rootDirStaticList"><li></li></ul>
<br />
<div id="tableDiv"></div>
<br />
<br />
<input class="btn btn-primary" type="button" value="Submit" id="submitShowDirs" />
</form>
</div>
</div>
</div>
2014-10-21 15:09:01 -04:00
2014-03-10 01:18:05 -04:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_bottom.tmpl " )