Redesign login template.

This commit is contained in:
Emanuel Schuetze 2012-09-07 21:25:18 +02:00
parent 6a3bead5f6
commit 94ffb3ab45
4 changed files with 39 additions and 10 deletions

View File

@ -3,8 +3,9 @@
{% load i18n %}
{% load staticfiles %}
{% block content %}
<h1>{% trans "Login" %}</h1>
{% block body %}
<div id="login-page" class="container">
<h2><img src="/static/img/logo-login.png" width="250px"></h2>
{% if form.errors %}
<div class="alert alert-error">
@ -21,7 +22,7 @@
<em>{{ first_time_message|safe }}</em>
</div>
{% endif %}
<form method="post" action="{% url user_login %}{% if next %}?next={{ next }}{% endif %}">
<form method="post" action="{% url user_login %}{% if next %}?next={{ next }}{% endif %}" class="well">
{% csrf_token %}
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i></span>
@ -52,4 +53,5 @@
});
</script>
{% endif %}
</div>
{% endblock %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,3 +1,7 @@
body {
background-color: #FAFAFA;
}
/* Header */
#header {
background-color: #333333;
@ -22,6 +26,7 @@
color: #999999;
}
/* Headings and Links */
h1 {
border-bottom: 1px solid #EEEEEE;
margin: 0px 0 30px;
@ -30,11 +35,37 @@ h1 {
h5 {
margin-bottom: 0px;
}
a:hover {
text-decoration: none;
}
/* Login page */
#login-page.container {
width: 320px;
margin-top: 20px;
}
#login-page h2 {
margin-left: 30px;
margin-bottom: 20px;
}
#login-page .well {
background-color: white;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px 6px 6px 6px;
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
margin-top: 20px;
padding-bottom: 20px;
line-height: 45px;
}
#login-page input {
width: 240px;
height: 30px;
font-size: 20px;
}
#login-page span.add-on {
height: 26px;
padding: 8px 5px 4px 5px;
}
/* show optional column */
.optional {
display: auto;

View File

@ -56,7 +56,7 @@
{% block submenu %}
{% endblock %}
-->
{% block body %}
<!-- Container -->
<div class="container-fluid" id="container">
@ -110,11 +110,8 @@
</div><!--/container-fluid-->
{% endblock %}<!--/body-->
<!-- JavaScript (Placed at the end of the document so the pages load faster) -->
<script src="{% static 'javascript/jquery.js' %}" type="text/javascript"></script>
<script src="{% static 'javascript/utils.js' %}" type="text/javascript"></script>
@ -122,6 +119,5 @@
<script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
{% block javascript %}
{% endblock %}
</body>
</html>