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