]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/standing_penalties.xul
Reworking of the "Messages" interface in the patron display for manipulating standing...
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / standing_penalties.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Apply/Remove Standing Penalties to Patron -->
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="/xul/server/skin/global.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window PUBLIC "" ""[
14         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
15 ]>
16
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <!-- OVERLAYS -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20
21 <window id="penalty_win" onload="try { penalty_init(); font_helper(); } catch(E) { alert(E); }"
22         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
23
24         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
25         <!-- BEHAVIOR -->
26         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true;</script>
27         <scripts id="openils_util_scripts"/>
28
29         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
30         <script type="text/javascript" src="standing_penalties.js"/>
31
32         <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties" />
33
34         <commandset id="penalty_cmds">
35                 <command id="cmd_apply_penalty" />
36                 <command id="cmd_remove_penalty" disabled="true"/>
37                 <command id="cmd_edit_penalty" disabled="true"/>
38                 <command id="cmd_show_all" />
39                 <command id="cmd_show_note" />
40                 <command id="cmd_show_alert" />
41                 <command id="cmd_show_block" />
42         </commandset>
43
44         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
45         <!-- CONTENT -->
46         <groupbox id="penalty_groupbox" flex="1" class="my_overflow">
47                 <caption id="penalty_caption" label="&staff.patron_display.penalty.caption;"/>
48         <vbox flex="0">
49             <hbox flex="1">
50                 <toolbox flex="1">
51                     <toolbar>
52                         <toolbaritem> <!-- why not a toolbarbutton?  I like the way this looks better -->
53                             <button id="apply_btn" 
54                                 command="cmd_apply_penalty" 
55                                 label="&staff.patron_display.penalty.menu.apply.label;" 
56                                 accesskey="&staff.patron_display.penalty.menu.apply.accesskey;" 
57                                 style="-moz-user-focus: normal" />
58                         </toolbaritem>
59                         <toolbarseparator />
60                         <!--
61                         <toolbarbutton command="cmd_show_all" label="All" accesskey="A" type="radio" group="radio" style="-moz-user-focus: normal" checked="true"/>
62                         <toolbarbutton command="cmd_show_note" label="Note" accesskey="N" type="radio" group="radio" style="-moz-user-focus: normal"/>
63                         <toolbarbutton command="cmd_show_alert" label="Alert" accesskey="t" type="radio" group="radio" style="-moz-user-focus: normal"/>
64                         <toolbarbutton command="cmd_show_block" label="Block" accesskey="k" type="radio" group="radio" style="-moz-user-focus: normal"/>
65                         <toolbarseparator />
66                         -->
67                         <toolbarspring />
68                         <toolbaritem>
69                             <progressmeter id="progress" flex="1" hidden="true" mode="undetermined"/>
70                         </toolbaritem>
71                         <toolbarbutton 
72                             label="&staff.patron_display.penalty.menu.actions.label;" 
73                             accesskey="&staff.patron_display.penalty.menu.actions.accesskey;" 
74                             type="menu" style="-moz-user-focus: normal" 
75                             oncommand="this.focus(); this.firstChild.showPopup()">
76                             <menupopup>
77                                 <menuitem command="cmd_remove_penalty" label="&staff.patron_display.penalty.menu.actions.remove.label;" accesskey="&staff.patron-display.menu.actions.remove.accesskey;"/>
78                                 <menuitem command="cmd_edit_penalty" label="&staff.patron_display.penalty.menu.actions.edit.label;" accesskey="&staff.patron-display.menu.actions.edit.accesskey;"/>
79                             </menupopup>
80                         </toolbarbutton>
81                     </toolbar>
82                 </toolbox>
83             </hbox>
84         </vbox>
85         <tree id="ausp_list" flex="1" enableColumnDrag="true" context="ausp_actions"/>
86         </groupbox>
87
88     <popupset id="csp_popupset">
89         <popup id="ausp_actions" position="at_pointer">
90             <menuitem command="cmd_remove_penalty" label="&staff.patron_display.penalty.menu.actions.remove.label;" accesskey="&staff.patron-display.menu.actions.remove.accesskey;"/>
91             <menuitem command="cmd_edit_penalty" label="&staff.patron_display.penalty.menu.actions.edit.label;" accesskey="&staff.patron-display.menu.actions.edit.accesskey;"/>
92         </popup>
93     </popupset>
94
95 </window>
96