9f9aa2239fe2a2b9ca5c0c71b8f12bf9ad63bb98
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / auth / auth_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/auth.dtd">
3 <overlay id="auth_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6 <!-- Modified by Jason for Evergreen -->
7
8 <!-- The javascript logic for the staff client -->
9 <!--
10 <Auth id="auth_js">
11         <script src="auth.js" />
12 </Auth>
13 -->
14
15 <!-- Some logic abstracted a bit.  Sort of like an API list -->
16 <commandset id="auth_cmds">
17         <command id="cmd_login" oncommand="
18                 disable_login_prompts();
19                 authenticate();
20         "/>
21         <command id="cmd_logoff" oncommand="logoff();"/>
22         <command id="cmd_close_window" oncommand="nice_shutdown();"/>
23 </commandset>
24
25 <!-- The top level widget for the staff client -->
26 <box id="auth_main" flex="1" orient="vertical">
27         <deck id="main_deck">
28                 <groupbox id="main_groupbox" flex="1"/>
29                 <iframe id="print_frame" flex="1"/>
30                 <iframe id="scratch_pad" flex="1"/>
31         </deck>
32         <!--
33         <button label="Console" accesskey="C" oncommand="try {mw.spawn_javascript_console(mw.document,'new_window','',{}); } catch(E) { alert(E); }"/>
34         <button label="FConsole" accesskey="F" oncommand="try {mw.spawn_filter_console(mw.document,'new_window','',{}); } catch(E) { alert(E); }"/>
35         -->
36 </box>
37
38 <groupbox id="main_groupbox" flex="1">
39         <caption id="main_caption" label="&auth.login_header;"/>
40         <label value="&auth.version;"/>
41         <label value="Development Version"/>
42         <label value=" "/>
43         <grid>
44                 <columns>
45                         <column />
46                         <column />
47                 </columns>
48                 <rows>
49                         <row>
50                                 <label value="&auth.name_prompt;" control="name_prompt" accesskey="&auth.name_prompt.key;"/>
51                                 <textbox id="name_prompt" value=""/>
52                         </row>
53                         <row>
54                                 <label value="&auth.password_prompt;" control="password_prompt" accesskey="&auth.password_prompt.key;"/>
55                                 <textbox id="password_prompt" value="" type="password"/>
56                         </row>
57                         <row>
58                                 <label/>
59                                 <hbox>
60                                 <button id="submit_button" label="&auth.submit_prompt;" accesskey="&auth.submit_prompt.key;" command="cmd_login"/>
61                                 <button label="&auth.logoff_prompt;" accesskey="&auth.logoff_prompt.key;" command="cmd_logoff"/>
62                                 </hbox>
63                         </row>
64                         <row>
65                                 <label/>
66                                 <label/>
67                         </row>
68                         <row>
69                                 <label/>
70                                 <button label="&auth.quit_prompt;" accesskey="&auth.quit_prompt.key;" command="cmd_close_window"/>
71                         </row>
72                 </rows>
73         </grid>
74         <progressmeter id="auth_meter" mode="normal" value="0"/>
75 </groupbox>
76
77 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
78 <keyset id="auth_keys">
79         <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
80         <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
81         <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
82 </keyset>
83
84 </overlay>