2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Main, Authentication Window -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/auth.css" type="text/css"?>
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
15 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_chrome.xul"?>
22 onload="try { main_init(); } catch(E) { alert(E); }"
23 onunload="try { G.auth.logoff(); } catch(E) { alert(E); }"
24 title="&staff.auth.title;" persist="width height sizemode"
25 width="640" height="480" windowtype="eg_main"
26 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
29 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
31 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var G;</script>
32 <script>dump('Loading main/main.xul\n');</script>
33 <scripts id="openils_util_scripts">
34 <script type="text/javascript" src="constants.js" />
35 <script type="text/javascript" src="../OpenILS/util/utils.js" />
36 <script type="text/javascript" src="../OpenILS/util/CGI.js" />
37 <script type="text/javascript" src="../OpenILS/util/md5.js" />
38 <script type="text/javascript" src="../OpenILS/util/JSON_v1.js" />
40 <script type="text/javascript" src="../OpenILS/util/fmall.js" />
41 <script type="text/javascript" src="../OpenILS/util/fmgen.js" />
43 <script type="text/javascript" src="../OpenILS/util/RemoteRequest.js" />
45 <script type="text/javascript" src="../OpenILS/util/OrgTree.js" />
47 <script type="text/javascript" src="../OpenILS/util/org_utils.js" />
49 <script>dump('Loaded main/main.xul\n');</script>
52 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
53 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/main.js"/>
55 dump("lang.version = &lang.version;" + '\n');
58 <script type="text/javascript" src="chrome://venkman/content/venkman-overlay.js"/>
59 <script type="application/x-javascript" src="chrome://inspector/content/hooks.js"/>
60 <script type="application/x-javascript" src="chrome://chromelist/content/overlay/ChromeListOverlay.js" />
62 <messagecatalog id="authStrings" src="chrome://open_ils_staff_client/locale/auth.properties"/>
63 <messagecatalog id="offlineStrings" src="chrome://open_ils_staff_client/locale/offline.properties"/>
65 <commandset id="auth_cmds">
66 <command id="cmd_login" />
67 <command id="cmd_logoff"/>
68 <command id="cmd_override" />
69 <command id="cmd_close_window"/>
70 <command id="cmd_standalone"/>
71 <command id="cmd_standalone_export"/>
72 <command id="cmd_standalone_import"/>
73 <command id="cmd_js_console"/>
74 <command id="cmd_debugger"/>
75 <command id="cmd_inspector"/>
76 <command id="cmd_chrome_list"/>
77 <command id="cmd_js_shell"/>
78 <command id="cmd_clear_cache"/>
79 <command id="cmd_test_server"/>
80 <command id="cmd_ssl_exception" hidden="true"/>
83 <keyset id="auth_keys">
84 <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
85 <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
86 <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
89 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
91 <deck id="main_deck" flex="1">
92 <groupbox id="main_groupbox" flex="1" style="overflow: auto;">
93 <caption id="main_caption" label="&staff.main.auth.caption;"/>
95 <button type="menu" label="Help" accesskey="l">
97 <menuitem id="about_btn" label="&staff.auth.about_btn.label;" accesskey="&staff.auth.about_btn.accesskey;" />
98 <menuitem id="contents_menu" label="Contents" accesskey="c" disabled="true" />
99 <menuseparator id="check_upgrade_sep" hidden="true" />
100 <menuitem id="check_upgrade" label="Check for upgrades" accesskey="" hidden="true" />
105 <button id="new_window_btn" label="&staff.auth.new_window_btn.label;" accesskey="&staff.auth.new_window_btn.accesskey;" />
107 <label value="&staff.auth.locale.label;" accesskey="&staff.auth.locale.accesskey;" control="locale_menu"/>
108 <menulist id="locale_menu">
109 <menupopup id="locale_menupopup">
112 <button id="apply_locale_btn" label="&staff.auth.apply_locale_btn.label;" accesskey="&staff.auth.apply_locale_btn.accesskey;" />
117 <columns><column flex="1"/><column flex="1"/></columns>
121 <caption label="&staff.main.auth.server;"/>
123 <columns><column /><column /></columns>
126 <label value="&staff.main.auth.hostname;" control="server_prompt" accesskey="&staff.main.auth.hostname.accesskey;"/>
128 <menulist editable="true" id="server_prompt" flex="1">
129 <menupopup id="server_menu" />
132 <button label="&staff.main.auth.retest;" id="retest" accesskey="&staff.main.auth.retest.accesskey;" command="cmd_test_server"/>
133 <button label="&staff.main.auth.add_ssl_exception;" id="ssl_exception" command="cmd_ssl_exception"/>
138 <label value="&staff.main.auth.status;"/>
139 <label id="status" />
142 <label value="&staff.main.auth.version;"/>
143 <label id="version" />
150 <caption label="&staff.main.auth.workstation;"/>
151 <deck id="ws_deck" flex="1">
158 <caption label="&staff.main.authentication.caption;"/>
160 <columns> <column /> <column /> </columns>
162 <row> <label value="&common.username;" control="name_prompt" accesskey="&common.username.accesskey;"/> <textbox id="name_prompt" value=""/>
165 <label value="&common.password;" control="password_prompt" accesskey="&common.password.accesskey;"/>
166 <textbox id="password_prompt" value="" type="password"/>
171 <button id="submit_button" label="&common.login;" accesskey="&common.login.accesskey;" command="cmd_login" />
172 <button label="&staff.auth.logoff_prompt;" accesskey="&staff.auth.logoff_prompt.accesskey;" command="cmd_logoff" />
180 <caption label="&staff.main.auth.offline.caption;"/>
181 <hbox><button label="&staff.main.auth.offline.interface;" accesskey="&staff.main.auth.offline.interface.accesskey;" command="cmd_standalone"/></hbox>
182 <hbox><button label="&staff.main.auth.offline.export;" command="cmd_standalone_export"/></hbox>
183 <hbox><button label="&staff.main.auth.offline.import;" command="cmd_standalone_import"/></hbox>
188 <vbox id="progress_space">
189 <progressmeter id="progress_bar" mode="normal" value="0" hidden="true"/>
191 <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.accesskey;" command="cmd_close_window"/>
192 <groupbox id="debug_gb" flex="1" hidden="true">
193 <caption label="&staff.main.auth.debug.caption;"/>
195 <arrowscrollbox orient="horizontal" flex="1">
196 <button label="&staff.main.auth.debug.javascript;" accesskey="&staff.main.auth.debug.javascript.accesskey;" command="cmd_js_console"/>
197 <button label="&staff.main.auth.debug.debugger;" accesskey="&staff.main.auth.debug.debugger.accesskey;" command="cmd_debugger"/>
198 <button label="&staff.main.auth.debug.inspector;" accesskey="&staff.main.auth.debug.inspector.accesskey;" command="cmd_inspector"/>
199 <button label="&staff.main.auth.debug.chrome_list;" accesskey="&staff.main.auth.debug.chrome_list.accesskey;" command="cmd_chrome_list"/>
200 <button label="&staff.main.auth.debug.js_shell;" accesskey="&staff.main.auth.debug.js_shell.accesskey;" command="cmd_js_shell"/>
201 <button label="&staff.main.auth.debug.clear;" accesskey="&staff.main.auth.debug.clear.accesskey;" command="cmd_clear_cache"/>