summaryrefslogtreecommitdiff
path: root/design/templates/comments/form.html
blob: 776a543ab02f598cd51b0e8a92e677f1a24335e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% load comments i18n %}
<div class="comment--form--wrapper">
<p class="comment--form--header">Comments?</p>
<form action="{% comment_form_target %}" method="post" class="comment--form">{% csrf_token %}
  {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
<input type="hidden" name="rder" value="{{ form.instance.content_object.get_absolute_url }}" />
  {% for field in form %}
    {% if field.is_hidden %}
      <div>{{ field }}</div>
    {% else %}
      {% if field.errors %}{{ field.errors }}{% endif %}
      <p
        {% if field.errors %} class="error"{% endif %}
        {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
        {{ field.label_tag }} {{ field }}
      </p>
    {% endif %}
  {% endfor %}
  <p class="submit">
    <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" />
    <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
  </p>
</form>
<p style="font-size: 95%;"><strong>All comments are moderated</strong>, so you won&#8217;t see it right away. If we&#8217;re on the road sometimes it takes a few days, but we&#8217;ll get it up as soon as we can. You can use Markdown or HTML to format your comments. The allowed tags are <code>&lt;b&gt;, &lt;i&gt;, &lt;em&gt;, &lt;strong&gt;, &lt;a&gt;</code>. To create a new paragraph hit return twice. Remember Kurt Vonnegut's rule: &#8220;god damn it, you&#8217;ve got to be kind.&#8221;</p>
</div>