2 [% ctx.page_title = l('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'>[% l('Hourly') %]</option>
9 <option value='daily'>[% l('Daily') %]</option>
10 <option value='weekly'>[% l('Weekly') %]</option>
11 <option value='monthly'>[% l('Monthly') %]</option>
12 <option value='yearly'>[% l('Yearly') %]</option>
17 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
19 <div dojoType="dijit.layout.ContentPane" title='[% l('Event Definitions') %]' id='tab-atevdef'>
20 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
21 <div>[% l('Trigger Event Definitions') %]</div>
23 <button dojoType='dijit.form.Button' onClick='edGrid.showCreatePane()'>[% l('New') %]</button>
24 <button dojoType='dijit.form.Button' onClick='edGrid.showClonePane(cloneEventEnv)'>[% l('Clone Selected') %]</button>
25 <button dojoType='dijit.form.Button' onClick='edGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
28 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:460px'>
31 dojoType="openils.widget.AutoGrid"
32 fieldOrder="['owner', 'name', 'hook', 'active', 'delay', 'delay_field', 'group_field', 'reactor', 'validator', 'repeat_delay']"
33 suppressFields="['usr_field', 'opt_in_setting', 'max_delay', 'template', 'cleanup_failure', 'cleanup_success']"
40 <tr><th field='name' width='15%' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
46 <div dojoType="dijit.layout.ContentPane" title='[% l('Hooks') %]' id='tab-ath' style='height:100%;'>
47 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
48 <div>[% l('Trigger Hooks') %]</div>
50 <button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>[% l('New') %]</button>
51 <button dojoType='dijit.form.Button' onClick='thGrid.deleteSelected()'>[% l('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='[% l('Reactors') %]' id='tab-atreact'>
69 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
70 <div>[% l('Trigger Reactors') %]</div>
72 <button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>[% l('New') %]</button>
73 <button dojoType='dijit.form.Button' onClick='trGrid.deleteSelected()'>[% l('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='[% l('Validators') %]' id='tab-atval'>
94 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
95 <div>[% l('Trigger Validators') %]</div>
97 <button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>[% l('New') %]</button>
98 <button dojoType='dijit.form.Button' onClick='tvGrid.deleteSelected()'>[% l('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>