]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/picklist/list.tt2
15c237267f9ab0b3035c5dd1078dd02c5e6b5884
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / picklist / list.tt2
1 [% WRAPPER 'default/base.tt2' %]
2 [% ctx.page_title = 'Selection Lists' %]
3 <script src='[% ctx.media_prefix %]/js/ui/default/acq/picklist/view_list.js'> </script>
4
5 <script>
6     function formatName(inDatum) {
7         for(var i in plCache){
8             var pl = plCache[i];
9             var id = pl.id();
10             if (inDatum  == pl.name()){
11                 return '<a href="[% ctx.base_path %]/acq/picklist/view/'+id+'">'+inDatum+'</a>';
12             }
13         }
14     }
15 </script>
16
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
18     <div id='oils-acq-list-header' class='container'>
19         <div id='oils-acq-picklist-my-list-header'>
20             <div id='oils-acq-list-header-label'>My Selection Lists</div>
21         </div>
22     </div>
23 </div>
24
25 <div class='oils-acq-actions-div' dojoType="dijit.layout.ContentPane" layoutAlign="client">
26
27     <div dojoType="dijit.form.DropDownButton">
28         <span>New Selection List</span>
29         <div dojoType="dijit.TooltipDialog" execute="createPL(arguments[0]);">
30             <table class='dijitTooltipTable'>
31                 <tr>
32                     <td><label for="name">Name:</label></td>
33                     <td><input dojoType="dijit.form.TextBox" name="name"/></td>
34                 </tr>
35                 <tr>
36                     <td colspan='2' align='center'>
37                         <button dojoType='dijit.form.Button' type="submit">Create</button>
38                     </td>
39                 </tr>
40             </table>
41         </div>
42     </div>
43
44     <div dojoType="dijit.form.DropDownButton">
45         <span>Clone Selected</span>
46         <div dojoType="dijit.TooltipDialog" execute="cloneSelectedPl(arguments[0]);">
47             <table class='dijitTooltipTable'>
48                 <tr>
49                     <td><label for="name">New Name:</label></td>
50                     <td><input dojoType="dijit.form.TextBox" name="name"/></td>
51                 </tr>
52                 <tr>
53                     <td colspan='2' align='center'>
54                         <button dojoType='dijit.form.Button' type="submit">Clone</button>
55                     </td>
56                 </tr>
57             </table>
58         </div>
59     </div>
60
61     <div dojoType="dijit.form.DropDownButton">
62         <span>Merge Selected</span>
63         <div dojoType="dijit.TooltipDialog" execute="mergeSelectedPl(arguments[0]);" jsId='plMergeDialog'>
64             <table class='dijitTooltipTable'>
65                 <tr>
66                     <td><label for="name">Choose the Lead Selection List:</label></td>
67                     <td><input jsId='plMergeLeadSelector' dojoType="dijit.form.FilteringSelect" name="lead"/></td>
68                 </tr>
69                 <tr>
70                     <td colspan='2' align='center'>
71                         <button dojoType='dijit.form.Button' type="submit">Merge</button>
72                     </td>
73                 </tr>
74             </table>
75         </div>
76     </div>
77     <button dojoType="dijit.form.Button" onclick="deleteFromGrid();">Delete Selected</button>
78 </div>
79
80 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
81     <table 
82             autoHeight='true'
83             jsId="plListGrid" 
84             dojoType="openils.widget.AutoGrid" 
85             query="{id: '*'}" 
86             fieldOrder="['name', 'owner', 'entry_count', 'create_time', 'edit_time']"
87             suppressFields="['editor', 'creator']"
88             query="{id: '*'}"
89             defaultCellWidth='"auto"'
90             fmClass='acqpl'
91             showPaginator='true'
92             editOnEnter='true'>
93         <thead>
94             <tr>
95                 <th field="name" formatter='formatName'/>
96                 <th field="owner" get='getOwnerName'/>
97                 <th field="entry_count">Entry Count</th>
98             </tr>
99         </thead>
100     </table>
101     <div class='hidden'>
102         <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog'/>
103     </div>
104 </div>
105
106 [% END %]