aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/comments/form.html
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/templates/comments/form.html')
-rw-r--r--bn_django/templates/comments/form.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/bn_django/templates/comments/form.html b/bn_django/templates/comments/form.html
index 67068e8..39626f0 100644
--- a/bn_django/templates/comments/form.html
+++ b/bn_django/templates/comments/form.html
@@ -1,23 +1,22 @@
{% load comments i18n %}
<form action="{% comment_form_target %}" method="post">
<table>
- {% for field in form %}
- {% if field.is_hidden %} {{ field }} {% else %}
+{% if object.get_absolute_url %} <input type="hidden" name="next" value="{{ object.get_absolute_url }}" />{% endif %}
+ {% 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 %}
+ {{ field.label_tag }}
+ </span></td><td>{{ field }}
+ {% ifequal field.name "name" %} <i>(required)</i> {% else %}{% ifequal field.name "email" %} <i>(required)</i>{% endifequal %}{% endifequal %}
+</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" %}" />
+ <i>(no HTML or other markup)</i>
</td></tr>
</table>
</form>