2020-10-19 08:26:08 +00:00
|
|
|
{% extends "base.html" %}
|
2015-03-02 15:31:25 +00:00
|
|
|
{% load i18n %}
|
2020-10-19 08:26:08 +00:00
|
|
|
{% load static %}
|
|
|
|
|
2020-05-19 16:53:54 +00:00
|
|
|
{% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In" %}{% endblock %}
|
2020-10-19 08:26:08 +00:00
|
|
|
|
|
|
|
{% block style %}
|
|
|
|
<link href="{% static "css/signin.css" %}" rel="stylesheet">
|
|
|
|
{% endblock style %}
|
|
|
|
|
2015-03-02 15:31:25 +00:00
|
|
|
{% block content %}
|
2020-10-19 08:26:08 +00:00
|
|
|
<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">
|
2021-07-07 11:12:38 +00:00
|
|
|
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
|
2020-10-19 08:26:08 +00:00
|
|
|
{% trans "Incorrect username or password." %}
|
2015-03-24 14:16:46 +00:00
|
|
|
</div>
|
2020-10-19 08:26:08 +00:00
|
|
|
{% endif %}
|
|
|
|
<form class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
|
|
|
|
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
2020-10-23 08:35:32 +00:00
|
|
|
<input type="text" class="form-control" name="username" placeholder="{% trans "User" %}" autocapitalize="none" autocorrect="off" autofocus>
|
2020-10-19 08:26:08 +00:00
|
|
|
<input type="password" class="form-control" name="password" placeholder="{% trans "Password" %}">
|
|
|
|
<input type="hidden" name="next" value="{{ next }}">
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="d-grid">
|
|
|
|
<button class="btn btn-lg btn-success" type="submit">{% trans "Sign In" %}</button>
|
|
|
|
</div>
|
2020-10-19 08:26:08 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2015-03-02 15:31:25 +00:00
|
|
|
{% endblock %}
|