{% extends "site_base.html" %}
{% block comments %}
<!--
# Copyright (c) 2015 Riverbed Technology, Inc.
#
# This software is licensed under the terms and conditions of the MIT License
# accompanying the software ("License").  This software is distributed "AS IS"
# as set forth in the License.
-->
{% endblock %}


{% load url from future %}
{% block login %}{% endblock %}

{% block content %}

<div class="container">
        <div class="login-box block-centered">
            <form class="form-horizontal well" method="post" action="{% url 'django.contrib.auth.views.login' %}">
                {% csrf_token %}
                    <legend>Welcome To<br>SteelScript Application Framework</legend>

                    <label for="id_username" class="sr-only" id="label_username">Username</label>
                    <input id="id_username" name="username" type="text" placeholder="Username" class="form-control block-centered">

                    <label for="id_password" class="sr-only" id="label_password">Password</label>
                    <input id="id_password" name="password" type="password" placeholder="Password" class="form-control block-centered">
                    {% if form.errors %}
                        <p class="text-danger text-center">Your username and/or password didn't match. Please try again.</p>
                    {% endif %}

                    <div class="row">
                        <div class="col-xs-12">
                            <button type="submit" id="submit" class="btn btn-primary button-loading" data-loading-text="Loading...">Sign in</button>
                        </div>
                    </div>

                <input type="hidden" name="next" value="{{ next }}" />
            </form>
        </div>
</div>

<script type="text/javascript">document.getElementById("id_username").focus();</script>
{% endblock %}
