dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20054
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9019: fixed badly formed login box (for data entry)
------------------------------------------------------------
revno: 9019
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-11-14 11:34:24 +0100
message:
fixed badly formed login box (for data entry)
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js
--
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-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-11-14 10:01:55 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-11-14 10:34:24 +0000
@@ -106,7 +106,17 @@
}
else
{
- setHeaderMessage( '<form style="display:inline;"><label for="username">Username</label><input name="username" id="username" type="text" size="10"/><label for="password">Password</label><input name="password" id="password" type="password" size="10"/><button id="login_button" type="button">Login</button></form>' );
+ var form = [
+ '<form style="display:inline;">',
+ '<label for="username">Username</label>',
+ '<input name="username" id="username" type="text" style="width: 70px; margin-left: 10px; margin-right: 10px" size="10"/>',
+ '<label for="password">Password</label>',
+ '<input name="password" id="password" type="password" style="width: 70px; margin-left: 10px; margin-right: 10px" size="10"/>',
+ '<button id="login_button" type="button">Login</button>',
+ '</form>'
+ ].join('');
+
+ setHeaderMessage( form );
ajax_login();
}
} );