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 strings are intentionally
9 un-translated since they are codes, not labels. -->
10 <option>hourly</option>
11 <option>daily</option>
12 <option>weekdays</option>
13 <option>weekly</option>
14 <option>monthly</option>
15 <option>yearly</option>
20 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
22 <div dojoType="dijit.layout.ContentPane" title='[% l('Event Definitions') %]' id='tab-atevdef'>
23 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
24 <div>[% l('Trigger Event Definitions') %]</div>
26 <button dojoType='dijit.form.Button' onClick='edGrid.showCreatePane()'>[% l('New') %]</button>
27 <button dojoType='dijit.form.Button' onClick='edGrid.showClonePane(cloneEventEnv)'>[% l('Clone Selected') %]</button>
28 <button dojoType='dijit.form.Button' onClick='edGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
31 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:460px'>
34 dojoType="openils.widget.AutoGrid"
35 fieldOrder="['owner', 'name', 'hook', 'active', 'delay', 'delay_field', 'group_field', 'reactor', 'validator', 'repeat_delay']"
36 suppressFields="['usr_field', 'opt_in_setting', 'max_delay', 'template','cleanup_failure', 'cleanup_success', 'message_title', 'message_template', 'message_library_path', 'message_usr_path']"
43 <tr><th field='name' width='15%' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
49 <div dojoType="dijit.layout.ContentPane" title='[% l('Hooks') %]' id='tab-ath' style='height:100%;'>
50 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
51 <div>[% l('Trigger Hooks') %]</div>
53 <button dojoType='dijit.form.Button' onClick='thGrid.showCreateDialog()'>[% l('New') %]</button>
54 <button dojoType='dijit.form.Button' onClick='thGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
57 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
60 dojoType="openils.widget.AutoGrid"
61 fieldOrder="['key', 'core_type', 'description', 'passive']"
71 <div dojoType="dijit.layout.ContentPane" title='[% l('Reactors') %]' id='tab-atreact'>
72 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
73 <div>[% l('Trigger Reactors') %]</div>
75 <button dojoType='dijit.form.Button' onClick='trGrid.showCreateDialog()'>[% l('New') %]</button>
76 <button dojoType='dijit.form.Button' onClick='trGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
79 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
81 dojoType="openils.widget.AutoGrid"
88 <th field='module' width='200px;'/>
89 <th field='description' width='auto'/>
96 <div dojoType="dijit.layout.ContentPane" title='[% l('Validators') %]' id='tab-atval'>
97 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
98 <div>[% l('Trigger Validators') %]</div>
100 <button dojoType='dijit.form.Button' onClick='tvGrid.showCreateDialog()'>[% l('New') %]</button>
101 <button dojoType='dijit.form.Button' onClick='tvGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
104 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
106 dojoType="openils.widget.AutoGrid"
107 query="{module: '*'}"
113 <th field='module' width='200px'/>
114 <th field='description' width='auto'/>
123 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>