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 %}