Commit 06430137 authored by Okhin's avatar Okhin

Fixing the comment form

parent 0bf5a839
{% load comments i18n %}
{% load bootstrap3 %}
<form class="form" action="{% comment_form_target %}" method="post">
{% csrf_token %}
{% if next %}
<div>
<input type="hidden" name="next" value="{{ next }}"/>
</div>
{% endif %}
{% for field in form %}
{% if field.name == "honeypot" %}
{% bootstrap_field field layout=horizontal form_group_class="honeypot" %}
{% else %}
{% bootstrap_field field layout=horizontal %}
{% endif %}
{% endfor %}
<div class="btn-group">
<button type="submit" name="post" class="btn btn-success submit-post"/>{% trans "Post" %}</button>
<button type="submit" name="preview" class="btn btn-default submit-preview"/>{% trans "Preview" %}</button>
</div>
</form>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment