added delete-selected buttons
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / acq / distribution_formula.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/acq/distribution_formula.js'> </script>
3 <script> var formulaId = '[% ctx.page_args.0 %]';</script>
4
5
6 <div id='formula-list-div'>
7     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
8         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
9             <div>Distribution Formulas</div>
10             <div>
11                 <button dojoType='dijit.form.Button' onClick='fListGrid.showCreateDialog()'>New Formula</button>
12                 <button dojoType='dijit.form.Button' onClick='fListGrid.deleteSelected()'>Delete Selected</button>
13             </div>
14         </div>
15         <table  jsId="fListGrid"
16                 dojoType="openils.widget.AutoGrid"
17                 fieldOrder="['id', 'name', 'owner', 'item_count', 'skip_count']"
18                 query="{id: '*'}"
19                 defaultCellWidth='12'
20                 fmClass='acqdf'
21                 editOnEnter='true'>
22             <thead>
23                 <tr>
24                     <th field='name' get='getFormulaName'/>
25                     <th field='item_count' get='getItemCount'/>
26                 </tr>
27             </thead>
28         </table>
29     </div>
30 </div>
31
32
33
34 <div id='formula-entry-div'>
35     <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
36         <div id='formula-summary-pane'/>
37     </div>
38         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
39             <div id="formula_head"></div>
40             <div> 
41                 <button dojoType='dijit.form.Button' onClick='dfeListGrid.showCreateDialog()'>New Formula Entry</button>
42                 <button dojoType='dijit.form.Button' onClick='dfeListGrid.deleteSelected()'>Delete Selected</button> 
43             </div>
44         </div>
45         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
46             <table  jsId="dfeListGrid"
47                     dojoType="openils.widget.AutoGrid"
48                     fieldOrder="['id','formula', 'owning_lib', 'location', 'item_count', 'position']"
49                     suppressFields="['formula']"
50                     query="{id: '*'}"
51                     defaultCellWidth='12'
52                     fmClass='acqdfe'
53                     editOnEnter='true'>
54                 <thead>
55                     <tr>
56                         <th field='formula' get='getFormulaId'/>
57                     </tr>
58                 </thead>
59             </table>
60         </div>
61     </div>
62 </div>
63 [% END %]
64