Template source: custom_comment_form.html

{% load crispy_forms_filters i18n %} <h2>{% trans "Write comment" %}</h2> <form id="comment_form_{{ article.pk }}"> <div class="hidden comment_form_success"> <p class="text-success"> <b>{% trans 'Your comment was successful.' %}</b> </p> </div> <div> {{ form.username | as_crispy_field }} <span class="ajax_error" id="error_{{ form.username.name }}_{{ article.pk }}"></span> {# ---------- #} {{ form.message | as_crispy_field }} <span class="ajax_error" id="error_{{ form.message.name }}_{{ article.pk }}"></span> <div class="captcha-container"> {# ---------- #} {{ form.captcha }} <button class='btn js-captcha-refresh' tabindex="-1"><i class="fa fa-refresh"></i></button> <input type="hidden" value="{{ article.pk }}" name="article" class="article_id" /> <span class="ajax_error" id="error_captcha_{{ article.pk }}"></span> </div> </div> {% csrf_token %} <input class="comment_form_btn_id btn btn-primary" data-id="{{ article.pk }}" type="submit" value="{% trans 'Send' %}"> </form>