b8b928ec1b5a3502acb877cb3e224954c34cadf8
[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><button dojoType='dijit.form.Button' onClick='fListGrid.showCreateDialog()'>New Formula</button></div>
11         </div>
12         <table  jsId="fListGrid"
13                 dojoType="openils.widget.AutoGrid"
14                 fieldOrder="['id', 'name', 'owner', 'item_count', 'skip_count']"
15                 query="{id: '*'}"
16                 defaultCellWidth='12'
17                 fmClass='acqdf'
18                 editOnEnter='true'>
19             <thead>
20                 <tr>
21                     <th field='name' get='getFormulaName'/>
22                     <th field='item_count' get='getItemCount'/>
23                 </tr>
24             </thead>
25         </table>
26     </div>
27 </div>
28
29
30
31 <div id='formula-entry-div'>
32     <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
33         <div id='formula-summary-pane'/>
34     </div>
35         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
36             <div id="formula_head"></div>
37            <div> <button dojoType='dijit.form.Button' onClick='dfeListGrid.showCreateDialog()'>New Formula Entry</button></div>
38         </div>
39         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
40             <table  jsId="dfeListGrid"
41                     dojoType="openils.widget.AutoGrid"
42                     fieldOrder="['id','formula', 'owning_lib', 'location', 'item_count', 'position']"
43                     suppressFields="['formula']"
44                     query="{id: '*'}"
45                     defaultCellWidth='12'
46                     fmClass='acqdfe'
47                     editOnEnter='true'>
48                 <thead>
49                     <tr> 
50                         <th field='formula' get='getFormulaId'/>
51                     </tr>
52                 </thead>
53             </table>
54         </div>
55     </div>
56 </div>
57 [% END %]
58