2012-09-13 15:27:34 +00:00
< %inherit file="base.html" />
< %!
import mylar
from mylar.helpers import checked
%>
< %def name="headerIncludes()">
< div id = "subhead_container" >
< div id = "subhead_menu" >
2012-09-18 13:13:42 +00:00
< a id = "menu_link_edit" href = "manageComics" > Manage Comics< / a >
2012-09-13 15:27:34 +00:00
< / div >
< / div >
< /%def>
< %def name="body()">
< div id = "paddingheader" >
< h1 class = "clearfix" > Manage< / h1 >
< / div >
< div id = "tabs" >
< ul >
< li > < a href = "#tabs-1" > Scan Comic Library< / a > < / li >
2013-09-07 06:05:32 +00:00
< li > < a href = "#tabs-2" > Manual Post-Processing< / a > < / li >
< li > < a href = "#tabs-3" > Advanced Options< / a > < / li >
2012-09-13 15:27:34 +00:00
< / ul >
< div id = "tabs-1" class = "configtable" >
2013-09-07 06:05:32 +00:00
< form action = "comicScan" method = "GET" id = "comicScan" >
< fieldset >
2012-09-13 15:27:34 +00:00
< legend > Scan Comic Library< / legend >
< p > < strong > Where do you keep your comics?< / strong > < / p >
< p > You can put in any directory, and it will scan for comic files in that folder
(including all subdirectories). < br / > < small > For example: '/Users/name/Comics'< / small > < / p >
< p >
It may take a while depending on how many files you have. You can navigate away from the page< br / >
as soon as you click 'Save changes'
< / p >
< br / >
< div class = "row" >
2013-09-07 06:05:32 +00:00
< label for = "" > Path to directory< / label >
%if mylar.COMIC_DIR:
< input type = "text" value = "${mylar.COMIC_DIR}" name = "path" size = "70" / >
%else:
< input type = "text" value = "Enter a Comic Directory to scan" onfocus = "if
(this.value==this.defaultValue) this.value='';" name="path" size="70" />
%endif
< / div >
<!-- <div class="row checkbox">
< input type = "checkbox" name = "libraryscan" id = "libraryscan" value = "1" $ { checked ( mylar . LIBRARYSCAN ) } > < label > Automatically Scan Library< / label >
< / div >
2013-10-26 03:31:51 +00:00
-->
2013-09-07 06:05:32 +00:00
< div class = "row checkbox" >
< input type = "checkbox" name = "autoadd" id = "autoadd" value = "1" $ { checked ( mylar . ADD_COMICS ) } > < label > Auto-add new series< / label >
< / div >
2013-10-26 03:31:51 +00:00
<!--
2013-09-07 06:05:32 +00:00
< div class = "row checkbox" >
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" name = "imp_metadata" id = "imp_metadata" value = "1" $ { checked ( mylar . IMP_METADATA ) } > < label > Use existing Metadata< / label >
< small > Use existing Metadata to better locate series for import< / small >
< / div >
-->
< div class = "row checkbox" >
< input type = "checkbox" style = "vertical-align: middle; margin: 3px; margin-top: -1px;" name = "imp_move" onclick = "initConfigCheckbox($this));" id = "imp_move" value = "1" $ { checked ( mylar . IMP_MOVE ) } > < label > Move files into corresponding Series directory< / label >
< small > Leaving this unchecked will not move anything, but will mark the issues as Archived< / small >
< / div >
< div class = "config" >
< input type = "checkbox" name = "imp_rename" id = "imp_rename" value = "1" $ { checked ( mylar . IMP_RENAME ) } > < label > Rename Files < / label >
< small > Rename files to configuration settings< / small >
< / div >
< br / >
< input type = "button" value = "Save Changes and Scan" onclick = "addScanAction();doAjaxCall('comicScan',$(this),'tabs',true);return false;" data-success = "Changes saved. Library will be scanned" >
< input type = "button" value = "Save Changes without Scanning Library" onclick = "doAjaxCall('comicScan',$(this),'tabs',true);return false;" data-success = "Changes Saved Successfully" >
< / fieldset >
< / form >
2012-09-13 15:27:34 +00:00
< / div >
2013-09-07 06:05:32 +00:00
< div id = "tabs-2" class = "configtable" >
< tr >
< td >
< form action = "post_process" method = "GET" id = "post_process" >
< fieldset >
< legend > Manual Run< / legend >
< p > < strong > Manual Post-Processing< / strong > < / p >
< p > You can put in any directory, and it will scan for comic files in that folder
(including all subdirectories) that exist on your watchlist.
< br / > < small > For example: '/Users/name/Comics'< / small > < / p >
< p >
It may take a while depending on how many files you have. You can navigate away from this
as soon as you click 'Go'.
< / p >
< br / >
< p > < strong > Only series' that exist on your watchlist will be post-processed with your current
post-processing options.< br / > The remainder will not be moved from the given directory< / strong > < / p >
< div class = "row" >
< label for = "" > Path to Manually Run< / label >
< input type = "text" value = "Enter the full path to post-process" name = "nzb_folder" size = "70" / >
< input type = "hidden" name = "nzb_name" value = 'Manual Run' / >
< / div >
< input type = "button" value = "Go Manual Run!" onclick = "doAjaxCall('post_process',$(this),'tabs',true);return false;" >
< / fieldset >
< / form >
< / td >
< / tr >
< / div >
2012-09-13 15:27:34 +00:00
2013-09-07 06:05:32 +00:00
< div id = "tabs-3" >
< table class = "configtable" summary = "Advanced Options" >
2013-07-10 01:45:10 +00:00
2013-09-07 06:05:32 +00:00
< tr >
< td >
< fieldset >
< div class = "links" >
< legend > Force Options< / legend >
< a href = "#" onclick = "doAjaxCall('forceSearch',$(this))" data-success = "Checking for wanted issues successful" data-error = "Error checking wanted issues" > < span class = "ui-icon ui-icon-search" > < / span > Force Check for Wanted Issues< / a >
< a href = "#" onclick = "doAjaxCall('forceUpdate',$(this))" data-success = "Update active comics successful" data-error = "Error forcing update Comics" > < span class = "ui-icon ui-icon-heart" > < / span > Force Update Active Comics< / a >
< a href = "#" onclick = "doAjaxCall('checkGithub',$(this))" data-success = "Checking for update successful" data-error = "Error checking for update" > < span class = "ui-icon ui-icon-refresh" > < / span > Check for mylar Updates< / a >
2013-07-10 01:45:10 +00:00
< / div >
2013-09-07 06:05:32 +00:00
< / fieldset >
< / td >
< td >
< fieldset >
2013-07-10 01:45:10 +00:00
< legend > Export< / legend >
< div class = "links" >
2013-09-07 06:05:32 +00:00
< a href = "#" onclick = "doAjaxCall('wanted_Export',$(this))" data-sucess = "Exported to Wanted list." data-error = "Failed to export. Check logs" > < span class = "ui-icon ui-icon-refresh" > < / span > Export Wanted to CSV< / a >
2013-07-10 01:45:10 +00:00
< / div >
2013-09-07 06:05:32 +00:00
< br / > < br / >
2013-07-10 01:45:10 +00:00
< legend > Hidden Options< / legend >
< div classs = "links" >
2013-09-07 06:05:32 +00:00
< a href = "readlist" > Reading List Management< / a > < br / >
< a href = "importResults" > Import Results Management< / a >
2013-07-10 01:45:10 +00:00
< / div >
2013-09-07 06:05:32 +00:00
< / fieldset >
< / td >
< / tr >
< / table >
< / div >
2013-07-10 01:45:10 +00:00
2012-09-13 15:27:34 +00:00
< / div >
< /%def>
< %def name="javascriptIncludes()">
< script >
2013-09-07 06:05:32 +00:00
function addScanAction() {
$('#autoadd').append('< input type = "hidden" name = "scan" value = 1 / > ');
};
2012-09-13 15:27:34 +00:00
function initThisPage() {
jQuery( "#tabs" ).tabs();
initActions();
2013-09-07 06:05:32 +00:00
initConfigCheckbox("#imp_move");
2012-09-13 15:27:34 +00:00
};
$(document).ready(function() {
initThisPage();
});
< / script >
< /%def>