wrap header buttons in a div so they will adopt the correct CSS
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / acq / provider.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/acq/provider.js'> </script>
3 <script> var providerId = '[% ctx.page_args.0 %]';</script>
4 <script type ="text/javascript">
5     function formatName(inDatum) {
6         switch (inDatum) {
7             case 'owning_lib':
8                 return 'Owning Library';
9             case 'quantity':
10                 return 'Quantity';
11             case 'call_number':
12                 return 'Call Number';
13             case 'fund_code':
14                 return 'Fund Code';
15             case 'local_note':
16                 return 'Local Note';
17             case 'price':
18                 return 'Price';
19             case 'circ_modifier':
20                 return 'Circulation Modifier';
21             case 'copy_location':
22                 return 'Copy Location';
23             case 'collection_code':
24                 return 'Collection Code';
25         }
26     }
27
28 </script>
29 <div class="hidden"><select dojoType="dijit.form.FilteringSelect" jsId="nameSelect">
30     <option value='owning_lib'>Owning Library</option>
31     <option value='quantity'>Quantity</option>
32     <option value='call_number'>Call Number</option>
33     <option value='fund_code'>Fund Code</option>
34     <option value='local_note'>Local Note</option>
35     <option value='price'>Price</option>
36     <option value='circ_modifier'>Circulation Modifier</option>
37     <option value='copy_location'>Copy Location</option>
38     <option value='collection_code'>Collection Code</option>
39 </select>
40 </div> 
41 <div id='provider-list-div' style='height: 600px;'>
42     <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
43  
44         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
45             <div>Provider</div>
46             <div>
47                 <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button>
48                 <button dojoType='dijit.form.Button' onClick='pListGrid.deleteSelected()'>Delete Selected</button> 
49             </div>
50         </div>
51     </div>
52     <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
53         <table  jsId="pListGrid"
54                 dojoType="openils.widget.AutoGrid"
55                 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
56                 query="{id: '*'}"
57                 defaultCellWidth='12'
58                 fmClass='acqpro'
59                 editOnEnter='true'>
60             <thead>
61                 <tr><th field='name' get='getProviderName'/></tr>
62             </thead>
63         </table>
64     </div>
65 </div>
66  <div id='provider-summary-pane'></div>     
67 <div id='provider-details-div' style='height:600px;'>
68 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='providerTabs'>
69
70     <div dojoType="dijit.layout.ContentPane" title='Provider Address' select='true' id='provider-address'>
71         
72         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
73             <div> Provider Address</div>
74             <div>
75                 <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
76                 <button dojoType='dijit.form.Button' onClick='paListGrid.deleteSelected()'>Delete Selected</button>
77             </div>
78         </div>
79         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
80             <table  jsId="paListGrid"
81                     dojoType="openils.widget.AutoGrid"
82                     fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
83                     query="{id: '*'}"
84                     fmClass='acqpa'
85                     editOnEnter='true'>
86             </table>
87         </div>
88     </div>
89     
90     <div dojoType="dijit.layout.ContentPane" title='Provider Contact' id='tab-pro-contact'>
91         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
92             <div> Provider Contact</div>
93             <div>
94                 <button dojoType='dijit.form.Button' onClick='pcListGrid.showCreateDialog()'>New Contact</button>
95                 <button dojoType='dijit.form.Button' onClick='pcListGrid.deleteSelected()'>Delete Selected</button>
96             </div>
97         </div>
98         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
99             <table  jsId="pcListGrid"
100                     dojoType="openils.widget.AutoGrid"
101                     fieldOrder="['id', 'name', 'provider', 'role', 'email']"
102                     defaultCellWidth='12'
103                     query="{id: '*'}"
104                     fmClass='acqpc'
105                     editOnEnter='true'>
106             </table>
107         </div>
108     
109     <div id='contact-addr-div'>
110         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
111             <div>Contact Address</div>
112             <div>
113                 <button dojoType='dijit.form.Button' onClick='pcaListGrid.showCreateDialog()'>New Contact Address</button>
114                 <button dojoType='dijit.form.Button' onClick='pcaListGrid.deleteSelected()'>Delete Selected</button>
115             </div>
116         </div>
117         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
118             <table  jsId="pcaListGrid"
119                     dojoType="openils.widget.AutoGrid"
120                     fieldOrder="['id', 'address_type', 'contact', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
121                     query="{id: '*'}"
122                     fmClass='acqpca'
123                     editOnEnter='true'>
124                 
125             </table>
126         </div>
127     </div> 
128 </div>
129     <div dojoType="dijit.layout.ContentPane" title='Attribute Definitions' id='tab-attr'>       
130         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
131             <div> Attribute Definitions</div>
132             <div>
133                 <button dojoType='dijit.form.Button' onClick='padListGrid.showCreateDialog()'>New Attribute Definition</button>
134                 <button dojoType='dijit.form.Button' onClick='padListGrid.deleteSelected()'>Delete Selected</button>
135             </div>
136         </div>
137         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
138             <table  jsId="padListGrid"
139                     dojoType="openils.widget.AutoGrid"
140                     fieldOrder="['id', 'provider', 'code', 'description', 'xpath', 'provider', 'ident']"
141                     defaultCellWidth='20'
142                     query="{id: '*'}"
143                     fmClass='acqlipad'
144                     editOnEnter='true'>
145                 
146             </table>
147         </div>
148     </div>
149     
150     <div dojoType="dijit.layout.ContentPane" title='Holding Subfield' id='tab-hold'>       
151         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
152             <div>Holding Subfield</div>
153             <div>
154                 <button dojoType='dijit.form.Button' onClick='phsListGrid.showCreateDialog()'>New Holding Subfield</button>
155                 <button dojoType='dijit.form.Button' onClick='phsListGrid.deleteSelected()'>Delete Selected</button>
156             </div>
157         </div>
158         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
159             <table  jsId="phsListGrid"
160                     dojoType="openils.widget.AutoGrid"
161                     fieldOrder="['id', 'provider', 'name', 'subfield']"
162                     defaultCellWidth='20'
163                     query="{id: '*'}"
164                     fmClass='acqphsm'
165                     editOnEnter='true'>
166                 <thead>
167                     <tr>
168                         <th field="name" formatter='formatName'/>
169                         </tr>
170                     </thead>
171             </table>
172         </div>
173     </div>
174 </div>  
175 </div>
176 [% END %]
177