default to demo for now
[Evergreen.git] / Open-ILS / xul / staff_client / chrome / content / main / main.xul
index 649ad11..0cbbc97 100644 (file)
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- OVERLAYS -->
+<!--
 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay.xul"?>
+-->
 
 <window id="main_win" 
+       width="400" height="550"
        onload="try { main_init(); } catch(E) { alert(E); }"
        onunload="try { G.auth.logoff(); } catch(E) { alert(E); }"
        title="&staff.auth.title;"
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
        <!-- BEHAVIOR -->
        <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var G;</script>
-       <scripts id="openils_util_scripts"/>
+       <script>dump('Loading OpenILS/util_overlay.xul\n');</script>
+       <scripts id="openils_util_scripts">
+               <script type="text/javascript" src="constants.js" />
+               <script type="text/javascript" src="../OpenILS/util/utils.js" />
+               <script type="text/javascript" src="../OpenILS/util/CGI.js" />
+               <script type="text/javascript" src="../OpenILS/util/md5.js" />
+               <script type="text/javascript" src="../OpenILS/util/JSON.js" />
+               <!--
+               <script type="text/javascript" src="../OpenILS/util/fmall.js" />
+               <script type="text/javascript" src="../OpenILS/util/fmgen.js" />
+               -->
+               <script type="text/javascript" src="../OpenILS/util/RemoteRequest.js" />
+               <!--
+               <script type="text/javascript" src="../OpenILS/util/OrgTree.js" />
+               -->
+               <script type="text/javascript" src="../OpenILS/util/org_utils.js" />   
+       </scripts>
+       <script>dump('Loaded OpenILS/util_overlay.xul\n');</script>
+
 
        <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/lang.js"/>
-       <!--
-       <script type="text/javascript" src="http://dev.gapines.org/xul/server/main/lang.js"/>
-       -->
        <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
        <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/main.js"/>
        <script>
@@ -39,8 +57,9 @@
        </script>
 
        <commandset id="auth_cmds">
-               <command id="cmd_login"/>
+               <command id="cmd_login" />
                <command id="cmd_logoff"/>
+               <command id="cmd_override" />
                <command id="cmd_close_window"/>
        </commandset>
 
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
        <!-- CONTENT -->
-       <deck id="main_deck">
-       <groupbox id="main_groupbox" flex="1">
-               <caption id="main_caption" label="&staff.auth.login_header;"/>
+       <deck id="main_deck" flex="1">
+       <groupbox id="main_groupbox" flex="1" style="overflow: auto;">
+               <caption id="main_caption" label="Startup"/>
                <label value="&staff.auth.version;"/>
                <label value="Development Version 123"/>
                <label value=" "/>
-               <grid>
-                       <columns>
-                               <column />
-                               <column />
-                       </columns>
-                       <rows>
-                               <row>
-                                       <label value="Server" control="server_prompt" accesskey="r"/>
-                                       <textbox id="server_prompt" value="dev.gapines.org"/>
-                               </row>
-                               <row>
-                                       <label value="&staff.auth.name_prompt;" control="name_prompt" accesskey="&staff.auth.name_prompt.key;"/>
-                                       <textbox id="name_prompt" value=""/>
-                               </row>
-                               <row>
-                                       <label value="&staff.auth.password_prompt;" control="password_prompt" accesskey="&staff.auth.password_prompt.key;"/>
-                                       <textbox id="password_prompt" value="" type="password"/>
-                               </row>
-                               <row>
-                                       <label/>
-                                       <hbox>
-                                       <button id="submit_button" label="&staff.auth.submit_prompt;" accesskey="&staff.auth.submit_prompt.key;" command="cmd_login"/>
-                                       <button label="&staff.auth.logoff_prompt;" accesskey="&staff.auth.logoff_prompt.key;" command="cmd_logoff"/>
-                                       </hbox>
-                               </row>
-                               <row>
-                                       <label/>
-                                       <label/>
-                               </row>
-                               <row>
-                                       <label/>
-                                       <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.key;" command="cmd_close_window"/>
-                               </row>
-                       </rows>
-               </grid>
+
+               <groupbox flex="1">
+                       <caption label="Server"/>
+                       <grid>
+                               <columns><column /><column /></columns>
+                               <rows>
+                                       <row>
+                                               <label value="Hostname" control="server_prompt" accesskey="H"/>
+                                               <textbox id="server_prompt" value="demo.gapines.org"/>
+                                       </row>
+                                       <row>
+                                               <label value="Status"/>
+                                               <label id="status" />
+                                       </row>
+                                       <row>
+                                               <label value="Version"/>
+                                               <label id="version" />
+                                       </row>
+                               </rows>
+                       </grid>
+               </groupbox>
+
+               <groupbox flex="1">
+                       <caption label="Authentication"/>
+                       <grid>
+                               <columns> <column /> <column /> </columns>
+                               <rows>
+                                       <row>
+                                               <label value="Username" control="name_prompt" accesskey="U"/>
+                                               <textbox id="name_prompt" value=""/>
+                                       </row>
+                                       <row>
+                                               <label value="Password" control="password_prompt" accesskey="P"/>
+                                               <textbox id="password_prompt" value="" type="password"/>
+                                       </row>
+                                       <row>
+                                               <button id="submit_button" label="Login" accesskey="L" command="cmd_login" />
+                                               <button label="&staff.auth.logoff_prompt;" accesskey="f" command="cmd_logoff" />
+                                       </row>
+                               </rows>
+                       </grid>
+               </groupbox>
+
+               <groupbox flex="1">
+                       <caption label="Workstation"/>
+                       <deck id="ws_deck">
+                       </deck>
+               </groupbox>
+
+               <button label="&staff.auth.quit_prompt;" accesskey="&staff.auth.quit_prompt.key;" command="cmd_close_window"/>
                <progressmeter id="progress_bar" mode="normal" value="0"/>
+
        </groupbox>
        </deck>