minor
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / patron / patron_display_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/patron_display.dtd">
3 <overlay id="patron_display_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6         <script>mw.sdump('D_TRACE','Loading patron_display_overlay.xul\n');</script>
7
8         <?xul-overlay href="chrome://evergreen/content/main/clam_shell_overlay.xul"?>
9         <?xul-overlay href="chrome://evergreen/content/patron/patron_items_overlay.xul"?>
10         <?xul-overlay href="chrome://evergreen/content/patron/patron_checkout_items_overlay.xul"?>
11         <?xul-overlay href="chrome://evergreen/content/patron/patron_display_status_overlay.xul"?>
12         <?xul-overlay href="chrome://evergreen/content/patron/patron_display_contact_overlay.xul"?>
13         <?xul-overlay href="chrome://evergreen/content/patron/patron_holds_overlay.xul"?>
14
15 <commandset id="universal_cmds">
16
17         <command id="cmd_broken" oncommand="
18                 alert('Not Yet Implemented'); "/>
19
20         <command id="cmd_patron_refresh" />
21         <command id="cmd_patron_checkout" />
22         <command id="cmd_patron_items" />
23         <command id="cmd_patron_holds" />
24         <command id="cmd_patron_bills" />
25         <command id="cmd_patron_edit" />
26         <command id="cmd_patron_info" />
27
28 </commandset>
29
30 <!-- main widget for patron_display -->
31 <box id="PatronDisplay_main" flex="1" orient="vertical">
32         <hbox id="PatronNavBar" flex="0"/>
33         <groupbox id="PatronDisplay_groupbox" orient="vertical" flex="1">
34                 <box id="ClamShell_main" />
35         </groupbox>
36 </box>
37
38 <deck id="ClamShell_first_deck" flex="0">
39         <vbox id="csfdvb1" flex="1">
40                 <groupbox id="PatronDisplayStatus_groupbox" flex="0"/>
41                 <groupbox id="PatronDisplaySurvey_groupbox" flex="0">
42                         <caption id="pdsgbc" label="Surveys" />
43                 </groupbox>
44                 <groupbox id="PatronDisplayContact_groupbox" flex="1"/>
45         </vbox>
46 </deck>
47
48 <deck id="ClamShell_second_deck" flex="1">
49         <groupbox id="cssdgb1">
50                 <caption id="cssdgb1c" label="&patron_navbar.checkout;"/>
51                 <box id="PatronCheckoutItems_main"/>
52         </groupbox>
53         <groupbox id="cssdgb2">
54                 <caption id="cssdgb2c" label="&patron_navbar.items;"/>
55                 <box id="PatronItems_main" />
56         </groupbox>
57         <groupbox id="cssdgb3">
58                 <caption id="cssdgb3c" label="&patron_navbar.holds;"/>
59                 <box id="PatronHolds_main" />
60         </groupbox>
61         <groupbox id="cssdgb4">
62                 <caption id="cssdgb4c" label="&patron_navbar.bills;"/>
63                 <box name="insert1" id="PatronBills_insert1" flex="0" />
64                 <box id="PatronBills_main" flex="1" />
65                 <box name="insert2" id="PatronBills_insert2" flex="0" />
66         </groupbox>
67         <groupbox id="cssdgb5">
68                 <caption id="cssdgb5c" label="&patron_navbar.edit;"/>
69                 <box name="insert1" id="PatronEdit_insert1" flex="0" />
70                 <box id="PatronEdit_main" flex="1"/>
71                 <box name="insert2" id="PatronEdit_insert2" flex="0" />
72         </groupbox>
73         <box id="PatronInfo_main"><label value="info" /></box>
74 </deck>
75
76 <hbox id="PatronNavBar">
77         <label id="PatronNavBar_patron_name" class="patronNameLarge"
78                 tooltiptext="&patron_display.name.label;"
79                 value="&patron_display.name.label;"
80                 render="true" fm_class="au" 
81                 render_value="patron_get_full_name($$)" />
82         <spacer id="PatronNavBar_spacer" flex="1" />
83         <button id="PatronNavBar_refresh" command="cmd_patron_refresh"
84                 label="&patron_navbar.refresh;" accesskey="&patron_navbar.refresh.accesskey;"/>
85         <button id="PatronNavBar_checkout" command="cmd_patron_checkout"
86                 label="&patron_navbar.checkout;" accesskey="&patron_navbar.checkout.accesskey;"/>
87         <button id="PatronNavBar_items" command="cmd_patron_items"
88                 label="&patron_navbar.items;" accesskey="&patron_navbar.items.accesskey;"/>
89         <button id="PatronNavBar_holds" command="cmd_patron_holds"
90                 label="&patron_navbar.holds;" accesskey="&patron_navbar.holds.accesskey;"/>
91         <button id="PatronNavBar_bills" command="cmd_patron_bills"
92                 label="&patron_navbar.bills;" accesskey="&patron_navbar.bills.accesskey;"/>
93         <button id="PatronNavBar_edit" command="cmd_patron_edit"
94                 label="&patron_navbar.edit;" accesskey="&patron_navbar.edit.accesskey;"/>
95         <button id="PatronNavBar_info" command="cmd_patron_info"
96                 label="&patron_navbar.info;" accesskey="&patron_navbar.info.accesskey;"/>
97 </hbox>
98
99 <hbox id="PatronCheckoutItems_insert1">
100         <label id="patron_checkout_scan_barcode_label" value="&patron_display.checkout.scan_label;" accesskey="&patron_display.checkout.scan_label.accesskey;" control="patron_checkout_barcode_entry_textbox"/>
101         <textbox id="patron_checkout_barcode_entry_textbox"/>
102         <button id="patron_checkout_submit_barcode_button" label="&patron_display.checkout.submit_label;" accesskey="&patron_display.checkout.submit_label.accesskey;"/>
103 </hbox>
104
105 <hbox id="PatronCheckoutItems_insert3">
106         <button id="checkout_print" label="&patron_display.checkout.print_receipt_label;" accesskey="&patron_display.checkout.print_receipt_label.accesskey;"/>
107         <button id="checkout_reprint" label="&patron_display.checkout.reprint_receipt_label;" accesskey="&patron_display.checkout.reprint_receipt_label.accesskey;" oncommand="mw.last_sPrint();"/>
108         <spacer id="pcii3s" flex="1"/>
109         <checkbox id="checkout_auto" label="&patron_display.checkout.auto_print_label;" accesskey="&patron_display.checkout.auto_print_label.accesskey;"/> 
110         <button id="checkout_done" label="&patron_display.checkout.done_label;" accesskey="&patron_display.checkout.done_label.accesskey;"/>
111 </hbox>
112
113 <hbox id="PatronItems_insert3">
114         <button id="item_print" label="&patron_display.items.print_receipt_label;" accesskey="&patron_display.items.print_receipt_label.accesskey;"/>
115 </hbox>
116
117 <box id="PatronBills_insert2" orient="vertical">
118 </box>
119
120 <box id="PatronBills_insert1" orient="vertical">
121         <hbox>
122                 <groupbox>
123                         <caption label="Summary"/>
124                         <grid>
125                                 <columns><column /><column /></columns>                                 
126                                 <rows>
127                                         <row>
128                                                 <label value="Total Owed" />
129         
130                                                 <textbox id="bill_total_owed" value="" readonly="true" />
131                                         </row>
132                                         <row>
133                                                 <label value="- Payment applied" />
134                         
135                                                 <textbox id="bill_payment_applied_textbox" readonly="true"/>
136                                         </row>
137                                         <row>
138                                                 <label value="= New Balance" 
139                                                         style="font-family: bold" />
140         
141                                                 <textbox id="bill_new_balance_textbox" readonly="true"/>
142                                         </row>
143                                 </rows>
144                         </grid>
145                 </groupbox>
146                 <spacer flex="2"/>
147                 <groupbox>
148                         <caption label="Pay Bill"/>
149                         <grid>
150                                 <columns><column /><column /></columns>                                 
151                                 <rows>
152                                         <row>
153                                                 <label value="Payment Type" 
154                                                         accesskey="t" control="payment_type_menulist" />
155                                                 <menulist id="payment_type_menulist">
156                                                         <menupopup id="payment_type_menupopup">
157                                                                 <menuitem id="payment_type_menuitem1" label="Cash" value="cash_payment"/>
158                                                                 <menuitem id="payment_type_menuitem2" label="Check" value="check_payment"/>
159                                                                 <menuitem id="payment_type_menuitem3" label="Credit Card" value="credit_card_payment"/>
160                                                                 <menuitem id="payment_type_menuitem4" label="Patron Credit" value="credit_payment" />
161                                                                 <menuitem id="payment_type_menuitem5" label="Work" value="work_payment"/>
162                                                                 <menuitem id="payment_type_menuitem6" label="Forgive" value="forgive_payment"/>
163                                                         </menupopup>
164                                                 </menulist>
165                                         </row>
166                                         <row>
167                                                 <label value="Payment received" style="font-weight: bold"
168                                                         accesskey="a" control="bill_payment_amount_textbox" />
169                         
170                                                 <textbox id="bill_payment_amount_textbox" style="border: solid thick black"/>
171                                         </row>
172                                         <row>
173                                                 <label value="- Payment applied" />
174                         
175                                                 <textbox id="bpato" observes="bill_payment_applied_textbox" />
176                                         </row>
177                                         <row>
178                                                 <label value="= Change" control="bill_change_amount_textbox" />
179         
180                                                 <hbox>
181                                                         <textbox id="bill_change_amount_textbox" />
182                                                 </hbox>
183                                         </row>
184                                         <row>
185                                                 <label value="or Patron Credit" 
186                                                         style="font-family: bold" />
187         
188                                                 <textbox id="bill_credit_amount_textbox" readonly="true"/>
189                                         </row>
190                                 </rows>
191                         </grid>
192                 </groupbox>
193         </hbox>
194         <hbox>
195                 <button id="bill_wizard" label="Bill Patron" accesskey="B"/>
196                 <spacer flex="2"/>
197                 <button id="change_to_credit" label="Convert Change to Patron Credit"/>
198                 <button id="bill_apply_payment" label="Go!" accesskey="G"/>
199         </hbox>
200         <label value=" "/>
201 </box>
202
203 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
204 <keyset id="PatronDisplay_keys">
205 </keyset>
206
207 </overlay>