diff options
Diffstat (limited to 'design/templates/comments/form.html')
-rw-r--r-- | design/templates/comments/form.html | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/design/templates/comments/form.html b/design/templates/comments/form.html index f8bb18d..776a543 100644 --- a/design/templates/comments/form.html +++ b/design/templates/comments/form.html @@ -1,18 +1,25 @@ -{% load comments i18n crispy_forms_tags fluent_comments_tags %}{% load url from future %} - -{% if not form.target_object|comments_are_open %} - <p>{% trans "Comments are closed." %}</p> -{% else %} - <form action="{% comment_form_target %}" method="post" class="js-comments-form comments-form form-horizontal" - data-ajax-action="{% url 'comments-post-comment-ajax' %}">{% csrf_token %} - {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %} - - {{ form|crispy }} - - <div class="form-actions"> - <input type="submit" name="post" class="btn btn-primary" value="{% trans "Post" %}" /> - <input type="submit" name="preview" class="btn" value="{% trans "Preview" %}" /> - {% ajax_comment_tags %} - </div> - </form> -{% endif %}
\ No newline at end of file +{% 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’t see it right away. If we’re on the road sometimes it takes a few days, but we’ll get it up as soon as we can. You can use Markdown or HTML to format your comments. The allowed tags are <code><b>, <i>, <em>, <strong>, <a></code>. To create a new paragraph hit return twice. Remember Kurt Vonnegut's rule: “god damn it, you’ve got to be kind.”</p> +</div> |