Make login form less ugly, and styleable.
authorJoe Cooper <joe@virtualmin.com>
Thu, 10 May 2007 19:22:00 +0000 (19:22 +0000)
committerJoe Cooper <joe@virtualmin.com>
Thu, 10 May 2007 19:22:00 +0000 (19:22 +0000)
blue-theme/unauthenticated/style.css
session_login.cgi

index 19c06fd..1cf96ba 100644 (file)
@@ -83,6 +83,9 @@ table.formsection, table.ui_table, table.sortable, .main {
   margin: 4px;
   background-color: #EFEFEF;
 }
+table.loginform {
+  width:40%;
+}
 tr.mainsel {
   background-color: #ddffbb;
 }
index acfe0ff..1eff59e 100755 (executable)
@@ -49,7 +49,7 @@ elsif ($in{'timed_out'}) {
 print "$text{'session_prefix'}\n";
 print "<form action=$gconfig{'webprefix'}/session_login.cgi method=post>\n";
 print "<input type=hidden name=page value='".&html_escape($in{'page'})."'>\n";
-print "<table border width=40%>\n";
+print "<table border width=40% class='loginform formsection'>\n";
 print "<tr $tb> <td><b>$text{'session_header'}</b></td> </tr>\n";
 print "<tr $cb> <td align=center><table cellpadding=3>\n";
 if ($gconfig{'realname'}) {