------------------------------------------------------------ revno: 1205 author: Saptarshi <sun...@gmail.com> committer: Administrator <administra...@sunbiz-lappy> branch nick: trunk timestamp: Thu 2009-12-10 23:00:36 +0100 message: Added focus to username field and some HTML validations Had done this earlier in March 09... got lost with rev #510 modified: dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/login.html dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/loginfailed.html
-- lp:dhis2 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk Your team DHIS 2 developers is subscribed to branch lp:dhis2. To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/login.html' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/login.html 2009-09-02 10:16:58 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/login.html 2009-12-10 22:00:36 +0000 @@ -1,35 +1,39 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> -<head> -<title>DHIS 2</title> -<script language="javascript" src="../util/jquery.js"></script> -<link type="text/css" rel="stylesheet" media="screen" href="../css/login.css"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body> -<div class="loginField" align="center"> - <p><img src="logo_banner.png"></p> - <form action="../../dhis-web-commons-security/login.action" method="post"> - <table> - <tr> - <td colspan="2" style="height:40px"> - <tr> - <tr> - <td><label for="j_username">Username</label></td> - <td><input type="text" id="j_username" name="j_username" style="width:18em"></td> - </tr> - <tr> - <td><label for="j_password">Password</label></td> - <td><input type="password" id="j_password" name="j_password" style="width:18em"></td> - </tr> - <tr> - <td></td> - <td><input type="submit" value="Login" style="width:9em"> - <input - type="reset" value="Clear" style="width:9em"></td> - </tr> - </table> - </form> -</div> -</body> + <head> + <title>DHIS 2</title> + <script type="text/javascript" src="../util/jquery.js"></script> + <script type="text/javascript"> + $(document).ready(function() { + $('#j_username').focus(); + }); + </script> + <link type="text/css" rel="stylesheet" media="screen" href="../css/login.css"> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + </head> + <body> + <div class="loginField" align="center"> + <p><img alt="" src="logo_banner.png"></p> + <form action="../../dhis-web-commons-security/login.action" method="post"> + <table> + <tr> + <td colspan="2" style="height:40px"></td> + </tr> + <tr> + <td><label for="j_username">Username</label></td> + <td><input type="text" id="j_username" name="j_username" style="width:18em"></td> + </tr> + <tr> + <td><label for="j_password">Password</label></td> + <td><input type="password" id="j_password" name="j_password" style="width:18em"></td> + </tr> + <tr> + <td></td> + <td><input type="submit" value="Login" style="width:9em"> + <input type="reset" value="Clear" style="width:9em"></td> + </tr> + </table> + </form> + </div> + </body> </html> === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/loginfailed.html' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/loginfailed.html 2009-09-02 10:16:58 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/loginfailed.html 2009-12-10 22:00:36 +0000 @@ -1,38 +1,42 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> -<head> -<title>DHIS 2</title> -<script language="javascript" src="../util/jquery.js"></script> -<link type="text/css" rel="stylesheet" media="screen" href="../css/login.css"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -</head> -<body> -<div class="loginField" align="center"> - <p><img src="logo_banner.png"></p> - <form action="../../dhis-web-commons-security/login.action" method="post"> - <table> - <tr> - <td colspan="2" style="height:40px"> - <tr> - <tr> - <td><label for="j_username">Username</label></td> - <td><input type="text" id="j_username" name="j_username" style="width:18em"></td> - </tr> - <tr> - <td><label for="j_password">Password</label></td> - <td><input type="password" id="j_password" name="j_password" style="width:18em"></td> - </tr> - <tr> - <td></td> - <td><input type="submit" value="Login" style="width:9em"> - <input - type="reset" value="Clear" style="width:9em"></td> - </tr> - <tr> - <td colspan="2" style="height:40px"> - <tr> - </table> - </form> - <span class="loginMessage">Wrong username or password. Please try again.</span> </div> -</body> + <head> + <title>DHIS 2</title> + <script type="text/javascript" src="../util/jquery.js"></script> + <script type="text/javascript"> + $(document).ready(function() { + $('#j_username').focus(); + }); + </script> + <link type="text/css" rel="stylesheet" media="screen" href="../css/login.css"> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + </head> + <body> + <div class="loginField" align="center"> + <p><img alt="" src="logo_banner.png"></p> + <form action="../../dhis-web-commons-security/login.action" method="post"> + <table> + <tr> + <td colspan="2" style="height:40px"></td> + </tr> + <tr> + <td><label for="j_username">Username</label></td> + <td><input type="text" id="j_username" name="j_username" style="width:18em"></td> + </tr> + <tr> + <td><label for="j_password">Password</label></td> + <td><input type="password" id="j_password" name="j_password" style="width:18em"></td> + </tr> + <tr> + <td></td> + <td><input type="submit" value="Login" style="width:9em"> + <input type="reset" value="Clear" style="width:9em"></td> + </tr> + <tr> + <td colspan="2" style="height:40px"> + </tr> + </table> + </form> + <span class="loginMessage">Wrong username or password. Please try again.</span> </div> + </body> </html>
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp