]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2
added ability to clone event_def environment when an event_def is cloned
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / action_trigger / event_definition.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Event Definitions' %]
3 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/action_trigger/event_definition.js'> </script>
4 <script>openils.Util.addOnLoad(loadEventDef)</script>
5
6
7 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
8
9     <div dojoType="dijit.layout.ContentPane" title='Event Definitions' id='tab-atevdef'>
10         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
11             <div>Trigger Event Definitions</div>
12             <div>
13                 <button dojoType='dijit.form.Button' onClick='edGrid.showCreatePane()'>New</button>
14                 <button dojoType='dijit.form.Button' onClick='edGrid.showClonePane(cloneEventEnv)'>Clone Selected</button>
15                 <button dojoType='dijit.form.Button' onClick='edGrid.deleteSelected()'>Delete Selected</button>
16             </div>
17         </div>
18         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
19             <table  jsId="edGrid" 
20                     dojoType="openils.widget.AutoGrid" 
21                     fieldOrder="['owner', 'name', 'hook', 'active', 'delay', 'delay_field', 'group_field', 'validator', 'reactor']"
22                     suppressFields="['template', 'cleanup_failure', 'cleanup_success']"
23                     query="{id: '*'}" 
24                     fmClass='atevdef'
25                     defaultCellWidth='"auto"'
26                     editStyle='pane'
27                     editOnEnter='true'>
28                 <thead>
29                     <tr><th field='name' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
30                 </thead>
31             </table>
32         </div>
33     </div>
34
35     <div dojoType="dijit.layout.ContentPane" title='Hooks' id='tab-ath' style='height:100%;'>
36         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
37             <div>Trigger Hooks</div>
38             <div>
39                 <button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>New</button>
40                 <button dojoType='dijit.form.Button' onClick='thGrid.deleteSelected()'>Delete Selected</button>
41             </div>
42         </div>
43         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
44             <table  jsId="thGrid" 
45                     autoHeight='true'
46                     dojoType="openils.widget.AutoGrid" 
47                     fieldOrder="['key', 'core_type', 'description', 'passive']"
48                     query="{key: '*'}" 
49                     fmClass='ath'
50                     defaultCellWidth='20'
51                     editOnEnter='true'>
52             </table>
53         </div>
54     </div>
55
56     <div dojoType="dijit.layout.ContentPane" title='Reactors' id='tab-atreact'>
57         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
58             <div>Trigger Reactors</div>
59             <div>
60                 <button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>New</button>
61                 <button dojoType='dijit.form.Button' onClick='trGrid.deleteSelected()'>Delete Selected</button>
62             </div>
63         </div>
64         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
65             <table  jsId="trGrid" 
66                     dojoType="openils.widget.AutoGrid" 
67                     query="{module: '*'}" 
68                     fmClass='atreact'
69                     editOnEnter='true'>
70                 <thead>
71                     <tr>
72                         <th field='module' width='200px;'/>
73                         <th field='description' width='auto'/>
74                     </tr>
75                 </thead>
76             </table>
77         </div>
78     </div>
79
80     <div dojoType="dijit.layout.ContentPane" title='Validators' id='tab-atval'>
81         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
82             <div>Trigger Validators</div>
83             <div>
84                 <button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>New</button>
85                 <button dojoType='dijit.form.Button' onClick='tvGrid.deleteSelected()'>Delete Selected</button>
86             </div>
87         </div>
88         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
89             <table  jsId="tvGrid" 
90                     dojoType="openils.widget.AutoGrid" 
91                     query="{module: '*'}" 
92                     fmClass='atval'
93                     editOnEnter='true'>
94                 <thead>
95                     <tr>
96                         <th field='module' width='200px'/>
97                         <th field='description' width='auto'/>
98                     </tr>
99                 </thead>
100             </table>
101         </div>
102     </div>
103
104 </div>
105
106 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>
107
108 [% END %]
109