1 [% WRAPPER default/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>
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>
17 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
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>
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>
28 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
30 dojoType="openils.widget.AutoGrid"
31 fieldOrder="['owner', 'name', 'hook', 'active', 'delay', 'delay_field', 'group_field', 'validator', 'reactor']"
32 suppressFields="['template', 'cleanup_failure', 'cleanup_success']"
35 defaultCellWidth='"auto"'
40 <tr><th field='name' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
46 <div dojoType="dijit.layout.ContentPane" title='Hooks' id='tab-ath' style='height:100%;'>
47 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
48 <div>Trigger Hooks</div>
50 <button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>New</button>
51 <button dojoType='dijit.form.Button' onClick='thGrid.deleteSelected()'>Delete Selected</button>
54 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
57 dojoType="openils.widget.AutoGrid"
58 fieldOrder="['key', 'core_type', 'description', 'passive']"
68 <div dojoType="dijit.layout.ContentPane" title='Reactors' id='tab-atreact'>
69 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
70 <div>Trigger Reactors</div>
72 <button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>New</button>
73 <button dojoType='dijit.form.Button' onClick='trGrid.deleteSelected()'>Delete Selected</button>
76 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
78 dojoType="openils.widget.AutoGrid"
85 <th field='module' width='200px;'/>
86 <th field='description' width='auto'/>
93 <div dojoType="dijit.layout.ContentPane" title='Validators' id='tab-atval'>
94 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
95 <div>Trigger Validators</div>
97 <button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>New</button>
98 <button dojoType='dijit.form.Button' onClick='tvGrid.deleteSelected()'>Delete Selected</button>
101 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
103 dojoType="openils.widget.AutoGrid"
104 query="{module: '*'}"
110 <th field='module' width='200px'/>
111 <th field='description' width='auto'/>
120 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>