summaryrefslogtreecommitdiff
path: root/project/templates/comments/form.html
diff options
context:
space:
mode:
Diffstat (limited to 'project/templates/comments/form.html')
-rw-r--r--project/templates/comments/form.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/project/templates/comments/form.html b/project/templates/comments/form.html
new file mode 100644
index 0000000..c889a87
--- /dev/null
+++ b/project/templates/comments/form.html
@@ -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>