1 [% WRAPPER 'default/base.tt2' %]
2 <div id='oils-acq-list-header' class='container'>
3 <div id='oils-acq-picklist-my-list-header'>
4 <div id='oils-acq-list-header-label'>My Selection Lists</div>
6 <div id='oils-acq-picklist-all-list-header'>
7 <div id='oils-acq-list-header-label'>All Selection Lists</div>
11 <script src='[% ctx.media_prefix %]/js/ui/default/acq/picklist/view_list.js'> </script>
14 if(location.href.match(/listall$/)) {
16 dojo.style('oils-acq-picklist-my-list-header', 'visibility', 'hidden');
17 dojo.style('oils-acq-picklist-my-list-header', 'display', 'none');
19 dojo.style('oils-acq-picklist-all-list-header', 'visibility', 'hidden');
20 dojo.style('oils-acq-picklist-all-list-header', 'display', 'none');
24 function formatName(inDatum) {
25 for(var i in plCache){
28 if (inDatum == pl.name()){
29 return '<a href="[% ctx.base_uri %]/acq/picklist/view/'+id+'">'+inDatum+'</a>';
34 <div class='oils-acq-actions-div'>
36 <div dojoType="dijit.form.DropDownButton">
37 <span>New Selection List</span>
38 <div dojoType="dijit.TooltipDialog" execute="createPL(arguments[0]);">
39 <table class='dijitTooltipTable'>
41 <td><label for="name">Name:</label></td>
42 <td><input dojoType="dijit.form.TextBox" name="name"/></td>
45 <td colspan='2' align='center'>
46 <button dojoType='dijit.form.Button' type="submit">Create</button>
53 <button dojoType="dijit.form.Button" onclick="deleteFromGrid();">Delete Selected</button>
55 <div dojoType="dijit.form.DropDownButton">
56 <span>Clone Selected</span>
57 <div dojoType="dijit.TooltipDialog" execute="cloneSelectedPl(arguments[0]);">
58 <table class='dijitTooltipTable'>
60 <td><label for="name">New Name:</label></td>
61 <td><input dojoType="dijit.form.TextBox" name="name"/></td>
64 <td colspan='2' align='center'>
65 <button dojoType='dijit.form.Button' type="submit">Clone</button>
72 <div dojoType="dijit.form.DropDownButton">
73 <span>Merge Selected</span>
74 <div dojoType="dijit.TooltipDialog" execute="mergeSelectedPl(arguments[0]);" jsId='plMergeDialog'>
75 <table class='dijitTooltipTable'>
77 <td><label for="name">Choose the Lead Selection List:</label></td>
78 <td><input jsId='plMergeLeadSelector' dojoType="dijit.form.FilteringSelect" name="lead"/></td>
81 <td colspan='2' align='center'>
82 <button dojoType='dijit.form.Button' type="submit">Merge</button>
91 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
92 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
93 <table jsId="plListGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
96 <th field="id">ID</th>
97 <th field="name" width='auto' editable='true'
98 cellType='dojox.grid.cells._Widget'
99 widgetClass='dijit.form.TextBox' formatter='formatName'>Name</th>
100 <th field="owner" get='getOwnerName'>Selector</th>
101 <th field="create_time" width='auto' get='getDateTimeField'>Create Time</th>
102 <th field="edit_time" width='auto' get='getDateTimeField'>Edit Time</th>
103 <th field="entry_count">Entry Count</th>
110 <div class='hidden'><div jsId='progressDialog' dojoType='openils.widget.ProgressDialog'/></div>