regluit/frontend/templates/edition_uploads.html

62 lines
2.2 KiB
HTML

{% extends "basedocumentation.html" %}
{% block doccontent %}
<div class="work_campaigns">
<b>Title</b>: {{ edition.title}}<br />
<b>Publisher</b> : {{ edition.publisher_name }}<br />
<b>Authors</b>:
<ul>
{% if edition.pk and edition.authors %}
{% for author in edition.authors.all %}
<li>{{ author.name }}</li>
{% endfor %}
{% endif %}
</ul>
<b>ISBN-13</b>: {{ edition.isbn_13 }}<br />
<b>OCLC Number</b>: {{ edition.oclc }}<br />
<b>Google Books ID</b>: {{ edition.googlebooks_id }}<br />
<b>GoodReads ID</b>: {{ edition.goodreads_id }}<br />
<b>LibraryThing ID</b>: {{ edition.librarything_id }}<br />
</div>
{% if edition.ebook_files.all %}
<h2> Ebook Files for this Edition</h2>
<ul>
{% for ebook_file in edition.ebook_files.all %}
<li>{{ebook_file.file}} created {{ebook_file.created}} </li>
{% endfor %}
</ul>
{% endif %}
{% if uploaded %}
<h2> Your file was successfully loaded. </h2>
{% if watermarked %}
<p> Reference id: <b>{{watermarked.referenceid}}</b></p>
<ul>
<li><a href="{{watermarked.download_link_epub}}">Watermarked epub for testing</a></li>
<li><a href="{{watermarked.download_link_mobi}}">Watermarked mobi for testing</a></li>
</ul>
{% else %}
<p>
<span class="yikes">Unfortunately, your file failed testing.</span>
The error(s) were: <pre>
{{ upload_error }}</pre>
{% endif %}
{% endif %}
<h2>Upload Ebook files</h2>
<p>At this time, we accept only EPUB files for "Buy to Unglue" campaigns. Use the <a href=https://code.google.com/p/epubcheck/">epubcheck</a> tool to make sure everything will work properly.</p>
<form method="POST" action="#" enctype="multipart/form-data">
{% csrf_token %}
{{form.as_p}}
<input type="submit" id="submit_file" value="submit ebook file">
</form>
{% if edition.work %}
<h2>More Edition Management</h2>
<div><a href="{% url new_edition edition.work.id edition.id %}">Edit this edition</a></div>
{% if edition.work.last_campaign %}
<div><a href="{% url manage_campaign edition.work.last_campaign.id %}">Manage this campaign</a></div>
{% endif %}
{% endif %}
{% endblock %}