2012-09-13 15:27:34 +00:00
|
|
|
<%inherit file="base.html"/>
|
|
|
|
<%!
|
|
|
|
import mylar
|
2013-05-04 04:40:32 +00:00
|
|
|
from mylar import db
|
|
|
|
from mylar.helpers import checked
|
|
|
|
|
2012-09-13 15:27:34 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<%def name="headerIncludes()">
|
|
|
|
<div id="subhead_container">
|
|
|
|
<div id="subhead_menu">
|
|
|
|
<a id="menu_link_refresh" href="manualpull">Refresh Pull-list</a>
|
2013-04-08 16:31:41 +00:00
|
|
|
<a id="menu_link_delete" href="pullrecreate">Recreate Pull-list</a>
|
2013-05-04 04:40:32 +00:00
|
|
|
<a id="menu_link_scan" class="button">Download</a>
|
|
|
|
<!-- <a id="menu_link_refresh" onclick="doAjaxCall('MassWeeklyDownload?pulldate=${pulldate}, $(this)),'table'" href="#" data-success="Now Downloading Comics to : ${mylar.GRABBAG_DIR}">Download.</a> -->
|
2012-09-13 15:27:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a href="home" class="back">« Back to overview</a>
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="body()">
|
2013-02-17 10:31:18 +00:00
|
|
|
<div class="clearfix">
|
2012-09-13 15:27:34 +00:00
|
|
|
<h1>Weekly Pull list for : ${pulldate}</h1>
|
|
|
|
</div>
|
|
|
|
|
2013-05-04 04:40:32 +00:00
|
|
|
<div>
|
|
|
|
<form action="MassWeeklyDownload" method="GET" id="MassDownload">
|
|
|
|
<fieldset>
|
|
|
|
<div class="row">
|
|
|
|
<input type="checkbox" name="weekfolder" id="weekfolder" value="1" ${checked(mylar.WEEKFOLDER)} /><label>Store in Weekly Directory</label>
|
|
|
|
<small>Create ${weekfold}</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input type="hidden" name="pulldate" value=${pulldate}>
|
|
|
|
<input type="submit" style="display:none" />
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
<div class="table_wrapper">
|
|
|
|
|
2012-09-13 15:27:34 +00:00
|
|
|
<table class="display" id="pull_table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="publisher">Publisher</th>
|
2013-02-17 10:31:18 +00:00
|
|
|
<th id="comicname">Comic</th>
|
2012-09-13 15:27:34 +00:00
|
|
|
<th id="comicnumber">Number</th>
|
|
|
|
<th id="status">Status</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
%for weekly in weeklyresults:
|
|
|
|
<%
|
|
|
|
if weekly['STATUS'] == 'Skipped':
|
2013-01-11 21:20:51 +00:00
|
|
|
grade = 'Z'
|
2012-09-13 15:27:34 +00:00
|
|
|
elif weekly['STATUS'] == 'Wanted':
|
2013-01-11 21:20:51 +00:00
|
|
|
grade = 'X'
|
2012-09-13 15:27:34 +00:00
|
|
|
elif weekly['STATUS'] == 'Snatched':
|
|
|
|
grade = 'C'
|
|
|
|
else:
|
2013-01-11 21:20:51 +00:00
|
|
|
grade = 'A'
|
2012-09-13 15:27:34 +00:00
|
|
|
%>
|
|
|
|
<tr class="grade${grade}">
|
|
|
|
%if pullfilter is True:
|
2013-01-28 20:31:43 +00:00
|
|
|
<td class="publisher">${weekly['PUBLISHER']}</td>
|
|
|
|
<td class="comicname">${weekly['COMIC']}</td>
|
|
|
|
<td class="comicnumber">${weekly['ISSUE']}</td>
|
|
|
|
<td class="status">${weekly['STATUS']}
|
2012-09-13 15:27:34 +00:00
|
|
|
%if weekly['STATUS'] == 'Skipped':
|
2013-01-28 20:31:43 +00:00
|
|
|
<a href="searchit?name=${weekly['COMIC'] | u}&issue=${weekly['ISSUE']}&mode=pullseries"><span class="ui-icon ui-icon-plus"></span>add series</a>
|
2013-04-12 02:14:27 +00:00
|
|
|
<a href="queueissue?ComicName=${weekly['COMIC'] | u}&ComicIssue=${weekly['ISSUE']}&mode=pullwant"><span class="ui-icon ui-icon-plus"></span>one off</a>
|
2012-09-13 15:27:34 +00:00
|
|
|
%endif
|
|
|
|
</td>
|
|
|
|
%endif
|
|
|
|
</tr>
|
|
|
|
%endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-01-28 20:31:43 +00:00
|
|
|
</div>
|
2012-09-13 15:27:34 +00:00
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="headIncludes()">
|
|
|
|
<link rel="stylesheet" href="interfaces/default/css/data_table.css">
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="javascriptIncludes()">
|
|
|
|
<script src="js/libs/jquery.dataTables.min.js"></script>
|
2013-05-04 04:40:32 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$("#menu_link_scan").click(function() {
|
|
|
|
$('#MassDownload').submit();
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2012-09-13 15:27:34 +00:00
|
|
|
<script>
|
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
function initThisPage() {
|
2012-09-13 15:27:34 +00:00
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
initActions();
|
|
|
|
$('#pull_table').dataTable (
|
|
|
|
{
|
|
|
|
"bDestroy": true,
|
2013-02-17 10:31:18 +00:00
|
|
|
//"aoColumnDefs": [
|
|
|
|
// { 'bSortable': false, 'aTargets': [ 2,3 ] }
|
|
|
|
//],
|
2013-04-14 02:55:00 +00:00
|
|
|
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, 'All' ]],
|
2013-01-28 20:31:43 +00:00
|
|
|
"oLanguage": {
|
|
|
|
"sLengthMenu":"Show _MENU_ issues per page",
|
|
|
|
"sEmptyTable": "No issue information available",
|
|
|
|
"sInfo":"Showing _TOTAL_ issues",
|
|
|
|
"sInfoEmpty":"Showing 0 to 0 of 0 issues",
|
|
|
|
"sInfoFiltered":"(filtered from _MAX_ total issues)",
|
|
|
|
"sSearch": ""},
|
2013-04-14 02:55:00 +00:00
|
|
|
"bStateSave": true,
|
2013-01-28 20:31:43 +00:00
|
|
|
"iDisplayLength": 25,
|
|
|
|
"sPaginationType": "full_numbers",
|
|
|
|
"aaSorting": [[0, 'desc'],[1, 'asc']]
|
|
|
|
});
|
|
|
|
resetFilters("weekly");
|
|
|
|
setTimeout(function(){
|
|
|
|
initFancybox();
|
|
|
|
},1500)
|
|
|
|
}
|
2012-09-13 15:27:34 +00:00
|
|
|
|
2013-01-28 20:31:43 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
initThisPage();
|
|
|
|
});
|
|
|
|
</script>
|
2012-09-13 15:27:34 +00:00
|
|
|
</%def>
|