aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/comments/form.html
diff options
context:
space:
mode:
authorbnewbold <bnewbold@eta.mit.edu>2009-01-25 09:52:32 -0500
committerbnewbold <bnewbold@eta.mit.edu>2009-01-25 09:52:32 -0500
commit17dd049b947cb447628002bae3068581733565f1 (patch)
tree6d91538e68cbe5e778eb3e2e73f289295aa4f7b7 /bn_django/templates/comments/form.html
parent85fec94e25e471e4bcdeeafba91deddecd69033a (diff)
downloadbnewnet-17dd049b947cb447628002bae3068581733565f1.tar.gz
bnewnet-17dd049b947cb447628002bae3068581733565f1.zip
tweaked comments form, journal starting to work
Diffstat (limited to 'bn_django/templates/comments/form.html')
-rw-r--r--bn_django/templates/comments/form.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/bn_django/templates/comments/form.html b/bn_django/templates/comments/form.html
new file mode 100644
index 0000000..67068e8
--- /dev/null
+++ b/bn_django/templates/comments/form.html
@@ -0,0 +1,23 @@
+{% load comments i18n %}
+<form action="{% comment_form_target %}" method="post">
+<table>
+ {% for field in form %}
+ {% if field.is_hidden %} {{ field }} {% else %}
+ {% ifequal field.name "honeypot" %}
+ <span style="display:none;">{{ field.label_tag }}{{ field }}</span>
+ {% else %}
+
+<tr><td class="comment_field_name">
+ <span {% if field.errors %} class="error"{% endif %}>
+ {% if field.errors %}{{ field.errors }}{% endif %}
+ {{ field.label_tag }}</span></td><td>{{ field }}
+</td></tr>
+ {% endifequal %}
+ {% endif %}
+ {% endfor %}
+<tr><td class="comment_field_name"></td><td>
+ <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
+ <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" />
+</td></tr>
+</table>
+</form>