From 5ccc81333628c768ffe16bc1319a991836c8ab13 Mon Sep 17 00:00:00 2001 From: Retspen Date: Tue, 24 Mar 2015 16:16:46 +0200 Subject: [PATCH] Fixed login page --- static/css/signin.css | 54 ++++++++++++++++++++++++++++++++++++++++ templates/base_auth.html | 17 +++---------- templates/login.html | 8 +++--- templates/logout.html | 5 +++- 4 files changed, 66 insertions(+), 18 deletions(-) create mode 100644 static/css/signin.css diff --git a/static/css/signin.css b/static/css/signin.css new file mode 100644 index 0000000..7e39d61 --- /dev/null +++ b/static/css/signin.css @@ -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; +} diff --git a/templates/base_auth.html b/templates/base_auth.html index 89e9488..a7680bb 100644 --- a/templates/base_auth.html +++ b/templates/base_auth.html @@ -16,16 +16,7 @@ - - - - - - - {% block style %}{% endblock %} - - - + @@ -37,16 +28,14 @@ - +
{% block content %}{% endblock %} +
- - - {% block script %}{% endblock %} \ No newline at end of file diff --git a/templates/login.html b/templates/login.html index ada3510..362fdf7 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,8 +1,11 @@ {% extends "base_auth.html" %} {% load i18n %} -{% block title %}{% trans "Sign In" %}{% endblock %} +{% block title %}{% trans "WebVirtCloud - Sign In" %}{% endblock %} {% block content %}
+
{% if form.errors %}
@@ -12,8 +15,7 @@ {% endif %}