{% load i18n %}
{% load static %}
{% load compress %}
{% load widget_tweaks %}
{#{% load crispy_forms_tags %}#}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>{{ page_title }}</title>
    {% compress css %}
        <link rel="stylesheet"
              href="{% static "bootstrap/dist/css/bootstrap.css" %}">
        <link rel="stylesheet"
              href="{% static "bootstrap/dist/css/bootstrap-theme.css" %}">
        <link rel="stylesheet"
              href="{% static "font-awesome/css/font-awesome.css" %}">
    {% endcompress %}
</head>
<body>
<div class="container center-block">
    <div class="col-md-6 col-md-offset-3">
        <form action="" method="POST" class="form-horizontal">
            <fieldset class="container-fluid scheduler-border">
                <legend>{% trans "Login" %}</legend>
                {% csrf_token %}
                <div class="form-group">
                    <label class="control-label col-sm-3"
                           for="username">{% trans "Username" %}</label>

                    <div class="input-group col-sm-7">
                            <span class="input-group-addon">
                                <i class="glyphicon glyphicon-user"></i>
                            </span>
                        {% render_field form.username class+="form-control" %}
                    </div>
                    <div class="col-sm-2"></div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-3"
                           for="password">{% trans "Password" %}</label>

                    <div class="input-group col-sm-7">
                            <span class="input-group-addon">
                                <i class="glyphicon glyphicon-asterisk"></i>
                            </span>
                        {% render_field form.password class+="form-control" %}
                    </div>
                    <div class="col-sm-2"></div>
                </div>
                <button type="submit" name="submit"
                        class="btn btn-block btn-primary">Login
                </button>
            </fieldset>
        </form>
    </div>
</div>
</body>
</html>
