pile of dojo layout fixes for 1.3 and to better ascimilate into the TT framework
[working/Evergreen.git] / Open-ILS / web / templates / default / vandelay / inc / queue.tt2
1 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
2     <table class='wide'>
3         <tr>
4             <td align='left'>
5                 <h1>&vandelay.record.queue; <span style='font-style:italic;' id='vl-queue-summary-name'/></h1><br/>
6             </td>
7             <td align='right'>
8                 &vandelay.queue.total; <span style='font-weight:bold;' id='vl-queue-summary-total-count'/>
9                 &vandelay.queue.imported; <span style='font-weight:bold;' id='vl-queue-summary-import-count'/>
10             </td>
11         </tr>
12     </table>
13 </div>
14
15 <br/>
16
17 <!-- queue grid navigation row -->
18 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
19     <table width='100%' style='margin-bottom:0px;'>
20         <tr>
21             <td align='left' valign='bottom'>
22                 <select id='vl-queue-actions-selector'>
23                     <option selected='selected' disabled='disabled' value='select-actions'>&vandelay.select_actions;</option>
24                     <option value='import'>&vandelay.import.selected;</option>
25                     <option value='import_all'>&vandelay.import.all;</option>
26                     <option value='delete_queue'>&vandelay.delete.queue;</option>
27                 </select>
28                 <script>
29                     var sel = dojo.byId('vl-queue-actions-selector');
30                     sel.onchange = function(evt) {
31                         switch(openils.Util.selectorValue(evt.target)) {
32                             case 'import': vlImportSelectedRecords(); break;;
33                             case 'import_all': vlImportAllRecords(); break;;
34                             case 'delete_queue': 
35                                 if(confirm('&vandelay.sure.to.delete.queue;')) {
36                                     vlDeleteQueue(currentType, currentQueueId, 
37                                         function() { displayGlobalDiv('vl-marc-upload-div'); });
38                                 }
39                         }
40                         evt.target.selectedIndex = 0;
41                     }
42                 </script>
43             </td>
44             <td align='middle' valign='bottom'>
45                 <style>.filter_span { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
46                 <table><tr>
47                     <td>
48                         <span>&vandelay.limit.to.collision.matches;</span>
49                         <span class='filter_span'>
50                             <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
51                         </span>
52
53                         <span>&vandelay.limit.to.non.imported;</span>
54                         <span class='filter_span'>
55                             <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' checked='checked' onchange='retrieveQueuedRecords();'/>
56                         </span>
57
58                         <span>&vandelay.results.per.page;</span>
59                         <span class='filter_span'>
60                             <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
61                                 value='10' onchange='retrieveQueuedRecords();'>
62                                 <option value='10'>10</option>
63                                 <option value='20'>20</option>
64                                 <option value='50'>50</option>
65                                 <option value='100'>100</option>
66                             </select>
67                         </span>
68
69                         <span style='padding-left:5px;'>&vandelay.page;</span>
70                         <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
71                     </td>
72                 </tr></table>
73             </td>
74             <td align='right' valign='bottom'>
75                 <span style='padding-right:4px;'>
76                     <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&#171; &vandelay.prev.page;</a>
77                 </span>
78                 <span style='padding-right:10px;'>
79                     <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page; &#187;</a>
80                 </span>
81             </td>
82         </tr>
83     </table>
84 </div>
85
86 <!-- Bib Queue Grid -->
87 <div class='' id='vl-bib-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
88     <div dojoType="openils.widget.GridColumnPicker" jsid="vlBibQueueGridMenu" style="display: none;" grid='vlBibQueueGrid'>
89         <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
90     </div>
91     <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{import_time:'*'}" headerMenu='vlBibQueueGridMenu' autoHeight='true' _style='height:600px;'>
92         <thead>
93             <tr>
94                 <th 
95                     field='+row_selector'
96                     get='vlQueueGridDrawSelectBox'
97                     formatter='vlQueueGridFormatSelectBox'
98                     styles='text-align: center;'
99                     nonSelectable='true'>
100                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
101                 </th>
102                 <th
103                     field='+view_marc'
104                     get='vlGetViewMARC'
105                     formatter='vlFormatViewMARC' 
106                     styles='text-align: center;'
107                     nonSelectable='true'>&vandelay.view.marc;</th>
108                 <th
109                     field='+get_matches'
110                     get='vlGetViewMatches'
111                     formatter='vlFormatViewMatches'
112                     styles='text-align: center;'
113                     nonSelectable='true'>&vandelay.matches;</th>
114                 <th
115                     field='import_time'
116                     styles='text-align: center;'
117                     get='vlGetDateTimeField'>&vandelay.import.time;</th>
118             </tr>
119         </thead>
120     </table>
121     <div/>
122 </div>
123
124 <!-- Auth Queue Grid -->
125 <div class='' id='vl-auth-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
126     <div dojoType="openils.widget.GridColumnPicker" jsid="vlAuthQueueGridMenu" style="display: none;" grid='vlAuthQueueGrid'>
127         <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
128     </div>
129     <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" headerMenu='vlAuthQueueGridMenu'> 
130         <thead>
131             <tr>
132                 <th 
133                     field='+row_selector'
134                     get='vlQueueGridDrawSelectBox'
135                     formatter='vlQueueGridFormatSelectBox'
136                     styles='text-align: center;'
137                     nonSelectable='true'>
138                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
139                 </th>
140                 <th
141                     field='+view_marc'
142                     get='vlGetViewMARC'
143                     formatter='vlFormatViewMARC' 
144                     styles='text-align: center;'
145                     nonSelectable='true'>&vandelay.view.marc;</th>
146                 <th
147                     field='+get_matches'
148                     get='vlGetViewMatches'
149                     formatter='vlFormatViewMatches'
150                     styles='text-align: center;'
151                     nonSelectable='true'>&vandelay.matches;</th>
152                 <th
153                     field='import_time'
154                     styles='text-align: center;'
155                     get='vlGetDateTimeField'>&vandelay.import.time;</th>
156             </tr>
157         </thead>
158     </table>
159     <div/>
160 </div>
161
162