1 {% extends "documents/base.html" %}
4 {% load build_absolute_uri from fnp_common %}
6 {% block titleextra %}{% trans "Cover image" %}{% endblock %}
9 <h1>{% trans "Cover image" %}</h1>
11 <div style="float: right; margin-bottom:1em;">
13 <a href="{{ object.use_file.url }}"><img style="max-width: 565px; max-height: 833px"
14 src="{{ object.use_file.url }}?{{ object.cut_top }}.{{ object.cut_bottom }}.{{ object.cut_left }}.{{ object.cut_right }}" />
16 <br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
17 {% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
18 {{ object.license_name }}
19 {% if object.license_url %}</a>{% endif %}
21 <br/>{% trans "source" %}: {{ object.download_url }}
26 <form method="post" enctype="multipart/form-data">
29 <table class='editable'><tbody>
32 <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
35 {% if editable %}</form>{% endif %}
38 <h2>{% trans "Used in:" %}</h2>
39 {% if object.book_set %}
41 {% for book in object.book_set.all %}
42 <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
46 <p>{% trans "None" %}</p>
50 <textarea style="width:100%" rows="5">
51 <dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.use_file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
52 <dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{% if object.title %}{{ object.title }}, {% endif %}{% if object.author %}{{ object.author }}, {% endif %}{{ object.license_name }}</dc:relation.coverImage.attribution>
53 <dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source>