1 [% WRAPPER 'base.tt2' %]
2 [% ctx.page_title = l('Selection Lists') %]
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'>[% l('My Selection Lists') %]</div>
12 <div class='oils-acq-actions-div' dojoType="dijit.layout.ContentPane" layoutAlign="client">
14 <div dojoType="dijit.form.DropDownButton">
15 <span>[% l('New Selection List') %]</span>
16 <div dojoType="dijit.TooltipDialog" execute="createPL(arguments[0]);">
17 <table class='dijitTooltipTable'>
19 <td><label for="name">[% l('Name:') %]</label></td>
20 <td><input dojoType="dijit.form.TextBox" name="name"/></td>
23 <td colspan='2' align='center'>
24 <button dojoType='dijit.form.Button' type="submit">[% l('Create') %]</button>
31 <div dojoType="dijit.form.DropDownButton">
32 <span>[% l('Clone Selected') %]</span>
33 <div dojoType="dijit.TooltipDialog" execute="cloneSelectedPl(arguments[0]);">
34 <table class='dijitTooltipTable'>
36 <td><label for="name">[% l('New Name:') %]</label></td>
37 <td><input dojoType="dijit.form.TextBox" name="name"/></td>
40 <td colspan='2' align='center'>
41 <button dojoType='dijit.form.Button' type="submit">[% l('Clone') %]</button>
48 <div dojoType="dijit.form.DropDownButton">
49 <span>[% l('Merge Selected') %]</span>
50 <div dojoType="dijit.TooltipDialog" execute="mergeSelectedPl(arguments[0]);" jsId='plMergeDialog'>
51 <table class='dijitTooltipTable'>
53 <td><label for="name">[% l('Choose the Lead Selection List:') %]</label></td>
54 <td><input jsId='plMergeLeadSelector' dojoType="dijit.form.FilteringSelect" name="lead"/></td>
57 <td colspan='2' align='center'>
58 <button dojoType='dijit.form.Button' type="submit">[% l('Merge') %]</button>
64 <button dojoType="dijit.form.Button" onclick="deleteFromGrid();">[% l('Delete Selected') %]</button>
67 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
71 dojoType="openils.widget.AutoGrid"
73 fieldOrder="['name', 'owner', 'entry_count', 'create_time', 'edit_time']"
74 suppressFields="['editor', 'creator']"
76 defaultCellWidth='"auto"'
82 <th field="name" formatter='formatName'/>
83 <th field="owner" get='getOwnerName'/>
84 <th field="entry_count">[% l('Entry Count') %]</th>
89 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog'></div>
93 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/picklist/view_list.js'></script>
95 <script type="text/javascript">
96 function formatName(inDatum) {
97 for(var i in plCache){
100 if (inDatum == pl.name()){
101 return '<a href="[% ctx.base_path %]/acq/picklist/view/'+id+'">'+inDatum+'</a>';