{% load i18n %}
<form method="post" action="" class="form-horizontal">
{% csrf_token %}

	{% if form.non_field_errors %}
		{% for error in form.non_field_errors %}
		<p><strong>{{ error }}</strong></p>
		{% endfor %}
	{% endif %}

        <div class="control-group">
        <label class="control-label" for="id_username">{% trans "Username" %}
        {% for error in form.username.errors %}<br /><i class="icon-warning-sign"></i> <font color="red">{{ error|escape }}</font>{% endfor %}
        </label>
        <div class="controls">
	{{ form.username }}
        </div>
        </div>

        <div class="control-group">
        <label class="control-label" for="id_password">{% trans "Password" %}
        {% for error in form.password.errors %}<br /><i class="icon-warning-sign"></i> <font color="red">{{ error|escape }}</font>{% endfor %}
        </label>
        <div class="controls">
	{{ form.password }}
        </div>
        </div>

        <div class="control-group"><div class="controls">
	<input type="submit" name="{{ submit_name }}" value="{% trans "Log in" %}" class="btn"/>
        </div></div>
</form>
