]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2
3e33eb573f5655767edc36afadaab61dd1875809
[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                     showPaginator='true'
28                     editOnEnter='true'>
29                 <thead>
30                     <tr><th field='name' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
31                 </thead>
32             </table>
33         </div>
34     </div>
35
36     <div dojoType="dijit.layout.ContentPane" title='Hooks' id='tab-ath' style='height:100%;'>
37         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
38             <div>Trigger Hooks</div>
39             <div>
40                 <button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>New</button>
41                 <button dojoType='dijit.form.Button' onClick='thGrid.deleteSelected()'>Delete Selected</button>
42             </div>
43         </div>
44         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
45             <table  jsId="thGrid" 
46                     autoHeight='true'
47                     dojoType="openils.widget.AutoGrid" 
48                     fieldOrder="['key', 'core_type', 'description', 'passive']"
49                     query="{key: '*'}" 
50                     fmClass='ath'
51                     defaultCellWidth='20'
52                     showPaginator='true'
53                     editOnEnter='true'>
54             </table>
55         </div>
56     </div>
57
58     <div dojoType="dijit.layout.ContentPane" title='Reactors' id='tab-atreact'>
59         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
60             <div>Trigger Reactors</div>
61             <div>
62                 <button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>New</button>
63                 <button dojoType='dijit.form.Button' onClick='trGrid.deleteSelected()'>Delete Selected</button>
64             </div>
65         </div>
66         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
67             <table  jsId="trGrid" 
68                     dojoType="openils.widget.AutoGrid" 
69                     query="{module: '*'}" 
70                     fmClass='atreact'
71                     showPaginator='true'
72                     editOnEnter='true'>
73                 <thead>
74                     <tr>
75                         <th field='module' width='200px;'/>
76                         <th field='description' width='auto'/>
77                     </tr>
78                 </thead>
79             </table>
80         </div>
81     </div>
82
83     <div dojoType="dijit.layout.ContentPane" title='Validators' id='tab-atval'>
84         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
85             <div>Trigger Validators</div>
86             <div>
87                 <button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>New</button>
88                 <button dojoType='dijit.form.Button' onClick='tvGrid.deleteSelected()'>Delete Selected</button>
89             </div>
90         </div>
91         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
92             <table  jsId="tvGrid" 
93                     dojoType="openils.widget.AutoGrid" 
94                     query="{module: '*'}" 
95                     fmClass='atval'
96                     showPaginator='true'
97                     editOnEnter='true'>
98                 <thead>
99                     <tr>
100                         <th field='module' width='200px'/>
101                         <th field='description' width='auto'/>
102                     </tr>
103                 </thead>
104             </table>
105         </div>
106     </div>
107
108 </div>
109
110 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>
111
112 [% END %]
113