project/templates/comments/form.html
changeset 1 fda1c66b25f9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/comments/form.html	Fri Oct 30 15:09:12 2009 +0530
@@ -0,0 +1,20 @@
+{% load comments %}
+<h3>Comments</h3>
+<form action="{% comment_form_target %}" method="POST">
+  {% for field in form %}
+    {% if field.is_hidden %}
+      {{ field }}
+    {% else %}
+      <p
+        {% if field.errors %} class="error"{% endif %}
+        {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+        {% if field.errors %}{{ field.errors }}{% endif %}
+        {{ field.label_tag }} {{ field }}
+      </p>
+    {% endif %}
+  {% endfor %}
+  <p class="submit">
+    <input type="submit" name="submit" class="submit-post" value="Post" />
+    <input type="submit" name="submit" class="submit-preview" value="Preview" />
+  </p>
+</form>