LP1831390: combobox and date-select implement ControlValueAccessor
[Evergreen.git] / Open-ILS / src / templates / menu.tt2
1 <div id='oils-menu-div'>
2     <div dojoType="dijit.Toolbar" class='menuBar'>
3
4         <div dojoType="dijit.form.DropDownButton">
5             <span>[% l('Acquisitions') %]</span>
6             <div dojoType="dijit.Menu">
7
8                 <!-- ==========================================================================
9                      Picklist SubMenu
10                     ========================================================================== -->
11                 <div dojoType="dijit.PopupMenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy">
12                     <span>[% l('Selection Lists') %]</span>
13                      <div dojoType="dijit.Menu">
14                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
15                             onClick="location.href = '[% ctx.base_path %]/acq/picklist/list';">
16                             [% l('My Selection Lists') %]
17                         </div>
18                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
19                             onClick="location.href = '[% ctx.base_path %]/acq/picklist/bib_search';">
20                             [% l('Title Search') %]
21                         </div>
22                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
23                             onClick="location.href = '[% ctx.base_path %]/acq/picklist/upload';">
24                             [% l('Load Records') %]
25                         </div>
26                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
27                             onClick="location.href = '[% ctx.base_path %]/acq/picklist/brief_record';">
28                             [% l('New Brief Record') %]
29                         </div>
30                     </div>
31                 </div>
32
33                 <!-- ==========================================================================
34                      Purchase Order SubMenu
35                     ========================================================================== -->
36                 <div dojoType="dijit.PopupMenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy">
37                     <span>[% l('Purchase Orders') %]</span>
38                      <div dojoType="dijit.Menu">
39                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
40                             onClick="location.href = '[% ctx.base_path %]/acq/po/search';">
41                             [% l('PO Search') %]
42                         </div>
43                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
44                             onClick="location.href = '[% ctx.base_path %]/acq/lineitem/search';">
45                             [% l('Lineitem Search') %]
46                         </div>
47                         <!-- XXX 
48                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
49                             onClick="location.href = '[% ctx.base_path %]/acq/po/marc_upload';">
50                             [% l('Load Vendor Order Records') %]
51                         </div>
52                         -->
53                     </div>
54                 </div>
55                 <!-- ==========================================================================
56                      Receiving SubMenu
57                     ========================================================================== -->
58                 <div dojoType="dijit.PopupMenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy">
59                     <span>[% l('Receiving') %]</span>
60                     <div dojoType="dijit.Menu">
61                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
62                             onClick="location.href = '[% ctx.base_path %]/acq/receiving/process';">
63                                 [% l('Receiving') %]
64                         </div>
65                     </div>
66                 </div>
67             </div>
68         </div>
69
70         <div dojoType="dijit.form.DropDownButton">
71             <span>[% l('Admin') %]</span>
72             <div dojoType="dijit.Menu">
73                 <div dojoType="dijit.PopupMenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy">
74                     <span>[% l('Acquisitions') %]</span>
75                      <div dojoType="dijit.Menu">
76                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
77                             onClick="location.href = '[% ctx.base_path %]/acq/fund/list';">[% l('Funds') %]</div>
78                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
79                                 onClick="location.href = '[% ctx.base_path %]/acq/funding_source/list';">[% l('Funding Sources') %]</div>
80                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
81                                 onClick="location.href = '[% ctx.base_path %]/conify/global/acq/provider';">[% l('Providers') %]</div>
82                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
83                                 onClick="location.href = '[% ctx.base_path %]/acq/currency_type/list';">[% l('Currency Types') %]</div>
84                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
85                                 onClick="location.href = '[% ctx.base_path %]/conify/global/acq/exchange_rate';">[% l('Exchange Rates') %]</div>
86                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
87                                 onClick="location.href = '[% ctx.base_path %]/conify/global/acq/distribution_formula';">[% l('Distribution Formulas') %]</div>
88                     </div>
89                 </div>
90                 <div dojoType="dijit.PopupMenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy">
91                     <span>[% l('Config') %]</span>
92                      <div dojoType="dijit.Menu">
93                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
94                                 onClick="location.href = '[% ctx.base_path %]/conify/global/config/billing_type';">[% l('Billing Types') %]</div>
95                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
96                                 onClick="location.href = '[% ctx.base_path %]/conify/global/config/standing_penalty';">[% l('Standing Penalties') %]</div>
97                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
98                                 onClick="location.href = '[% ctx.base_path %]/conify/global/permission/grp_penalty_threshold';">
99                                     [% l('Group Penalty Thresholds') %]</div>
100                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
101                                 onClick="location.href = '[% ctx.base_path %]/conify/global/config/idl_field_doc';">[% l('Field Documentation') %]</div>
102                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
103                                 onClick="location.href = '[% ctx.base_path %]/conify/global/config/z3950_source';">[% l('Z39.50 Sources') %]</div>
104                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
105                                 onClick="location.href = '[% ctx.base_path %]/conify/global/config/circ_modifier';">[% l('Circulation Modifiers') %]</div>
106                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy" 
107                                 onClick="location.href = '[% ctx.base_path %]/conify/global/action_trigger/event_definition';">[% l('Action Trigger') %]</div>
108                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
109                              onClick="location.href = '[% ctx.base_path %]/conify/global/action/survey';">[% l('Surveys') %]</div>
110                         <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
111                              onClick="location.href = '[% ctx.base_path %]/conify/global/config/org_unit_setting_type';">[% l('Org Unit Setting Types') %]</div>
112                     </div>
113                 </div>
114             </div>
115         </div>
116     </div>
117 </div>
118
119     <script type="text/javascript">
120         dojo.require('openils.XUL');
121         if(openils.XUL.isXUL()) 
122             openils.Util.hide('oils-menu-div')
123         dojo.require('dijit.form.Button');
124         dojo.require('dijit.Toolbar');
125         dojo.require('dijit.Menu');
126     </script>
127