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', 'reactor', 'validator']"
32 suppressFields="['usr_field', 'opt_in_setting', 'max_delay', 'template', 'cleanup_failure', 'cleanup_success']"
39 <tr><th field='name' width='15%' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
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>
49 <button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>New</button>
50 <button dojoType='dijit.form.Button' onClick='thGrid.deleteSelected()'>Delete Selected</button>
53 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
56 dojoType="openils.widget.AutoGrid"
57 fieldOrder="['key', 'core_type', 'description', 'passive']"
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>
71 <button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>New</button>
72 <button dojoType='dijit.form.Button' onClick='trGrid.deleteSelected()'>Delete Selected</button>
75 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
77 dojoType="openils.widget.AutoGrid"
84 <th field='module' width='200px;'/>
85 <th field='description' width='auto'/>
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>
96 <button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>New</button>
97 <button dojoType='dijit.form.Button' onClick='tvGrid.deleteSelected()'>Delete Selected</button>
100 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
102 dojoType="openils.widget.AutoGrid"
103 query="{module: '*'}"
109 <th field='module' width='200px'/>
110 <th field='description' width='auto'/>
119 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>