]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/chrome/content/main/main.xul
c9ab790f697f749358fe9ff8c93e78e57d7a33ce
[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     </scripts>
49     <script>dump('Loaded main/main.xul\n');</script>
50
51
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"/>
54     <script>
55         dump("lang.version = &lang.version;" + '\n');
56     </script>
57
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" />
61
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"/>
64
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"/>
81     </commandset>
82
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"/>
87     </keyset>
88
89     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
90     <!-- CONTENT -->
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;"/>
94         <hbox>
95             <button type="menu" label="Help" accesskey="l">
96                 <menupopup>
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" />
101                 </menupopup>
102             </button>
103
104
105             <button id="new_window_btn" label="&staff.auth.new_window_btn.label;" accesskey="&staff.auth.new_window_btn.accesskey;" />
106
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">
110                 </menupopup>
111             </menulist>
112             <button id="apply_locale_btn" label="&staff.auth.apply_locale_btn.label;" accesskey="&staff.auth.apply_locale_btn.accesskey;" />
113         </hbox>
114         <label value=" "/>
115
116 <grid flex="1">
117     <columns><column flex="1"/><column flex="1"/></columns>
118     <rows flex="1">
119 <row flex="1">
120         <groupbox flex="1">
121             <caption label="&staff.main.auth.server;"/>
122             <grid>
123                 <columns><column /><column /></columns>
124                 <rows>
125                     <row>
126                         <label value="&staff.main.auth.hostname;" control="server_prompt" accesskey="&staff.main.auth.hostname.accesskey;"/>
127                         <vbox>
128                             <menulist editable="true" id="server_prompt" flex="1">
129                                 <menupopup id="server_menu" />
130                             </menulist>
131                             <hbox>
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"/>
134                             </hbox>
135                         </vbox>
136                     </row>
137                     <row>
138                         <label value="&staff.main.auth.status;"/>
139                         <label id="status" />
140                     </row>
141                     <row>
142                         <label value="&staff.main.auth.version;"/>
143                         <label id="version" />
144                     </row>
145                 </rows>
146             </grid>
147         </groupbox>
148
149         <groupbox flex="1">
150             <caption label="&staff.main.auth.workstation;"/>
151             <deck id="ws_deck" flex="1">
152             </deck>
153         </groupbox>
154
155 </row>
156 <row flex="1">
157         <groupbox flex="1">
158             <caption label="&staff.main.authentication.caption;"/>
159             <grid>
160                 <columns> <column /> <column /> </columns>
161                 <rows>
162                     <row> <label value="&common.username;" control="name_prompt" accesskey="&common.username.accesskey;"/> <textbox id="name_prompt" value=""/>
163                     </row>
164                     <row>
165                         <label value="&common.password;" control="password_prompt" accesskey="&common.password.accesskey;"/>
166                         <textbox id="password_prompt" value="" type="password"/>
167                     </row>
168                     <row>
169                         <spacer />
170                         <hbox>
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" />
173                         </hbox>
174                     </row>
175                 </rows>
176             </grid>
177         </groupbox>
178
179         <!-- Offline Information Section -->
180         <groupbox flex="1">
181             <caption label="&staff.main.auth.offline.caption;"/>
182             <hbox><label id="offline_message" value="&staff.main.auth.offline.message;" style="display:none;" /></hbox>
183             <hbox><button label="&staff.main.auth.offline.interface;" accesskey="&staff.main.auth.offline.interface.accesskey;" command="cmd_standalone"/></hbox>
184             <hbox><button label="&staff.main.auth.offline.export;" command="cmd_standalone_export"/></hbox>
185             <hbox><button label="&staff.main.auth.offline.import;" command="cmd_standalone_import"/></hbox>
186         </groupbox>
187
188 </row>
189 </rows>
190 </grid>
191         <vbox id="progress_space">
192             <progressmeter id="progress_bar" mode="normal" value="0" hidden="true"/>
193         </vbox>
194         <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.accesskey;" command="cmd_close_window"/>
195         <groupbox id="debug_gb" flex="1" hidden="true">
196             <caption label="&staff.main.auth.debug.caption;"/>
197             <hbox>
198                 <arrowscrollbox orient="horizontal" flex="1">
199                     <button label="&staff.main.auth.debug.javascript;" accesskey="&staff.main.auth.debug.javascript.accesskey;" command="cmd_js_console"/>
200                     <button label="&staff.main.auth.debug.debugger;" accesskey="&staff.main.auth.debug.debugger.accesskey;" command="cmd_debugger"/>
201                     <button label="&staff.main.auth.debug.inspector;" accesskey="&staff.main.auth.debug.inspector.accesskey;" command="cmd_inspector"/>
202                     <button label="&staff.main.auth.debug.chrome_list;" accesskey="&staff.main.auth.debug.chrome_list.accesskey;" command="cmd_chrome_list"/>
203                     <button label="&staff.main.auth.debug.js_shell;" accesskey="&staff.main.auth.debug.js_shell.accesskey;" command="cmd_js_shell"/>
204                     <button label="&staff.main.auth.debug.clear;" accesskey="&staff.main.auth.debug.clear.accesskey;" command="cmd_clear_cache"/>
205                 </arrowscrollbox>
206             </hbox>
207         </groupbox>
208
209     </groupbox>
210     </deck>
211
212 </window>
213