2017-08-08 16:39:23 +00:00
|
|
|
{% if work.ebooks_all %}
|
|
|
|
<h3>Manage eBooks</h3>
|
|
|
|
<ul>
|
|
|
|
{% for ebook in work.ebooks_all %}
|
|
|
|
<li>
|
2017-08-16 20:20:43 +00:00
|
|
|
<a href="{{ ebook.url }}">{{ ebook.format }}, {{ ebook.rights }}</a>, created {{ ebook.created }}{% if ebook.user %},
|
2017-08-08 16:39:23 +00:00
|
|
|
by <a href="{% url 'supporter' ebook.user.id %}">{{ ebook.user }}</a>{% endif %}.
|
|
|
|
{% if ebook.filesize %}{{ ebook.filesize }}{% else %}??{% endif %}B
|
|
|
|
{% if ebook.version_label %}{{ ebook.version }}{% endif %}
|
|
|
|
{% if ebook.active %}<input type="submit" name="deactivate_ebook_{{ ebook.id }}" value="deactivate" class="deletebutton" title="deactivate ebook" />{% else %}<input type="submit" name="activate_ebook_{{ ebook.id }}" value="activate" class="deletebutton" title="activate ebook" />{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<input type="submit" name="activate_all_ebooks" value="activate all ebooks" class="deletebutton" title="activate all ebooks" />
|
|
|
|
<input type="submit" name="deactivate_all_ebooks" value="deactivate all ebooks" class="deletebutton" title="deactivate all ebooks" />
|
|
|
|
{% endif %}
|