diff options
author | luxagraf <sng@luxagraf.net> | 2014-05-23 10:48:20 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-05-23 10:48:20 -0400 |
commit | 4bae11bb25a8e3c43118891d17fd8e981ecf8dc6 (patch) | |
tree | 6c452743157ad9403ec54a7399b10069688d048f /design/templates/comments/form.html | |
parent | eebf53322e0d19be42e41d8f355c5d2a744441ae (diff) |
Refactored code to use PEP8/Pyflake coding styles and cleaned up cruft a
bit
Diffstat (limited to 'design/templates/comments/form.html')
-rw-r--r-- | design/templates/comments/form.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/design/templates/comments/form.html b/design/templates/comments/form.html new file mode 100644 index 0000000..f8bb18d --- /dev/null +++ b/design/templates/comments/form.html @@ -0,0 +1,18 @@ +{% 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 |