Fix for Bug 5743, 5743 - Make login errors a little nicer github/bug_5743 origin/new/enh/bug_5743
authorOwen Leonard <oleonard@myacpl.org>
Fri, 11 Feb 2011 06:14:11 +0000 (01:14 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 13 Feb 2011 20:14:46 +0000 (09:14 +1300)
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/css/login.css
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl

index 88b8782..5ed2c64 100644 (file)
@@ -20,7 +20,7 @@ a:hover {
 }
 
 body   {
-       background: #f9fcfe;
+       background: #f5f5f5;
 }
 
 form, label input {
@@ -52,13 +52,29 @@ label {
 }
 
 #login #login_error {
-       background: #c00;
+       background: #D23F3F;
        border: 1px solid #a40000;
        color: #fff;
-       font-size: 16px;
+       font-size: 120%;
+       line-height: 140%;
        font-weight: bold;
+       margin: 1em 0;
        padding: .5em;
        text-align: center;
+       text-shadow: 0px 1px 1px #6C1010;
+       filter: dropshadow(color=#6C1010, offx=0, offy=1);
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+
+#login #login_error a:link,
+#login #login_error a:visited {
+       color : #FFC;
+}
+
+#login #login_error a:hover,
+#login #login_error a:active {
+       color : #FCFC4D;
 }
 
 #login h1 {
index fe2cd96..becdfe2 100644 (file)
 <div id="login">
 <h1><a href="http://koha-community.org">Koha</a></h1>
 <!-- TMPL_IF NAME="nopermission" -->
-<div id="login_error"><strong>Error: </strong>Unauthorized user<a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
+<div id="login_error"><strong>Error:</strong> You do not have permission to access this page. <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Click to log out</a></div>
 <!-- /TMPL_IF -->
 
 <!-- TMPL_IF NAME="timed_out" -->
-<div id="login_error"><strong>Error: </strong>Session timed out, please log in again</div>
+<div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
 <!-- /TMPL_IF -->
 
 <!-- TMPL_IF NAME="different_ip" -->
-<div id="login_error"><strong>Error: </strong>IP address has changed, please log in again </div>
+<div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
 <!-- /TMPL_IF -->
 
 <!-- TMPL_IF NAME="wrongip" -->