1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-23 08:12:41 +00:00
mylar/data/interfaces/default/searchfix.html

108 lines
5.2 KiB
HTML
Executable file

<%inherit file="base.html" />
<%!
import mylar
from mylar.helpers import checked
%>
<%def name="headerIncludes()">
<div id="subhead_container">
<div id="subhead_menu">
<a id="menu_link_edit" href="manageComics">Some Button</a>
</div>
</div>
</%def>
<%def name="body()">
<div id="paddingheader">
<h1 class="clearfix">Search Question</h1>
</div>
<div id="tabs">
<ul>
<li><a href="#tabs-1">More Information</a></li>
</ul>
<div id="tabs-1" class="configtable">
<table>
<tr>
<td width="200">
<fieldset>
<div>
<img src="${comicimage}" alt="" height="350" width="230" />
</div>
<div class="row checkbox">
<input type="checkbox" name="add_to_csv" value="1"/><label><small>Add the selected entry to the custom_exceptions.csv (default)</small></label>
</div>
</fieldset>
</td>
<td>
<fieldset>
<legend>Error-Checking...</legend>
<p><strong>I can't add the requsted comic.</strong></p>
<p>I've figured out that the Comic that you've selected to watch isn't listed
correctly on the other databases I need to query. This is most likely due to
an incorrect spelling, but sometimes it could because the year is wrong, or even
the issues are incorrect. So you need to help me out on this one - please select
below which series from the list is the one that you want to add.<br/></p>
<br/>
<center><b>This is what you've given me to look for:</b><br/><br/>
<legend>${comicname} (${comicyear})</br>
${comicissues} Issues</legend></center>
<br/>
</fieldset>
</td>
</tr>
</table>
<table class="display" id="searchmanage_table">
<thead>
<tr>
<th id="comicpub">Publisher</th>
<th id="comicname">Comic Name</th>
<th id="comicissues">Year</th>
<th id="comicissues">Issues</th>
<th id="addcomic"></th>
</tr>
</thead>
<tbody>
%if cresults:
%for result in cresults:
<tr>
<td id="comicpub"><title="${result['ComicPublisher']}">${result['ComicPublisher']}</td>
<td id="comicname"><a href="${result['ComicURL']}" title="${result['ComicName']}" target="_blank">${result['ComicName']}</td>
<td id="comicissues"><title="${result['ComicYear']}">${result['ComicYear']}</td>
<td id="comicissues">${result['ComicIssues']}</td>
<td id="addcomic"><a href="from_Exceptions?comicid=${result['ComicID']}&comicname=${result['ComicName']}&comicyear=${result['ComicYear']}&comicissues=${result['ComicIssues']}&comicpublisher=${result['ComicPublisher']}&gcdid=${result['GCDID']}"><span class="ui-icon-plus"></span>Add Series</a></td>
</tr>
%endfor
%else:
<tr>
<td colspan="5"><center><legend>There are no results to display</legend></center></td>
</tr>
%endif
</div>
</tbody>
</table>
<form action="error_change" method="GET">
<input type="hidden" name="comicid" value=${comicid}>
<input type="hidden" name="comicyear" value=${comicyear}>
<input type="hidden" name="comicissues" value=${comicissues}>
<div><br/>
<label><center><strong>Didn't get it right? Enter what it should be (or the GCD-ID) here:</strong></label></center>
<center><input type="text" name="errorgcd" size="30"><input type="submit" value="Update"/></center>
</div>
</form>
</div>
</div>
</%def>
<%def name="javascriptIncludes()">
<script>
function initThisPage() {
jQuery( "#tabs" ).tabs();
initActions();
initConfigCheckbox("#add_to_csv");
};
$(document).ready(function() {
initThisPage();
});
</script>
</%def>