[open-ils-commits] r11144 - in trunk/Open-ILS/xul/staff_client/chrome: content/auth locale/en-US skin
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 11 16:01:00 EST 2008
Author: phasefx
Date: 2008-11-11 16:00:56 -0500 (Tue, 11 Nov 2008)
New Revision: 11144
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/auth/verify_credentials.js
trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
trunk/Open-ILS/xul/staff_client/chrome/skin/global.css
Log:
a few tweaks to verify credentials interface
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/auth/verify_credentials.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/auth/verify_credentials.js 2008-11-11 20:44:05 UTC (rev 11143)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/auth/verify_credentials.js 2008-11-11 21:00:56 UTC (rev 11144)
@@ -19,28 +19,52 @@
'command',
function() {
try {
+ var barcode = document.getElementById('barcode_prompt').value;
+ var name = document.getElementById('name_prompt').value;
+ var password = document.getElementById('password_prompt').value;
var req = net.simple_request(
'AUTH_VERIFY_CREDENTIALS',
[
ses(),
- document.getElementById('barcode_prompt').value,
- document.getElementById('name_prompt').value,
- hex_md5( document.getElementById('password_prompt').value )
+ barcode,
+ name,
+ hex_md5( password )
]
);
if (typeof req.ilsevent != 'undefined') { throw(req); }
var msg_area = document.getElementById('messages');
- var desc = document.createElement('description'); msg_area.insertBefore(desc, msg_area.firstChild);
- desc.setAttribute('class', String(req) == '1' ? 'success_text' : 'failure_text');
- var text = document.createTextNode(
- String(req) == '1' ?
- offlineStrings.getString('menu.cmd_verify_credentials.correct_credentials') :
- offlineStrings.getString('menu.cmd_verify_credentials.incorrect_credentials')
+ var hbox = document.createElement('hbox'); msg_area.insertBefore(hbox, msg_area.firstChild);
+ var success_msg = document.createElement('description'); hbox.appendChild(success_msg);
+ success_msg.setAttribute('class', String(req) == '1' ? 'success_text' : 'failure_text');
+ success_msg.appendChild(
+ document.createTextNode(
+ String(req) == '1' ?
+ offlineStrings.getString('menu.cmd_verify_credentials.correct_credentials') :
+ offlineStrings.getString('menu.cmd_verify_credentials.incorrect_credentials')
+ )
);
- desc.appendChild(text);
+ var name_msg = document.createElement('description'); hbox.appendChild(name_msg);
+ name_msg.appendChild(
+ document.createTextNode(
+ offlineStrings.getFormattedString('menu.cmd_verify_credentials.name_feedback',[name])
+ )
+ );
+ var barcode_msg = document.createElement('description'); hbox.appendChild(barcode_msg);
+ barcode_msg.appendChild(
+ document.createTextNode(
+ offlineStrings.getFormattedString('menu.cmd_verify_credentials.barcode_feedback',[barcode])
+ )
+ );
+ var date_msg = document.createElement('description'); hbox.appendChild(date_msg);
+ date_msg.appendChild(
+ document.createTextNode(
+ new Date()
+ )
+ );
+
} catch(E) {
alert(E);
}
Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-11-11 20:44:05 UTC (rev 11143)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-11-11 21:00:56 UTC (rev 11144)
@@ -132,6 +132,8 @@
menu.cmd_verify_credentials.tabname=Verify Credentials
menu.cmd_verify_credentials.correct_credentials=Success testing credentials!
menu.cmd_verify_credentials.incorrect_credentials=Failure testing credentials!
+menu.cmd_verify_credentials.name_feedback=Username: <%1$s>
+menu.cmd_verify_credentials.barcode_feedback=Barcode: <%1$s>
menu.spawn_search.msg=Editor would like to search for: %1$s
menu.close_all_tabs.error=Error closing all tabs
menu.new_tab.tab=Tab
Modified: trunk/Open-ILS/xul/staff_client/chrome/skin/global.css
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/skin/global.css 2008-11-11 20:44:05 UTC (rev 11143)
+++ trunk/Open-ILS/xul/staff_client/chrome/skin/global.css 2008-11-11 21:00:56 UTC (rev 11144)
@@ -19,8 +19,8 @@
.my_overflow { overflow: auto; }
-.success_text { color: green; }
-.failure_text { color: red; }
+.success_text { color: white; background-color: green; }
+.failure_text { color: white; background-color: red; }
.text_left { text-align: left; }
.text_right { text-align: right; }
More information about the open-ils-commits
mailing list