fixes
[redakcja.git] / apps / catalogue / templates / catalogue / image_detail.html
diff --git a/apps/catalogue/templates/catalogue/image_detail.html b/apps/catalogue/templates/catalogue/image_detail.html
new file mode 100755 (executable)
index 0000000..fea775b
--- /dev/null
@@ -0,0 +1,29 @@
+{% extends "catalogue/base.html" %}
+{% load book_list comments i18n %}
+
+{% block content %}
+
+
+<h1>{{ object.title }}</h1>
+
+
+{% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
+<table class='editable'><tbody>
+    {{ form.as_table }}
+    {% if editable %}
+        <tr><td></td><td><button type="submit">{% trans "Save" %}</button></td></tr>
+    {% endif %}
+</tbody></table>
+{% if editable %}</form>{% endif %}
+
+
+<div class='section'>
+    <h2>{% trans "Comments" %}</h2>
+
+    {% render_comment_list for object %}
+    {% with object.get_absolute_url as next %}
+        {% render_comment_form for object %}
+    {% endwith %}
+</div>
+
+{% endblock content %}