2015-04-28 03:24:02 +00:00
{% extends 'basedocumentation.html' %}
{% load url from future %}
2013-06-17 22:53:21 +00:00
{% block doccontent %}
< div class = "work_campaigns" >
2015-04-28 03:24:02 +00:00
< b > Title< / b > : < a href = "{% url 'work' edition.work.id %}" > {{ edition.title}}< / a > < br / >
2013-06-17 22:53:21 +00:00
< 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 %}
2013-08-27 03:56:01 +00:00
< h2 > Ebook Files for this Edition< / h2 >
< ul >
{% for ebook_file in edition.ebook_files.all %}
2014-09-04 22:33:20 +00:00
{% if ebook_file.file %}
2014-10-04 20:51:16 +00:00
< li > {% if ebook_file.active %}< span class = "yikes" > ACTIVE< / span > {% endif %}< a href = "{{ebook_file.file.url}}" > {{ebook_file.file}}< / a > created {{ebook_file.created}} {% if ebook_file.asking %}(This file has had the campaign 'ask' added.){% endif %}< / li >
2014-09-04 22:33:20 +00:00
{% endif %}
2013-08-27 03:56:01 +00:00
{% endfor %}
< / ul >
{% endif %}
{% if uploaded %}
< h2 > Your file was successfully loaded. < / h2 >
2014-01-15 13:32:55 +00:00
{% ifequal edition.work.last_campaign.type 2 %}
{% if watermarked %}
< p > Reference id: < b > {{watermarked.referenceid}}< / b > < / p >
< ul >
2014-02-25 18:58:33 +00:00
< li > < a href = "{{watermarked.download_link_epub}}" > Processed epub for testing< / a > < / li >
< li > < a href = "{{watermarked.download_link_mobi}}" > Processed mobi (kindle) for testing< / a > < / li >
2014-01-15 13:32:55 +00:00
< / ul >
2014-02-05 22:02:21 +00:00
{% else %}{% if upload_error %}
2014-01-15 13:32:55 +00:00
< p >
< span class = "yikes" > Unfortunately, your file failed testing.< / span >
The error(s) were: < pre >
{{ upload_error }}< / pre >
< / p >
2014-02-05 22:02:21 +00:00
{% endif %}{% endif %}
2014-01-15 13:32:55 +00:00
{% endifequal %}
{% ifequal edition.work.last_campaign.type 3 %}
{% if upload_error %}
< p > < span class = "yikes" > Unfortunately, your file failed testing.< / span >
The error(s) were: < pre >
{{ upload_error }}< / pre > < / p >
{% endif %}
{% endifequal %}
2013-06-17 22:53:21 +00:00
{% endif %}
2014-01-15 13:32:55 +00:00
{{ upload_error }}
2013-06-17 22:53:21 +00:00
< h2 > Upload Ebook files< / h2 >
2014-01-15 13:32:55 +00:00
{% ifequal edition.work.last_campaign.type 2 %}
2014-02-05 22:02:21 +00:00
< p > At this time, we accept only EPUB files for "Buy to Unglue" campaigns. Files for Kindle will be autogenerated.
2014-01-15 13:32:55 +00:00
{% endifequal %}
{% ifequal edition.work.last_campaign.type 3 %}
< p > You can upload PDF, EPUB and MOBI files for "Thanks for Ungluing" campaigns.
{% endifequal %}
For ePUB files, use the < a href = https://code.google.com/p/epubcheck/" > epubcheck< / a > tool to make sure everything will work properly.< / p >
2013-06-17 22:53:21 +00:00
< 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 >
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'new_edition' edition.work.id edition.id %}" > Edit this edition< / a > < / div >
2013-06-17 22:53:21 +00:00
{% if edition.work.last_campaign %}
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'manage_campaign' edition.work.last_campaign.id %}" > Manage this campaign< / a > < / div >
2013-06-17 22:53:21 +00:00
{% endif %}
{% endif %}
{% endblock %}