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