]> git.decadent.org.uk Git - memories.git/blobdiff - templates/photo/comment
Memories as at 1.3
[memories.git] / templates / photo / comment
diff --git a/templates/photo/comment b/templates/photo/comment
new file mode 100644 (file)
index 0000000..498e5b6
--- /dev/null
@@ -0,0 +1,18 @@
+<div class="comments">
+[% FOR comment = photo.comments %]
+    <div class="comment">
+        [% comment.name | html %] writes...<hr>
+        [% comment.content %]
+    </div>
+[% END %]
+    <div class="comment">
+        <form action="[%base%]/photo/add_comment/[%photo.id%]" method="post">
+        Name: <input name="name" /> <hr>
+        <textarea name="content" cols="60" rows="5"/>
+        </textarea>
+        <p>
+        <input type="submit" name="Comment on this picture" value="Comment on this picture">
+        </p>
+        </form>
+    </div>
+</div>