]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/chrome/content/main/main.xul
internal: an alternative to default_focus
[working/Evergreen.git] / Open-ILS / xul / staff_client / chrome / content / main / main.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Main, Authentication Window -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- PRESENTATION -->
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"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
14
15 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
16 <!-- OVERLAYS -->
17 <!--
18 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_chrome.xul"?>
19 -->
20
21 <window id="main_win" 
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">
27
28
29     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
30     <!-- BEHAVIOR -->
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" />
39         <!--
40         <script type="text/javascript" src="../OpenILS/util/fmall.js" />
41         <script type="text/javascript" src="../OpenILS/util/fmgen.js" />
42         -->
43         <script type="text/javascript" src="../OpenILS/util/RemoteRequest.js" />
44         <!--
45         <script type="text/javascript" src="../OpenILS/util/OrgTree.js" />
46         -->
47         <script type="text/javascript" src="../OpenILS/util/org_utils.js" />   
48         <script type="text/javascript" src="../OpenILS/event_util.js" />   
49     </scripts>
50     <script>dump('Loaded main/main.xul\n');</script>
51
52
53     <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
54     <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/main.js"/>
55     <script>
56         dump("lang.version = &lang.version;" + '\n');
57     </script>
58
59     <script type="text/javascript" src="chrome://venkman/content/venkman-overlay.js"/>
60     <script type="application/x-javascript" src="chrome://inspector/content/hooks.js"/>
61     <script type="application/x-javascript" src="chrome://chromelist/content/overlay/ChromeListOverlay.js" />
62
63     <messagecatalog id="authStrings" src="chrome://open_ils_staff_client/locale/auth.properties"/>
64     <messagecatalog id="offlineStrings" src="chrome://open_ils_staff_client/locale/offline.properties"/>
65
66     <commandset id="auth_cmds">
67         <command id="cmd_login" />
68         <command id="cmd_logoff"/>
69         <command id="cmd_override" />
70         <command id="cmd_close_window"/>
71         <command id="cmd_standalone"/>
72         <command id="cmd_standalone_export"/>
73         <command id="cmd_standalone_import"/>
74         <command id="cmd_js_console"/>
75         <command id="cmd_debugger"/>
76         <command id="cmd_inspector"/>
77         <command id="cmd_chrome_list"/>
78         <command id="cmd_js_shell"/>
79         <command id="cmd_clear_cache"/>
80         <command id="cmd_test_server"/>
81         <command id="cmd_ssl_exception" hidden="true"/>
82     </commandset>
83
84     <keyset id="auth_keys">
85         <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
86         <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
87         <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
88     </keyset>
89
90     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
91     <!-- CONTENT -->
92     <deck id="main_deck" flex="1">
93     <groupbox id="main_groupbox" flex="1" style="overflow: auto;">
94         <caption id="main_caption" label="&staff.main.auth.caption;"/>
95         <hbox>
96             <button type="menu" label="&staff.auth.help_btn.label;" accesskey="&staff.auth.help_btn.accesskey;">
97                 <menupopup>
98                     <menuitem id="about_btn" label="&staff.auth.about_btn.label;" accesskey="&staff.auth.about_btn.accesskey;" />
99                     <menuitem id="contents_menu" label="&staff.auth.help.menu.contents.label;" accesskey="&staff.auth.help.menu.contents.accesskey;" disabled="true" />
100                     <menuseparator id="check_upgrade_sep" hidden="true" />
101                     <menuitem id="check_upgrade" label="&staff.auth.help.menu.check_upgrades.label;" accesskey="" hidden="true" />
102                 </menupopup>
103             </button>
104
105
106             <button id="new_window_btn" label="&staff.auth.new_window_btn.label;" accesskey="&staff.auth.new_window_btn.accesskey;" />
107
108             <label value="&staff.auth.locale.label;" accesskey="&staff.auth.locale.accesskey;" control="locale_menu"/>
109             <menulist id="locale_menu">
110                 <menupopup id="locale_menupopup">
111                 </menupopup>
112             </menulist>
113             <button id="apply_locale_btn" label="&staff.auth.apply_locale_btn.label;" accesskey="&staff.auth.apply_locale_btn.accesskey;" />
114         </hbox>
115         <label value=" "/>
116
117 <grid flex="1">
118     <columns><column flex="1"/><column flex="1"/></columns>
119     <rows flex="1">
120 <row flex="1">
121         <groupbox flex="1">
122             <caption label="&staff.main.auth.server;"/>
123             <grid>
124                 <columns><column /><column /></columns>
125                 <rows>
126                     <row>
127                         <label value="&staff.main.auth.hostname;" control="server_prompt" accesskey="&staff.main.auth.hostname.accesskey;"/>
128                         <vbox>
129                             <menulist editable="true" id="server_prompt" flex="1">
130                                 <menupopup id="server_menu" />
131                             </menulist>
132                             <hbox>
133                                 <button label="&staff.main.auth.retest;" id="retest" accesskey="&staff.main.auth.retest.accesskey;" command="cmd_test_server"/>
134                                 <button label="&staff.main.auth.add_ssl_exception;" id="ssl_exception" command="cmd_ssl_exception"/>
135                             </hbox>
136                         </vbox>
137                     </row>
138                     <row>
139                         <label value="&staff.main.auth.status;"/>
140                         <label id="status" />
141                     </row>
142                     <row>
143                         <label value="&staff.main.auth.version;"/>
144                         <label id="version" />
145                     </row>
146                 </rows>
147             </grid>
148         </groupbox>
149
150         <groupbox flex="1">
151             <caption label="&staff.main.auth.workstation;"/>
152             <deck id="ws_deck" flex="1">
153             </deck>
154         </groupbox>
155
156 </row>
157 <row flex="1">
158         <groupbox flex="1">
159             <caption label="&staff.main.authentication.caption;"/>
160             <grid>
161                 <columns> <column /> <column /> </columns>
162                 <rows>
163                     <row> <label value="&common.username;" control="name_prompt" accesskey="&common.username.accesskey;"/> <textbox id="name_prompt" value=""/>
164                     </row>
165                     <row>
166                         <label value="&common.password;" control="password_prompt" accesskey="&common.password.accesskey;"/>
167                         <textbox id="password_prompt" value="" type="password"/>
168                     </row>
169                     <row>
170                         <spacer />
171                         <hbox>
172                             <button id="submit_button" label="&common.login;" accesskey="&common.login.accesskey;" command="cmd_login" />
173                             <button label="&staff.auth.logoff_prompt;" accesskey="&staff.auth.logoff_prompt.accesskey;" command="cmd_logoff" />
174                         </hbox>
175                     </row>
176                 </rows>
177             </grid>
178         </groupbox>
179
180         <!-- Offline Information Section -->
181         <groupbox flex="1">
182             <caption label="&staff.main.auth.offline.caption;"/>
183             <hbox><label id="offline_message" value="&staff.main.auth.offline.message;" style="display:none;" /></hbox>
184             <hbox><button label="&staff.main.auth.offline.interface;" accesskey="&staff.main.auth.offline.interface.accesskey;" command="cmd_standalone"/></hbox>
185             <hbox><button id="offline_export_btn" label="&staff.main.auth.offline.export;" command="cmd_standalone_export"/></hbox>
186             <hbox><button id="offline_import_btn" label="&staff.main.auth.offline.import;" command="cmd_standalone_import"/></hbox>
187         </groupbox>
188
189 </row>
190 </rows>
191 </grid>
192         <vbox id="progress_space">
193             <progressmeter id="progress_bar" mode="normal" value="0" hidden="true"/>
194         </vbox>
195         <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.accesskey;" command="cmd_close_window"/>
196         <groupbox id="debug_gb" flex="1" hidden="true">
197             <caption label="&staff.main.auth.debug.caption;"/>
198             <hbox>
199                 <arrowscrollbox orient="horizontal" flex="1">
200                     <button label="&staff.main.auth.debug.javascript;" accesskey="&staff.main.auth.debug.javascript.accesskey;" command="cmd_js_console"/>
201                     <button label="&staff.main.auth.debug.debugger;" accesskey="&staff.main.auth.debug.debugger.accesskey;" command="cmd_debugger"/>
202                     <button label="&staff.main.auth.debug.inspector;" accesskey="&staff.main.auth.debug.inspector.accesskey;" command="cmd_inspector"/>
203                     <button label="&staff.main.auth.debug.chrome_list;" accesskey="&staff.main.auth.debug.chrome_list.accesskey;" command="cmd_chrome_list"/>
204                     <button label="&staff.main.auth.debug.js_shell;" accesskey="&staff.main.auth.debug.js_shell.accesskey;" command="cmd_js_shell"/>
205                     <button label="&staff.main.auth.debug.clear;" accesskey="&staff.main.auth.debug.clear.accesskey;" command="cmd_clear_cache"/>
206                 </arrowscrollbox>
207             </hbox>
208         </groupbox>
209
210     </groupbox>
211     </deck>
212
213 </window>
214