]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/standing_penalties.xul
Improve Firefox/XULRunner Support
[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="/xul/server/skin/global.css" type="text/css"?>
9
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
11 <!-- LOCALIZATION -->
12 <!DOCTYPE window PUBLIC "" ""[
13     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
14 ]>
15
16 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
17 <!-- OVERLAYS -->
18 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
19
20 <window id="penalty_win" onload="try { penalty_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
21     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
22
23     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
24     <!-- BEHAVIOR -->
25     <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true;</script>
26     <scripts id="openils_util_scripts"/>
27
28     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
29     <script type="text/javascript" src="standing_penalties.js"/>
30
31     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties" />
32
33     <commandset id="penalty_cmds">
34         <command id="cmd_apply_penalty" />
35         <command id="cmd_remove_penalty" disabled="true"/>
36         <command id="cmd_edit_penalty" disabled="true"/>
37         <command id="cmd_archive_penalty" disabled="true"/>
38         <command id="cmd_retrieve_archived_penalties" />
39         <command id="cmd_show_all" />
40         <command id="cmd_show_note" />
41         <command id="cmd_show_alert" />
42         <command id="cmd_show_block" />
43     </commandset>
44
45     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
46     <!-- CONTENT -->
47     <groupbox id="penalty_groupbox" flex="1" class="my_overflow" oils_persist="height">
48         <caption id="penalty_caption" label="&staff.patron_display.penalty.caption;"/>
49         <vbox flex="0">
50             <hbox flex="1">
51                 <toolbox flex="1">
52                     <toolbar>
53                         <toolbarbutton 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                         <toolbarseparator />
59                         <!--
60                         <toolbarbutton command="cmd_show_all" label="All" accesskey="A" type="radio" group="radio" style="-moz-user-focus: normal" checked="true"/>
61                         <toolbarbutton command="cmd_show_note" label="Note" accesskey="N" type="radio" group="radio" style="-moz-user-focus: normal"/>
62                         <toolbarbutton command="cmd_show_alert" label="Alert" accesskey="t" type="radio" group="radio" style="-moz-user-focus: normal"/>
63                         <toolbarbutton command="cmd_show_block" label="Block" accesskey="k" type="radio" group="radio" style="-moz-user-focus: normal"/>
64                         <toolbarseparator />
65                         -->
66                         <toolbarspring />
67                         <toolbaritem>
68                             <progressmeter id="progress" flex="1" hidden="true" mode="undetermined"/>
69                         </toolbaritem>
70                         <toolbarbutton 
71                             label="&staff.patron_display.penalty.menu.actions.label;" 
72                             accesskey="&staff.patron_display.penalty.menu.actions.accesskey;" 
73                             type="menu" style="-moz-user-focus: normal" 
74                             oncommand="this.focus(); this.firstChild.showPopup()">
75                             <menupopup>
76                                 <menuitem command="cmd_remove_penalty" label="&staff.patron_display.penalty.menu.actions.remove.label;" accesskey="&staff.patron_display.menu.actions.remove.accesskey;"/>
77                                 <menuitem command="cmd_edit_penalty" label="&staff.patron_display.penalty.menu.actions.edit.label;" accesskey="&staff.patron_display.menu.actions.edit.accesskey;"/>
78                                 <menuitem command="cmd_archive_penalty" label="&staff.patron_display.penalty.menu.actions.archive.label;" accesskey="&staff.patron_display.menu.actions.archive.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     <splitter id="list_splitter" collapse="after" oils_persist="state hidden" oils_persist_peers="penalty_groupbox archived_penalty_groupbox"><grippy id="splitter_grippy"/></splitter>
88     <groupbox id="archived_penalty_groupbox" flex="1" class="my_overflow" oils_persist="height">
89         <caption id="penalty_caption" label="&staff.patron_display.archived_penalty.caption;"/>
90         <vbox flex="0">
91             <toolbox flex="1">
92                 <toolbar>
93                     <toolbarspring/>
94                     <toolbaritem>
95                         <progressmeter id="archived_progress" flex="1" hidden="true" mode="undetermined"/>
96                     </toolbaritem>
97                     <toolbaritem>
98                         <label value="&staff.patron_display.archived_penalty.start_date.label;" accesskey="&staff.patron_display.archived_penalty.start_date.accesskey;" control="date1"/>
99                         <datepicker id="date1" type="popup" />
100                         <label value="&staff.patron_display.archived_penalty.end_date.label;" accesskey="&staff.patron_display.archived_penalty.end_date.accesskey;" control="date2"/>
101                         <datepicker id="date2" type="popup" />
102                     </toolbaritem>
103                     <toolbarbutton id="retrieve_btn" 
104                         label="&staff.patron_display.archived_penalty.retrieve.label;" 
105                         accesskey="&staff.patron_display.archived_penalty.retrieve.accesskey;" 
106                         command="cmd_retrieve_archived_penalties"
107                         style="-moz-user-focus: normal" />
108                 </toolbar>
109             </toolbox>
110         </vbox>
111         <tree id="archived_ausp_list" flex="1" enableColumnDrag="true" />
112     </groupbox>
113
114     <popupset id="csp_popupset">
115         <menupopup id="ausp_actions" position="at_pointer">
116             <menuitem command="cmd_remove_penalty" label="&staff.patron_display.penalty.menu.actions.remove.label;" accesskey="&staff.patron_display.menu.actions.remove.accesskey;"/>
117             <menuitem command="cmd_edit_penalty" label="&staff.patron_display.penalty.menu.actions.edit.label;" accesskey="&staff.patron_display.menu.actions.edit.accesskey;"/>
118             <menuitem command="cmd_archive_penalty" label="&staff.patron_display.penalty.menu.actions.archive.label;" accesskey="&staff.patron_display.menu.actions.archive.accesskey;"/>
119         </menupopup>
120     </popupset>
121
122 </window>
123