]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/chrome/content/main/main.xul
60df71023f12e102dc1b53e441e35bdbfa9df260
[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;"
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 id="about_btn" label="&staff.auth.about_btn.label;" accesskey="&staff.auth.about_btn.accesskey;" />
96
97             <button id="new_window_btn" label="&staff.auth.new_window_btn.label;" accesskey="&staff.auth.new_window_btn.accesskey;" />
98
99             <label value="&staff.auth.locale.label;" accesskey="&staff.auth.locale.accesskey;" control="locale_menu"/>
100             <menulist id="locale_menu">
101                 <menupopup id="locale_menupopup">
102                 </menupopup>
103             </menulist>
104             <button id="apply_locale_btn" label="&staff.auth.apply_locale_btn.label;" accesskey="&staff.auth.apply_locale_btn.accesskey;" />
105         </hbox>
106         <label value=" "/>
107
108 <grid flex="1">
109     <columns><column flex="1"/><column flex="1"/></columns>
110     <rows flex="1">
111 <row flex="1">
112         <groupbox flex="1">
113             <caption label="&staff.main.auth.server;"/>
114             <grid>
115                 <columns><column /><column /></columns>
116                 <rows>
117                     <row>
118                         <label value="&staff.main.auth.hostname;" control="server_prompt" accesskey="&staff.main.auth.hostname.accesskey;"/>
119                         <vbox>
120                             <menulist editable="true" id="server_prompt" flex="1">
121                                 <menupopup id="server_menu" />
122                             </menulist>
123                             <hbox>
124                                 <button label="&staff.main.auth.retest;" id="retest" accesskey="&staff.main.auth.retest.accesskey;" command="cmd_test_server"/>
125                                 <button label="&staff.main.auth.add_ssl_exception;" id="ssl_exception" command="cmd_ssl_exception"/>
126                             </hbox>
127                         </vbox>
128                     </row>
129                     <row>
130                         <label value="&staff.main.auth.status;"/>
131                         <label id="status" />
132                     </row>
133                     <row>
134                         <label value="&staff.main.auth.version;"/>
135                         <label id="version" />
136                     </row>
137                 </rows>
138             </grid>
139         </groupbox>
140
141         <groupbox flex="1">
142             <caption label="&staff.main.auth.workstation;"/>
143             <deck id="ws_deck" flex="1">
144             </deck>
145         </groupbox>
146
147 </row>
148 <row flex="1">
149         <groupbox flex="1">
150             <caption label="&staff.main.authentication.caption;"/>
151             <grid>
152                 <columns> <column /> <column /> </columns>
153                 <rows>
154                     <row> <label value="&common.username;" control="name_prompt" accesskey="&common.username.accesskey;"/> <textbox id="name_prompt" value=""/>
155                     </row>
156                     <row>
157                         <label value="&common.password;" control="password_prompt" accesskey="&common.password.accesskey;"/>
158                         <textbox id="password_prompt" value="" type="password"/>
159                     </row>
160                     <row>
161                         <spacer />
162                         <hbox>
163                             <button id="submit_button" label="&common.login;" accesskey="&common.login.accesskey;" command="cmd_login" />
164                             <button label="&staff.auth.logoff_prompt;" accesskey="&staff.auth.logoff_prompt.accesskey;" command="cmd_logoff" />
165                         </hbox>
166                     </row>
167                 </rows>
168             </grid>
169         </groupbox>
170
171         <groupbox flex="1">
172             <caption label="&staff.main.auth.offline.caption;"/>
173             <hbox><button label="&staff.main.auth.offline.interface;" accesskey="&staff.main.auth.offline.interface.accesskey;" command="cmd_standalone"/></hbox>
174             <hbox><button label="&staff.main.auth.offline.export;" command="cmd_standalone_export"/></hbox>
175             <hbox><button label="&staff.main.auth.offline.import;" command="cmd_standalone_import"/></hbox>
176         </groupbox>
177 </row>
178 </rows>
179 </grid>
180         <vbox id="progress_space">
181             <progressmeter id="progress_bar" mode="normal" value="0" hidden="true"/>
182         </vbox>
183         <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.accesskey;" command="cmd_close_window"/>
184         <groupbox id="debug_gb" flex="1" hidden="true">
185             <caption label="&staff.main.auth.debug.caption;"/>
186             <hbox>
187                 <arrowscrollbox orient="horizontal" flex="1">
188                     <button label="&staff.main.auth.debug.javascript;" accesskey="&staff.main.auth.debug.javascript.accesskey;" command="cmd_js_console"/>
189                     <button label="&staff.main.auth.debug.debugger;" accesskey="&staff.main.auth.debug.debugger.accesskey;" command="cmd_debugger"/>
190                     <button label="&staff.main.auth.debug.inspector;" accesskey="&staff.main.auth.debug.inspector.accesskey;" command="cmd_inspector"/>
191                     <button label="&staff.main.auth.debug.chrome_list;" accesskey="&staff.main.auth.debug.chrome_list.accesskey;" command="cmd_chrome_list"/>
192                     <button label="&staff.main.auth.debug.js_shell;" accesskey="&staff.main.auth.debug.js_shell.accesskey;" command="cmd_js_shell"/>
193                     <button label="&staff.main.auth.debug.clear;" accesskey="&staff.main.auth.debug.clear.accesskey;" command="cmd_clear_cache"/>
194                 </arrowscrollbox>
195             </hbox>
196         </groupbox>
197
198     </groupbox>
199     </deck>
200
201 </window>
202