ea7e9a7887ffc8d525f3f4f22b4d6aadb8275c0b
[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.xul"?>
19 -->
20
21 <window id="main_win" 
22         width="400" height="550"
23         onload="try { main_init(); } catch(E) { alert(E); }"
24         onunload="try { G.auth.logoff(); } catch(E) { alert(E); }"
25         title="&staff.auth.title;"
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 OpenILS/util_overlay.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.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 OpenILS/util_overlay.xul\n');</script>
50
51
52         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/lang.js"/>
53         <!--
54         <script type="text/javascript" src="http://dev.gapines.org/xul/server/main/lang.js"/>
55         -->
56         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
57         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/main.js"/>
58         <script>
59                 dump("entities['lang.version'] = " + entities['lang.version'] + '\n');
60         </script>
61
62         <commandset id="auth_cmds">
63                 <command id="cmd_login" />
64                 <command id="cmd_logoff"/>
65                 <command id="cmd_override" />
66                 <command id="cmd_close_window"/>
67         </commandset>
68
69         <keyset id="auth_keys">
70                 <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
71                 <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
72                 <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
73         </keyset>
74
75         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
76         <!-- CONTENT -->
77         <deck id="main_deck" flex="1">
78         <groupbox id="main_groupbox" flex="1" style="overflow: auto;">
79                 <caption id="main_caption" label="Startup"/>
80                 <label value="&staff.auth.version;"/>
81                 <label value="Development Version 123"/>
82                 <label value=" "/>
83
84                 <groupbox flex="1">
85                         <caption label="Server"/>
86                         <grid>
87                                 <columns><column /><column /></columns>
88                                 <rows>
89                                         <row>
90                                                 <label value="Hostname" control="server_prompt" accesskey="H"/>
91                                                 <textbox id="server_prompt" value="dev.gapines.org"/>
92                                         </row>
93                                         <row>
94                                                 <label value="Status"/>
95                                                 <label id="status" />
96                                         </row>
97                                         <row>
98                                                 <label value="Version"/>
99                                                 <label id="version" />
100                                         </row>
101                                 </rows>
102                         </grid>
103                 </groupbox>
104
105                 <groupbox flex="1">
106                         <caption label="Authentication"/>
107                         <grid>
108                                 <columns> <column /> <column /> </columns>
109                                 <rows>
110                                         <row>
111                                                 <label value="Username" control="name_prompt" accesskey="U"/>
112                                                 <textbox id="name_prompt" value=""/>
113                                         </row>
114                                         <row>
115                                                 <label value="Password" control="password_prompt" accesskey="P"/>
116                                                 <textbox id="password_prompt" value="" type="password"/>
117                                         </row>
118                                         <row>
119                                                 <button id="submit_button" label="Login" accesskey="L" command="cmd_login" />
120                                                 <button label="&staff.auth.logoff_prompt;" accesskey="f" command="cmd_logoff" />
121                                         </row>
122                                 </rows>
123                         </grid>
124                 </groupbox>
125
126                 <groupbox flex="1">
127                         <caption label="Workstation"/>
128                         <deck id="ws_deck">
129                         </deck>
130                 </groupbox>
131
132                 <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.key;" command="cmd_close_window"/>
133                 <progressmeter id="progress_bar" mode="normal" value="0"/>
134
135         </groupbox>
136         </deck>
137
138 </window>
139