{% extends "sitegate/signin/_form_base.html" %}
{% load i18n %}
{% block fields %}
    {% if signin_form.non_field_errors %}
    <div class="alert alert-danger">
        <ul class="unstyled">
            {% for error in signin_form.non_field_errors %}
            <li>{{ error }}</li>
            {% endfor %}
        </ul>
    </div>
    {% endif %}
    {% for field in signin_form %}
        <div class="form-group {% if field.errors %}has-error{% endif %}">
            {% if field.errors %}<div class="alert alert-danger">{{ field.errors.0 }}</div>{% endif %}
            {{ field }}
            {% if field.help_text %}<span class="help-block"><small>{{ field.help_text }}</small></span>{% endif %}
        </div>
    {% endfor %}
    <input type="submit" class="btn btn-default btn-block btn-primary" value="{% trans "Log in" %}" />
{% endblock %}
