big re-work of the provider config page
[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 Locations</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> </div>
49         </div>
50     </div>
51     <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
52         <table  jsId="pListGrid"
53                 dojoType="openils.widget.AutoGrid"
54                 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
55                 query="{id: '*'}"
56                 defaultCellWidth='12'
57                 fmClass='acqpro'
58                 editOnEnter='true'>
59             <thead>
60                 <tr><th field='name' get='getProviderName'/></tr>
61             </thead>
62         </table>
63     </div>
64 </div>
65  <div id='provider-summary-pane'></div>     
66 <div id='provider-details-div' style='height:600px;'>
67 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='providerTabs'>
68
69     <div dojoType="dijit.layout.ContentPane" title='Provider Address' select='true' id='provider-address'>
70         
71         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
72             <div> Provider Address</div>
73             <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
74             <button dojoType='dijit.form.Button' onClick='paListGrid.deleteSelected()'>Delete Selected</button>
75         </div>
76         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:100px'>
77             <table  jsId="paListGrid"
78                     dojoType="openils.widget.AutoGrid"
79                     fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
80                     query="{id: '*'}"
81                     fmClass='acqpa'
82                     editOnEnter='true'>
83             </table>
84         </div>
85     </div>
86     
87     <div dojoType="dijit.layout.ContentPane" title='Provider Contact' id='tab-pro-contact'>
88         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
89             <div> Provider Contact</div>
90             <button dojoType='dijit.form.Button' onClick='pcListGrid.showCreateDialog()'>New Contact</button>
91             <button dojoType='dijit.form.Button' onClick='pcListGrid.deleteSelected()'>Delete Selected</button>
92         </div>
93         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
94             <table  jsId="pcListGrid"
95                     dojoType="openils.widget.AutoGrid"
96                     fieldOrder="['id', 'name', 'provider', 'role', 'email']"
97                     defaultCellWidth='12'
98                     query="{id: '*'}"
99                     fmClass='acqpc'
100                     editOnEnter='true'>
101             </table>
102         </div>
103     
104     <div id='contact-addr-div'>
105         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
106             <div>Contact Address</div>
107             <button dojoType='dijit.form.Button' onClick='pcaListGrid.showCreateDialog()'>New Contact Address</button>
108             <button dojoType='dijit.form.Button' onClick='pcaListGrid.deleteSelected()'>Delete Selected</button>
109         </div>
110         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
111             <table  jsId="pcaListGrid"
112                     dojoType="openils.widget.AutoGrid"
113                     fieldOrder="['id', 'address_type', 'contact', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
114                     query="{id: '*'}"
115                     fmClass='acqpca'
116                     editOnEnter='true'>
117                 
118             </table>
119         </div>
120     </div> 
121 </div>
122     <div dojoType="dijit.layout.ContentPane" title='Attribute Definitions' id='tab-attr'>       
123         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
124             <div> Attribute Definitions</div>
125             <button dojoType='dijit.form.Button' onClick='padListGrid.showCreateDialog()'>New Attribute Definition</button>
126             <button dojoType='dijit.form.Button' onClick='padListGrid.deleteSelected()'>Delete Selected</button>
127         </div>
128         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
129             <table  jsId="padListGrid"
130                     dojoType="openils.widget.AutoGrid"
131                     fieldOrder="['id', 'provider', 'code', 'description', 'xpath', 'provider', 'ident']"
132                     defaultCellWidth='20'
133                     query="{id: '*'}"
134                     fmClass='acqlipad'
135                     editOnEnter='true'>
136                 
137             </table>
138         </div>
139     </div>
140     
141     <div dojoType="dijit.layout.ContentPane" title='Holding Subfield' id='tab-hold'>       
142         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
143             <div>Holding Subfield</div>
144             <button dojoType='dijit.form.Button' onClick='phsListGrid.showCreateDialog()'>New Holding Subfield</button>
145             <button dojoType='dijit.form.Button' onClick='phsListGrid.deleteSelected()'>Delete Selected</button>
146         </div>
147         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
148             <table  jsId="phsListGrid"
149                     dojoType="openils.widget.AutoGrid"
150                     fieldOrder="['id', 'provider', 'name', 'subfield']"
151                     defaultCellWidth='20'
152                     query="{id: '*'}"
153                     fmClass='acqphsm'
154                     editOnEnter='true'>
155                 <thead>
156                     <tr>
157                         <th field="name" formatter='formatName'/>
158                         </tr>
159                     </thead>
160             </table>
161         </div>
162     </div>
163 </div>  
164 </div>
165 [% END %]
166