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