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