{% extends 'layout.html' %}
{% block title %}{% trans %}Sign in{% endtrans %}{% endblock %}
{% block body %}
<div class='container'>
    <div class='col-sm-offset-3 col-sm-6'>
        <center>
            <h1>{% if header_name %}{{ header_name }}{% else %}rdiffweb{% endif %}</h1>
            <p class='light'>
                {% if welcome_msg %}
                    {% autoescape false %}{{ welcome_msg }}{% endautoescape %}
                {% else %}  
            	    {% trans %}Originally developed by Josh Nisly, rdiffweb is a web interface for browsing and restoring from rdiff-backup repositories.{% endtrans %}
            	    <a href="http://www.patrikdufresne.com/en/rdiffweb/">rdiffweb</a>
                    {% trans %}version {{ version }}{% endtrans %}
            	{% endif %}
            </p>
        </center>
    </div>
    <!-- /content -->
</div>
<!-- /container -->
<div class="container login-page">
    <form class="form-signin" role="form" method="post" 
    		action="/login/" id="form-login">
        <input type="hidden" name="redirect"
            value="{{ redirect }}" />
        <h2 class="form-signin-heading">{{ _('Sign in') }}</h2>
        {% include 'message.html' %}
        <p>{% trans %}Enter your username and password to log in.{% endtrans %}</p>
        <input type="text" class="form-control" placeholder="{{ _('Username') }}"
            name="login" value="{{ login }}" id="username"
            required autofocus>
        <input type="password" class="form-control" placeholder="{{ _('Password') }}"
            name="password" id="password" required>
        <button class="btn btn-lg btn-primary btn-block" type="submit">{{ _('Sign in') }}</button>
    </form>
</div>
{% endblock %}
