2012-09-13 15:27:34 +00:00
|
|
|
<%inherit file="base.html" />
|
|
|
|
<%!
|
|
|
|
from mylar import db
|
|
|
|
import mylar
|
|
|
|
%>
|
|
|
|
|
|
|
|
<%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">
|
2012-09-14 17:29:01 +00:00
|
|
|
<h1 class="clearfix">Manage comics</h1>
|
2012-09-13 15:27:34 +00:00
|
|
|
</div>
|
2012-09-18 04:00:43 +00:00
|
|
|
<form action="markComics" method="get" id="markComics">
|
2014-06-11 18:39:50 +00:00
|
|
|
<div id="markcomics" style="top:0;">
|
2012-09-18 04:00:43 +00:00
|
|
|
<select name="action" onChange="doAjaxCall('markComics',$(this),'table',true);" data-error="You didn't select any comics">
|
2012-09-13 15:27:34 +00:00
|
|
|
<option disabled="disabled" selected="selected">Choose...</option>
|
|
|
|
<option value="pause">Pause</option>
|
|
|
|
<option value="resume">Resume</option>
|
|
|
|
<option value="refresh">Refresh</option>
|
|
|
|
<option value="delete">Delete</option>
|
|
|
|
</select>
|
|
|
|
selected comics
|
|
|
|
<input type="hidden" value="Go">
|
|
|
|
</div>
|
2014-06-11 18:39:50 +00:00
|
|
|
<div class="table_wrapper">
|
|
|
|
|
2012-09-13 15:27:34 +00:00
|
|
|
<table class="display" id="manage_comic">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="select"><input type="checkbox" onClick="toggle(this)" /></th>
|
|
|
|
<th id="albumart"></th>
|
|
|
|
<th id="name">Comic Name</th>
|
|
|
|
<th id="status">Status</th>
|
|
|
|
<th id="latest">Latest Issue</th>
|
|
|
|
<th id="publisher">Publisher</th>
|
|
|
|
<th id="have">Have</th>
|
|
|
|
<th id="lastupdated">Updated</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
%for comic in comics:
|
2014-06-02 19:02:28 +00:00
|
|
|
<tr>
|
2012-09-13 15:27:34 +00:00
|
|
|
<td id="select"><input type="checkbox" name="${comic['ComicID']}" class="checkbox" /></td>
|
2012-09-27 03:39:19 +00:00
|
|
|
<td id="albumart"><div><img src="${comic['ComicImage']}" height="75" width="50"></div></td>
|
2013-07-10 01:45:10 +00:00
|
|
|
<td id="name"><span title="${comic['ComicSortName']}"></span><a href="comicDetails?ComicID=${comic['ComicID']}">${comic['ComicName']} (${comic['ComicYear']})</a></td>
|
2014-06-02 19:02:28 +00:00
|
|
|
<td id="status">${comic['recentstatus']}</td>
|
2012-09-13 15:27:34 +00:00
|
|
|
<td id="latest">${comic['LatestIssue']} (${comic['LatestDate']})</td>
|
|
|
|
<td id="publisher">${comic['ComicPublisher']}</td>
|
2014-06-02 19:02:28 +00:00
|
|
|
<td id="have" valign="center"><span title="${comic['percent']}"></span><div class="progress-container"><div style="width:${comic['percent']}%"><div style="width:${comic['percent']}%"><div class="havetracks">${comic['haveissues']}/${comic['totalissues']}</div></div></div></td>
|
2012-09-13 15:27:34 +00:00
|
|
|
<td id="lastupdated">${comic['DateAdded']}</td>
|
|
|
|
</tr>
|
|
|
|
%endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-06-11 18:39:50 +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>
|
|
|
|
<script>
|
2014-06-02 19:02:28 +00:00
|
|
|
function initThisPage() {
|
|
|
|
$('#manage_comic').dataTable(
|
|
|
|
{
|
|
|
|
"bDestroy": true,
|
|
|
|
"aoColumnDefs": [
|
|
|
|
{ 'bSortable': false, 'aTargets': [ 0, 1 ] }
|
|
|
|
],
|
|
|
|
"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": [[2, 'desc'],[3, 'desc']]
|
|
|
|
});
|
|
|
|
resetFilters("comic");
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
initThisPage();
|
|
|
|
});
|
|
|
|
$(window).load(function(){
|
|
|
|
initFancybox();
|
|
|
|
});
|
|
|
|
</script>
|
2012-09-13 15:27:34 +00:00
|
|
|
|
|
|
|
</%def>
|