2012-09-13 15:27:34 +00:00
|
|
|
<%inherit file="base.html" />
|
|
|
|
<%!
|
2014-08-10 16:50:43 +00:00
|
|
|
from mylar import db
|
|
|
|
import mylar
|
2012-09-13 15:27:34 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<%def name="headerIncludes()">
|
|
|
|
<div id="subhead_container">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<a href="manage" class="back">« Back to manage overview</a>
|
|
|
|
</%def>
|
|
|
|
|
|
|
|
|
|
|
|
<%def name="body()">
|
|
|
|
<div id="manageheader" class="title">
|
2014-08-10 16:50:43 +00:00
|
|
|
<h1 class="clearfix">Manage Issues</h1>
|
2012-09-13 15:27:34 +00:00
|
|
|
</div>
|
2014-08-10 16:50:43 +00:00
|
|
|
|
|
|
|
<form action="manageIssues" method="get">
|
|
|
|
<div>
|
|
|
|
<label>Manage Issues with Status  </label><select name="status">
|
|
|
|
%for curStatus in ['Wanted', 'Downloaded', 'Snatched', 'Skipped', 'Archived', 'Ignored', 'Failed']:
|
|
|
|
<%
|
|
|
|
if curStatus == status:
|
|
|
|
selected = 'selected'
|
|
|
|
else:
|
|
|
|
selected = ''
|
|
|
|
%>
|
|
|
|
<option value="${curStatus}" ${selected}>${curStatus}</option>
|
|
|
|
%endfor
|
|
|
|
</select>
|
|
|
|
<input type="submit" value="Manage">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</br></br>
|
|
|
|
<form action="markissues" method="get" id="markissues">
|
|
|
|
<div id="markissues" style="top:0;">
|
|
|
|
<select name="action" onChange="doAjaxCall('markissues',$(this),'table',true);" data-error="You didn't select any issues">
|
2012-09-13 15:27:34 +00:00
|
|
|
<option disabled="disabled" selected="selected">Choose...</option>
|
|
|
|
<option value="Wanted">Wanted</option>
|
2014-08-10 16:50:43 +00:00
|
|
|
<option value="Archived">Archived</option>
|
2012-09-13 15:27:34 +00:00
|
|
|
<option value="Skipped">Skipped</option>
|
2014-08-10 16:50:43 +00:00
|
|
|
<option value="Ignored">Ignored</option>
|
|
|
|
<option value="Failed">Failed</option>
|
2012-09-13 15:27:34 +00:00
|
|
|
</select>
|
2014-08-10 16:50:43 +00:00
|
|
|
selected issues
|
2012-09-13 15:27:34 +00:00
|
|
|
<input type="hidden" value="Go">
|
|
|
|
</div>
|
2014-08-10 16:50:43 +00:00
|
|
|
|
|
|
|
<div class="table_wrapper">
|
|
|
|
|
|
|
|
<table class="display" id="manage_issues">
|
2012-09-13 15:27:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-08-10 16:50:43 +00:00
|
|
|
<th id="select"><input type="checkbox" onClick="toggle(this)" class="checkbox" align="left" /></th>
|
|
|
|
<th id="name">Series</th>
|
|
|
|
<th id="int_issue">Int_Issue</th>
|
|
|
|
<th id="issue">Issue</th>
|
|
|
|
<th id="pubdate">Pub Date</th>
|
|
|
|
<th id="releasedate">Store Date</th>
|
2012-09-13 15:27:34 +00:00
|
|
|
<th id="status">Status</th>
|
2014-08-10 16:50:43 +00:00
|
|
|
<th id="options">Options</th>
|
2012-09-13 15:27:34 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-08-10 16:50:43 +00:00
|
|
|
%for issue in issues:
|
|
|
|
<tr>
|
|
|
|
<td id="select"><input type="checkbox" name="${issue['IssueID']}" class="checkbox" /></td>
|
2015-02-09 18:44:10 +00:00
|
|
|
<%
|
|
|
|
try:
|
|
|
|
if issue['ReleaseComicName']:
|
|
|
|
annual = True
|
|
|
|
else:
|
|
|
|
annual = False
|
|
|
|
except:
|
|
|
|
annual = False
|
|
|
|
%>
|
|
|
|
%if annual:
|
|
|
|
<td id="name"><span title="${issue['ReleaseComicName']}"></span><a href="comicDetails?ComicID=${issue['ComicID']}">${issue['ReleaseComicName']}</a></td>
|
|
|
|
%else:
|
|
|
|
<td id="name"><span title="${issue['ComicName']}"></span><a href="comicDetails?ComicID=${issue['ComicID']}">${issue['ComicName']}</a></td>
|
|
|
|
%endif
|
2014-08-10 16:50:43 +00:00
|
|
|
<td id="int_issue">${issue['Int_IssueNumber']}</td>
|
|
|
|
<td id="issue">${issue['Issue_Number']}</td>
|
|
|
|
<td id="pubdate">${issue['IssueDate']}</td>
|
|
|
|
<td id="releasedate">${issue['ReleaseDate']}</td>
|
|
|
|
<td id="status">${issue['Status']}</td>
|
|
|
|
<td id="options"></td>
|
|
|
|
</tr>
|
2012-09-13 15:27:34 +00:00
|
|
|
%endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-08-10 16:50:43 +00:00
|
|
|
</form>
|
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>
|
2014-08-10 16:50:43 +00:00
|
|
|
<script>
|
|
|
|
function initThisPage() {
|
|
|
|
$('#manage_issues').dataTable(
|
|
|
|
{
|
|
|
|
"bDestroy": true,
|
|
|
|
"aoColumnDefs": [
|
|
|
|
{ 'bSortable': false, 'aTargets': [ 0 , 2 ] },
|
|
|
|
{ 'bVisible': false, 'aTargets': [2] },
|
|
|
|
{ 'sType': 'numeric', 'aTargets': [2] },
|
|
|
|
{ 'iDataSort': [2], 'aTargets': [3] }
|
|
|
|
],
|
|
|
|
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, 'All' ]],
|
|
|
|
"oLanguage": {
|
|
|
|
"sLengthMenu":"Show _MENU_ results per page",
|
|
|
|
"sEmptyTable": "No results",
|
|
|
|
"sInfo":"Showing _START_ to _END_ of _TOTAL_ results",
|
|
|
|
"sInfoEmpty":"Showing 0 to 0 of 0 results",
|
|
|
|
"sInfoFiltered":"(filtered from _MAX_ total results)",
|
|
|
|
"sSearch" : ""},
|
|
|
|
"bStateSave": true,
|
|
|
|
"iDisplayLength": 25,
|
|
|
|
"sPaginationType": "full_numbers",
|
|
|
|
"aaSorting": [[1, 'desc'],[2, 'desc']]
|
|
|
|
});
|
|
|
|
resetFilters("issue");
|
|
|
|
}
|
2012-09-13 15:27:34 +00:00
|
|
|
|
2014-08-10 16:50:43 +00:00
|
|
|
$(document).ready(function(){
|
|
|
|
initThisPage();
|
|
|
|
});
|
|
|
|
$(window).load(function(){
|
|
|
|
initFancybox();
|
|
|
|
});
|
|
|
|
</script>
|
2012-09-13 15:27:34 +00:00
|
|
|
|
|
|
|
</%def>
|