2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
<span id="sampleRootDir"></span>
|
|
|
|
|
|
|
|
#if $sickbeard.ROOT_DIRS:
|
|
|
|
#set $backend_pieces = $sickbeard.ROOT_DIRS.split('|')
|
|
|
|
#set $backend_default = 'rd-' + $backend_pieces[0]
|
|
|
|
#set $backend_dirs = $backend_pieces[1:]
|
|
|
|
#else:
|
|
|
|
#set $backend_default = ''
|
|
|
|
#set $backend_dirs = []
|
|
|
|
#end if
|
|
|
|
|
|
|
|
<input type="hidden" id="whichDefaultRootDir" value="$backend_default" />
|
2014-10-27 00:29:12 +00:00
|
|
|
<div class="rootdir-selectbox">
|
|
|
|
<select name="rootDir" id="rootDirs" size="6">
|
2014-03-10 05:18:05 +00:00
|
|
|
#for $cur_dir in $backend_dirs:
|
2014-10-27 00:29:12 +00:00
|
|
|
<option value="$cur_dir">$cur_dir</option>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end for
|
2014-10-27 00:29:12 +00:00
|
|
|
</select>
|
2014-03-10 05:18:05 +00:00
|
|
|
</div>
|
2014-10-27 00:29:12 +00:00
|
|
|
<div id="rootDirsControls" class="rootdir-controls">
|
|
|
|
<input class="btn" type="button" id="addRootDir" value="New" />
|
|
|
|
<input class="btn" type="button" id="editRootDir" value="Edit" />
|
|
|
|
<input class="btn" type="button" id="deleteRootDir" value="Delete" />
|
|
|
|
<input class="btn" type="button" id="defaultRootDir" value="Set as Default *" />
|
2014-03-10 05:18:05 +00:00
|
|
|
</div>
|
|
|
|
<input type="text" style="display: none" id="rootDirText" />
|