{% load icons comments %}
{% load url from future %}

{% include 'socialcomments/tabs.inc.html' %}

<form action="{{ comment_form_action|default:'comment/' }}#comment-form" method="post" class="form-horizontal">
	<div id="social-comment-form"></div>
	<div class="form-actions">
		{% csrf_token %}
		
		{% if obj %}
			<input type="hidden" name="content_type" value="{{ obj|contenttype }}" />
			<input type="hidden" name="object_id" value="{{ obj.pk }}" />
		{% endif %}
		
		<button type="submit" class="btn btn-success">{% icon 'ok' 'white' %} Submit comment</button>
		<small>Comments may require approval.</small>
	</div>
</form>

{% include 'socialcomments/script.inc.html' %}
