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 %}
24 <form method="post" enctype="multipart/form-data">
27 <table class='editable'><tbody>
30 <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
33 {% if editable %}</form>{% endif %}
36 <h2>{% trans "Used in:" %}</h2>
37 {% if object.book_set %}
39 {% for book in object.book_set.all %}
40 <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
44 <p>{% trans "None" %}</p>
48 <textarea style="width:100%" rows="5">
49 <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>
50 <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>
51 <dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source>