default to demo for now
[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         <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("entities['lang.version'] = " + entities['lang.version'] + '\n');
57         </script>
58
59         <commandset id="auth_cmds">
60                 <command id="cmd_login" />
61                 <command id="cmd_logoff"/>
62                 <command id="cmd_override" />
63                 <command id="cmd_close_window"/>
64         </commandset>
65
66         <keyset id="auth_keys">
67                 <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
68                 <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
69                 <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
70         </keyset>
71
72         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
73         <!-- CONTENT -->
74         <deck id="main_deck" flex="1">
75         <groupbox id="main_groupbox" flex="1" style="overflow: auto;">
76                 <caption id="main_caption" label="Startup"/>
77                 <label value="&staff.auth.version;"/>
78                 <label value="Development Version 123"/>
79                 <label value=" "/>
80
81                 <groupbox flex="1">
82                         <caption label="Server"/>
83                         <grid>
84                                 <columns><column /><column /></columns>
85                                 <rows>
86                                         <row>
87                                                 <label value="Hostname" control="server_prompt" accesskey="H"/>
88                                                 <textbox id="server_prompt" value="demo.gapines.org"/>
89                                         </row>
90                                         <row>
91                                                 <label value="Status"/>
92                                                 <label id="status" />
93                                         </row>
94                                         <row>
95                                                 <label value="Version"/>
96                                                 <label id="version" />
97                                         </row>
98                                 </rows>
99                         </grid>
100                 </groupbox>
101
102                 <groupbox flex="1">
103                         <caption label="Authentication"/>
104                         <grid>
105                                 <columns> <column /> <column /> </columns>
106                                 <rows>
107                                         <row>
108                                                 <label value="Username" control="name_prompt" accesskey="U"/>
109                                                 <textbox id="name_prompt" value=""/>
110                                         </row>
111                                         <row>
112                                                 <label value="Password" control="password_prompt" accesskey="P"/>
113                                                 <textbox id="password_prompt" value="" type="password"/>
114                                         </row>
115                                         <row>
116                                                 <button id="submit_button" label="Login" accesskey="L" command="cmd_login" />
117                                                 <button label="&staff.auth.logoff_prompt;" accesskey="f" command="cmd_logoff" />
118                                         </row>
119                                 </rows>
120                         </grid>
121                 </groupbox>
122
123                 <groupbox flex="1">
124                         <caption label="Workstation"/>
125                         <deck id="ws_deck">
126                         </deck>
127                 </groupbox>
128
129                 <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.key;" command="cmd_close_window"/>
130                 <progressmeter id="progress_bar" mode="normal" value="0"/>
131
132         </groupbox>
133         </deck>
134
135 </window>
136