<form action="{% url 'post_comment' %}" method="POST">

  {% csrf_token %}

  {{ comment_form.content_type }}
  {{ comment_form.object_pk }}
  {{ comment_form.timestamp }}
  {{ comment_form.security_hash }}

  <input type="hidden" name="next" value="{{ next }}">
  <input type="hidden" name="reply_to" value="0"></input>

  <fieldset class="form-group {% if comment_form.comment.errors %}has-error{% endif %}">
    {% if comment_form.comment.errors %}
      <div class="alert alert-danger" role="alert">
        <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
        <span class="sr-only">Erreur :</span>
          {{ comment_form.comment.errors | striptags }}
      </div>
    {% endif %}
    <textarea class="form-control input-sm"
      name="{{ comment_form.comment.name }}"
      id="id_{{ comment_form.comment.name }}"
      placeholder="Ajouter mon commentaire..."></textarea>
  </fieldset>
  <input class="btn btn-block btn-sm btn-primary" type="submit" name="post" class="submit-post" value="Commenter">

</form>
