added clone button for event definition
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / action_trigger / event_definition.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/action_trigger/event_definition.js'> </script>
3
4 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
5
6     <div dojoType="dijit.layout.ContentPane" title='Event Definitions' selected='true' id='tab-atevdef'>
7         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
8             <div>Trigger Event Definitions</div>
9             <div>
10                 <button dojoType='dijit.form.Button' onClick='edGrid.showClonePane()'>Clone Selected</button>
11                 <button dojoType='dijit.form.Button' onClick='edGrid.showCreatePane()'>New</button>
12             </div>
13         </div>
14         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
15             <table  jsId="edGrid" 
16                     dojoType="openils.widget.AutoGrid" 
17                     fieldOrder="['id', 'owner', 'hook', 'active', 'delay', 'validator', 'reactor']"
18                     suppressFields="['template']"
19                     query="{id: '*'}" 
20                     fmClass='atevdef'
21                     defaultCellWidth='8'
22                     editStyle='pane'
23                     editOnEnter='true'>
24             </table>
25         </div>
26     </div>
27
28     <div dojoType="dijit.layout.ContentPane" title='Event Parameters' id='tab-atevparam'>
29         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
30             <div>Trigger Event Parameters</div>
31             <div><button dojoType='dijit.form.Button' onClick='tepGrid.showCreateDialog()'>New</button></div>
32         </div>
33         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
34             <table  jsId="tepGrid" 
35                     dojoType="openils.widget.AutoGrid" 
36                     fieldOrder="['id', 'event_def', 'param', 'value']"
37                     query="{id: '*'}" 
38                     fmClass='atevparam'
39                     defaultCellWidth='20'
40                     editOnEnter='true'>
41             </table>
42         </div>
43     </div>
44
45     <div dojoType="dijit.layout.ContentPane" title='Event Environment' id='tab-atenv'>
46         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
47             <div>Trigger Event Environment</div>
48             <div><button dojoType='dijit.form.Button' onClick='teeGrid.showCreateDialog()'>New</button></div>
49         </div>
50         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
51             <table  jsId="teeGrid" 
52                     dojoType="openils.widget.AutoGrid" 
53                     fieldOrder="['id', 'event_def', 'path', 'collector', 'label']"
54                     query="{id: '*'}" 
55                     fmClass='atenv'
56                     defaultCellWidth='20'
57                     editOnEnter='true'>
58             </table>
59         </div>
60     </div>
61
62
63     <div dojoType="dijit.layout.ContentPane" title='Hooks' id='tab-ath'>
64         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
65             <div>Trigger Hooks</div>
66             <div><button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>New</button></div>
67         </div>
68         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
69             <table  jsId="thGrid" 
70                     dojoType="openils.widget.AutoGrid" 
71                     fieldOrder="['key', 'core_type', 'description', 'passive']"
72                     query="{key: '*'}" 
73                     fmClass='ath'
74                     defaultCellWidth='12'
75                     editOnEnter='true'>
76             </table>
77         </div>
78     </div>
79
80     <div dojoType="dijit.layout.ContentPane" title='Reactors' id='tab-atreact'>
81         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
82             <div>Trigger Reactors</div>
83             <div><button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>New</button></div>
84         </div>
85         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
86             <table  jsId="trGrid" 
87                     dojoType="openils.widget.AutoGrid" 
88                     query="{module: '*'}" 
89                     fmClass='atreact'
90                     editOnEnter='true'>
91                 <thead>
92                     <tr>
93                         <th field='module' width='200px;'/>
94                         <th field='description' width='auto'/>
95                     </tr>
96                 </thead>
97             </table>
98         </div>
99     </div>
100
101     <div dojoType="dijit.layout.ContentPane" title='Validators' id='tab-atval'>
102         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
103             <div>Trigger Validators</div>
104             <div><button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>New</button></div>
105         </div>
106         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:90%'>
107             <table  jsId="tvGrid" 
108                     dojoType="openils.widget.AutoGrid" 
109                     query="{module: '*'}" 
110                     fmClass='atval'
111                     editOnEnter='true'>
112                 <thead>
113                     <tr>
114                         <th field='module' width='200px'/>
115                         <th field='description' width='auto'/>
116                     </tr>
117                 </thead>
118             </table>
119         </div>
120     </div>
121
122 </div>
123
124 [% END %]
125
126