mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 23:55:24 +00:00
Fixed login page
This commit is contained in:
parent
9497eb7c89
commit
5ccc813336
4 changed files with 66 additions and 18 deletions
54
static/css/signin.css
Normal file
54
static/css/signin.css
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
.form-signin {
|
||||||
|
max-width: 330px;
|
||||||
|
padding: 15px;
|
||||||
|
margin: 50px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin .form-signin-heading,
|
||||||
|
.form-signin .checkbox {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin .checkbox {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin .form-control {
|
||||||
|
position: relative;
|
||||||
|
font-size: 16px;
|
||||||
|
height: auto;
|
||||||
|
padding: 10px;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin .form-control:focus {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin input[type="text"] {
|
||||||
|
margin-bottom: -1px;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin input[type="password"] {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout {
|
||||||
|
margin: 100px auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
|
@ -16,16 +16,7 @@
|
||||||
<link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
|
<link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
|
||||||
|
|
||||||
<!-- SB admin CSS -->
|
<!-- SB admin CSS -->
|
||||||
<link href="{% static "css/sb-admin.css" %}" rel="stylesheet">
|
<link href="{% static "css/signin.css" %}" rel="stylesheet">
|
||||||
|
|
||||||
<!-- WebVirtCloud CSS -->
|
|
||||||
<link href="{% static "css/webvirtcloud.css" %}" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Aditional CSS -->
|
|
||||||
{% block style %}{% endblock %}
|
|
||||||
|
|
||||||
<!-- Custom Fonts -->
|
|
||||||
<link href="{% static "font-awesome/css/font-awesome.min.css" %}" rel="stylesheet" type="text/css">
|
|
||||||
|
|
||||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||||
|
@ -37,16 +28,14 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div class="container">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
<script src="{% static "js/jquery.js" %}"></script>
|
<script src="{% static "js/jquery.js" %}"></script>
|
||||||
|
|
||||||
<!-- Bootstrap Core JavaScript -->
|
<!-- Bootstrap Core JavaScript -->
|
||||||
<script src="{% static "js/bootstrap.min.js" %}"></script>
|
<script src="{% static "js/bootstrap.min.js" %}"></script>
|
||||||
|
|
||||||
{% block script %}{% endblock %}
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -1,8 +1,11 @@
|
||||||
{% extends "base_auth.html" %}
|
{% extends "base_auth.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block title %}{% trans "Sign In" %}{% endblock %}
|
{% block title %}{% trans "WebVirtCloud - Sign In" %}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="page-header">
|
||||||
|
<a href="/"><h1>WebVirtCloud</h1></a>
|
||||||
|
</div>
|
||||||
<div class="col-xs-12" role="main">
|
<div class="col-xs-12" role="main">
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
|
@ -12,8 +15,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form class="form-signin" method="post" role="form">{% csrf_token %}
|
<form class="form-signin" method="post" role="form">{% csrf_token %}
|
||||||
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
||||||
<input type="text" class="form-control" name="username" placeholder="Login" autocapitalize="none"
|
<input type="text" class="form-control" name="username" placeholder="Login" autocapitalize="none" autocorrect="off" autofocus>
|
||||||
autocorrect="off" autofocus>
|
|
||||||
<input type="password" class="form-control" name="password" placeholder="Password">
|
<input type="password" class="form-control" name="password" placeholder="Password">
|
||||||
<input name="next" id="next" type="hidden" value="{% url 'instances' %}">
|
<input name="next" id="next" type="hidden" value="{% url 'instances' %}">
|
||||||
<button class="btn btn-lg btn-success btn-block" type="submit">{% trans "Sign In" %}</button>
|
<button class="btn btn-lg btn-success btn-block" type="submit">{% trans "Sign In" %}</button>
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
{% extends "base_auth.html" %}
|
{% extends "base_auth.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block title %}{% trans "Sign Out" %}{% endblock %}
|
{% block title %}{% trans "WebVirtCloud - Sign Out" %}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="page-header">
|
||||||
|
<a href="/"><h1>WebVirtCloud</h1></a>
|
||||||
|
</div>
|
||||||
<div class="col-xs-12" role="main">
|
<div class="col-xs-12" role="main">
|
||||||
<div class="logout">
|
<div class="logout">
|
||||||
<h1>{% trans "Successful log out" %}</h1>
|
<h1>{% trans "Successful log out" %}</h1>
|
||||||
|
|
Loading…
Reference in a new issue