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