
{% load i18n widget_tweaks %}


<form data-role="comment-form" method="post" autocomplete="off">
    <div class="write-comment">
        <h4 class="heading">{% trans "Новий коментар" %}</h4>

        {% csrf_token %}

        {{ form.content_type }}
        {{ form.object_id }}

        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    {{ form.name.label }}
                    {{ form.name|add_class:'form-control' }}
                    {{ form.name.errors }}
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    {{ form.email.label }}
                    {{ form.email|add_class:'form-control' }}
                    {{ form.email.errors }}
                </div>
            </div>
            <div class="col-sm-12">
                <div class="form-group">
                    {{ form.text.label }}
                    {{ form.text|add_class:'form-control'|attr:'rows:5' }}
                    {{ form.text.errors }}
                </div>
            </div>
            <div class="col-sm-12">
                <div class="form-group">
                    {{ form.captcha }}
                    {{ form.captcha.errors }}
                </div>
            </div>
            <div class="col-sm-12">
                <div class="form-group">
                    <button type="submit" class="btn btn-primary">
                        <i class="fa fa-pencil"></i> {% trans "Надіслати" %}
                    </button>
                </div>
            </div>
        </div>
    </div>
</form>
