82fa9b7b22457fdb3b4d7916d53fc80e7c0560ec
[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
5
6 <div id='provider-list-div'>
7     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
8         <div>Provider <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button></div>
9         <table  jsId="pListGrid"
10                 dojoType="openils.widget.AutoGrid"
11                 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
12                 query="{id: '*'}"
13                 defaultCellWidth='12'
14                 fmClass='acqpro'
15                 editOnEnter='true'>
16             <thead>
17                 <tr><th field='name' get='getProviderName'/></tr>
18             </thead>
19         </table>
20     </div>
21 </div>
22
23
24
25 <div id='provider-details-div'>
26     <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
27         <div id='provider-summary-pane'/> 
28     </div>   
29         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
30             <div>Provider Address</div>
31             <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
32         </div>
33         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:100px'>
34             <table  jsId="paListGrid"
35                     dojoType="openils.widget.AutoGrid"
36                     fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
37                     query="{id: '*'}"
38                     fmClass='acqpa'
39                     editOnEnter='true'>
40             </table>
41         </div>
42
43         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
44             <div>Provider Contact</div>
45             <button dojoType='dijit.form.Button' onClick='pcListGrid.showCreateDialog()'>New Contact</button>
46         </div>
47         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
48             <table  jsId="pcListGrid"
49                     dojoType="openils.widget.AutoGrid"
50                     fieldOrder="['id', 'name', 'provider', 'role', 'email']"
51                     defaultCellWidth='12'
52                     query="{id: '*'}"
53                     fmClass='acqpc'
54                     editOnEnter='true'>
55             </table>  
56         </div>
57
58
59
60         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
61             <div>Contact Address</div>
62             <button dojoType='dijit.form.Button' onClick='pcaListGrid.showCreateDialog()'>New Contact Address</button>
63         </div>
64         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
65             <table  jsId="pcaListGrid"
66                     dojoType="openils.widget.AutoGrid"
67                     fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
68                     query="{id: '*'}"
69                     fmClass='acqpca'
70                     editOnEnter='true'>
71                 
72             </table>
73         </div>
74     </div>
75 </div>
76 [% END %]
77