another great renaming, and an un-naming
[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/open_ils_staff_client.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 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay.xul"?>
18
19 <window id="main_win" 
20         onload="try { main_init(); } catch(E) { alert(E); }"
21         onunload="try { G.auth.logoff(); } catch(E) { alert(E); }"
22         title="&staff.auth.title;"
23         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
24
25
26         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27         <!-- BEHAVIOR -->
28         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var G;</script>
29         <scripts id="openils_util_scripts"/>
30
31         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/lang.js"/>
32         <!--
33         <script type="text/javascript" src="http://dev.gapines.org/xul/server/main/lang.js"/>
34         -->
35         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
36         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/main.js"/>
37         <script>
38                 dump("entities['lang.version'] = " + entities['lang.version'] + '\n');
39         </script>
40
41         <commandset id="auth_cmds">
42                 <command id="cmd_login"/>
43                 <command id="cmd_logoff"/>
44                 <command id="cmd_close_window"/>
45         </commandset>
46
47         <keyset id="auth_keys">
48                 <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
49                 <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
50                 <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
51         </keyset>
52
53         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
54         <!-- CONTENT -->
55         <deck id="main_deck">
56         <groupbox id="main_groupbox" flex="1">
57                 <caption id="main_caption" label="&staff.auth.login_header;"/>
58                 <label value="&staff.auth.version;"/>
59                 <label value="Development Version 123"/>
60                 <label value=" "/>
61                 <grid>
62                         <columns>
63                                 <column />
64                                 <column />
65                         </columns>
66                         <rows>
67                                 <row>
68                                         <label value="Server" control="server_prompt" accesskey="r"/>
69                                         <textbox id="server_prompt" value="dev.gapines.org"/>
70                                 </row>
71                                 <row>
72                                         <label value="&staff.auth.name_prompt;" control="name_prompt" accesskey="&staff.auth.name_prompt.key;"/>
73                                         <textbox id="name_prompt" value=""/>
74                                 </row>
75                                 <row>
76                                         <label value="&staff.auth.password_prompt;" control="password_prompt" accesskey="&staff.auth.password_prompt.key;"/>
77                                         <textbox id="password_prompt" value="" type="password"/>
78                                 </row>
79                                 <row>
80                                         <label/>
81                                         <hbox>
82                                         <button id="submit_button" label="&staff.auth.submit_prompt;" accesskey="&staff.auth.submit_prompt.key;" command="cmd_login"/>
83                                         <button label="&staff.auth.logoff_prompt;" accesskey="&staff.auth.logoff_prompt.key;" command="cmd_logoff"/>
84                                         </hbox>
85                                 </row>
86                                 <row>
87                                         <label/>
88                                         <label/>
89                                 </row>
90                                 <row>
91                                         <label/>
92                                         <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.key;" command="cmd_close_window"/>
93                                 </row>
94                         </rows>
95                 </grid>
96                 <progressmeter id="progress_bar" mode="normal" value="0"/>
97         </groupbox>
98         </deck>
99
100 </window>
101