mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-15 01:15:05 +00:00
28 lines
962 B
Cheetah
28 lines
962 B
Cheetah
|
#import sickgear
|
||
|
<span id="sampleRootDir"></span>
|
||
|
|
||
|
#if $sickgear.ROOT_DIRS:
|
||
|
#set $backend_pieces = $sickgear.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" />
|
||
|
<div class="rootdir-selectbox">
|
||
|
<select name="root_dir" id="rootDirs" size="6">
|
||
|
#for $cur_dir in $backend_dirs:
|
||
|
<option value="$cur_dir">$cur_dir</option>
|
||
|
#end for
|
||
|
</select>
|
||
|
</div>
|
||
|
<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 *" />
|
||
|
</div>
|
||
|
<input type="text" style="display: none" id="rootDirText" />
|