2015-04-02 13:20:46 +00:00
|
|
|
{% extends "base_auth.html" %}
|
2015-03-02 15:31:25 +00:00
|
|
|
{% load i18n %}
|
2015-03-24 14:16:46 +00:00
|
|
|
{% block title %}{% trans "WebVirtCloud - Sign In" %}{% endblock %}
|
2015-03-02 15:31:25 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2015-03-24 14:16:46 +00:00
|
|
|
<div class="page-header">
|
|
|
|
<a href="/"><h1>WebVirtCloud</h1></a>
|
|
|
|
</div>
|
2015-03-02 15:31:25 +00:00
|
|
|
<div class="col-xs-12" role="main">
|
|
|
|
{% if form.errors %}
|
|
|
|
<div class="alert alert-danger">
|
2018-08-01 14:18:51 +00:00
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
2015-03-02 15:31:25 +00:00
|
|
|
{% trans "Incorrect username or password." %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<form class="form-signin" method="post" role="form">{% csrf_token %}
|
|
|
|
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
2015-03-24 14:16:46 +00:00
|
|
|
<input type="text" class="form-control" name="username" placeholder="Login" autocapitalize="none" autocorrect="off" autofocus>
|
2015-03-02 15:31:25 +00:00
|
|
|
<input type="password" class="form-control" name="password" placeholder="Password">
|
2018-09-28 10:33:21 +00:00
|
|
|
<input name="next" id="next" type="hidden" value="{% url 'allinstances' %}">
|
2015-03-02 15:31:25 +00:00
|
|
|
<button class="btn btn-lg btn-success btn-block" type="submit">{% trans "Sign In" %}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|