{% extends "base.html" %}
{% load i18n %}
{% load static %}

{% block title %}{% trans "WebVirtCloud" %}  - {% trans "Sign In" %}{% endblock %}

{% block style %}
<link href="{% static "css/signin.css" %}" rel="stylesheet">
{% endblock style %}

{% block content %}
<div class="page-header">
    <a class="" href="/"><h1>WebVirtCloud</h1></a>
</div>
<div class="col-12" role="main">
    {% if form.errors %}
        <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            {% trans "Incorrect username or password." %}
        </div>
    {% endif %}
    <form class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
        <h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
        <input type="text" class="form-control" name="username" placeholder="{% trans "User" %}" autocapitalize="none" autocorrect="off" autofocus>
        <input type="password" class="form-control" name="password" placeholder="{% trans "Password" %}">
        <input type="hidden" name="next" value="{{ next }}">
        <button class="btn btn-lg btn-success btn-block" type="submit">{% trans "Sign In" %}</button>
    </form>
</div>
{% endblock %}