]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/acq/distribution_formula.tt2
added some grid autoheight handling. small bug fixes on creation. other small cleanup
[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="client" 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                 autoHeight='true'
17                 dojoType="openils.widget.AutoGrid"
18                 fieldOrder="['id', 'name', 'owner', 'item_count', 'skip_count']"
19                 query="{id: '*'}"
20                 defaultCellWidth='12'
21                 fmClass='acqdf'
22                 editOnEnter='true'>
23             <thead>
24                 <tr>
25                     <th field='name' get='getFormulaName'/>
26                     <th field='item_count' get='getItemCount'/>
27                 </tr>
28             </thead>
29         </table>
30     </div>
31 </div>
32
33
34
35 <div id='formula-entry-div'>
36     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
37         <div id='formula-summary-pane'/>
38     </div>
39         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
40             <div id="formula_head"></div>
41             <div> 
42                 <button dojoType='dijit.form.Button' onClick='dfeListGrid.showCreateDialog()'>New Formula Entry</button>
43                 <button dojoType='dijit.form.Button' onClick='dfeListGrid.deleteSelected()'>Delete Selected</button> 
44             </div>
45         </div>
46         <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
47             <table  jsId="dfeListGrid"
48                     autoHeight='true'
49                     dojoType="openils.widget.AutoGrid"
50                     fieldOrder="['id','formula', 'owning_lib', 'location', 'item_count', 'position']"
51                     suppressFields="['formula']"
52                     query="{id: '*'}"
53                     defaultCellWidth='12'
54                     fmClass='acqdfe'
55                     editOnEnter='true'>
56                 <thead>
57                     <tr>
58                         <th field='formula' get='getFormulaId'/>
59                     </tr>
60                 </thead>
61             </table>
62             <div/>
63         </div>
64     </div>
65 </div>
66 [% END %]
67