Cover quick import.
[redakcja.git] / src / documents / templates / documents / book_detail.html
index 85da536..1c06f97 100644 (file)
 <div class="col-lg-3">
 <img class="cover-preview" src="{% url 'cover_preview' book.slug %}" />
 {% if book.dc_cover_image %}
-    <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
+  <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
 {% endif %}
+<br><br>
+
+<form action="{% url 'cover_quick_import' book.pk %}" method="post">
+  {% csrf_token %}
+  <input type="url" name="url">
+  <button type="submit" class="btn btn-sm btn-info">></button>
+</form>
+
+
 <br><br>
 <form action="{% url 'cover_preview' book.slug %}">
 <input type="hidden" name="download" value="1">
@@ -145,8 +154,8 @@ OkÅ‚adka w rozmiarze
               {% trans "book" %}
             </th>
             <th>{% trans "characters" %}</th>
-            <th>{% trans "words" %}</th>
             <th>{% trans "characters (with footnotes)" %}</th>
+            <th>{% trans "words" %}</th>
             <th>{% trans "words (with footnotes)" %}</th>
           </tr>
         </thead>