Module: check_mk
Branch: master
Commit: 6ece370e20ef980b3c694b7ced7295f7cc976a45
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6ece370e20ef98…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 1 17:02:09 2011 +0100
Some login dialog styling
---
web/htdocs/check_mk.css | 45 +++++++++++++++++++++++++++-------
web/htdocs/images/mk_logo_126x72.gif | Bin 0 -> 2234 bytes
web/htdocs/login.py | 32 ++++++++----------------
3 files changed, 47 insertions(+), 30 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 9c3c35a..78f9105 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -2717,16 +2717,16 @@ table.debug_vars td {
width: 100%;
text-align:center;
}
-/*#login #logo {
- width: 320px;
- margin: 7em auto;
- height: 55px;
+#login #logo {
+ width: 126px;
+ margin: 5em auto 0 auto;
+ height: 72px;
background-repeat: no-repeat;
- background-image: url("images/sidebar_top.png");
-}*/
+ background-image: url("images/mk_logo_126x72.gif");
+}
#login h1 {
width: 300px;
- margin: 3em auto 2em auto;
+ margin: 0.2em auto 1em auto;
}
#login a {
color: #ffffff;
@@ -2734,9 +2734,36 @@ table.debug_vars td {
#login a:hover {
text-decoration: none;
}
-#login #table {
- width: 320px; margin: 0 auto;
+#login #form {
+ width: 320px;
+ margin: 0 auto 10px auto;
+ padding: 8px 20px 8px 20px;
+ background-image: url("images/form_background.png");
+ border-radius: 15px;
+}
+#login p {
+ text-align: left;
+}
+#login label {
+ font-size: 1.4em;
+ padding-top: 0;
+ margin: 0;
}
+#login p input {
+ width: 312px;
+ font-size: 1.5em;
+ margin-top: 2px;
+}
+#login #table td.submit {
+ padding-top: 5px;
+}
+#login p.submit {
+ text-align: right;
+}
+#login p.submit input {
+ width: auto;
+}
+
#login #foot {
font-size: 0.8em;
font-style: italic;
diff --git a/web/htdocs/images/mk_logo_126x72.gif b/web/htdocs/images/mk_logo_126x72.gif
new file mode 100644
index 0000000..8122270
Binary files /dev/null and b/web/htdocs/images/mk_logo_126x72.gif differ
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index 93b9443..0365234 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -190,35 +190,25 @@ def login_page():
html.write("<div id=login>")
html.write("<div id=logo></div>")
html.write("<h1>Check_MK Multisite</h2>")
- html.write("<table id=table>")
- html.write("<tr class=form>\n")
- html.write("<td>")
+
+ html.write('<div id=form>')
html.begin_form("login", method = 'POST', add_transid = False)
html.hidden_field('_origin', htmllib.attrencode(origin))
- html.write("<div class=whiteborder>\n")
- html.write("<table class=\"form\">\n")
-
- html.write("<tr>")
- html.write("<td class=legend>%s</td>" % _('Username'))
- html.write("<td class=content>")
+ html.write('<p>')
+ html.write("<label class=legend for=_username>%s</label><br
/>" % _('Username'))
html.text_input("_username", size = 50)
- html.write("</td>")
- html.write("</tr>")
+ html.write('</p>')
- html.write("<tr>")
- html.write("<td class=legend>%s</td>" % _('Password'))
- html.write("<td class=content>")
+ html.write('<p>')
+ html.write("<label class=legend for=_password>%s</label><br
/>" % _('Password'))
html.password_input("_password", size = 50)
- html.write("</td>")
- html.write("</tr>")
+ html.write('</p>')
- html.write("<tr>")
- html.write("<td colspan=2 class=legend>")
+ html.write('<p class=submit>')
html.button("_login", _('Login'))
- html.write("</td>")
- html.write("</tr>")
+ html.write('</p>')
+ html.write('</div>')
- html.write("</table>")
html.write("<div id=foot>Version: %s - © "
"<a href=\"http://mathias-kettner.de\">Mathias
Kettner</a></div>" % defaults.check_mk_version)
html.write("</div>")