]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/conify/global/action_trigger/event_definition.tt2
LP#1205072 - Assorted fixes for action trigger granularity settings
[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>weekdays</option>
13         <option>weekly</option>
14         <option>monthly</option>
15         <option>yearly</option>
16     </select>
17 </div>
18
19
20 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
21
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>
25             <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>
29             </div>
30         </div>
31         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:460px'>
32             <table  jsId="edGrid" 
33                     autoHeight='true'
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']"
37                     query="{id: '*'}" 
38                     fmClass='atevdef'
39                     editStyle='pane'
40                     showPaginator='true'
41                     editOnEnter='true'>
42                 <thead>
43                     <tr><th field='name' width='15%' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
44                 </thead>
45             </table>
46         </div>
47     </div>
48
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>
52             <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>
55             </div>
56         </div>
57         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
58             <table  jsId="thGrid" 
59                     autoHeight='true'
60                     dojoType="openils.widget.AutoGrid" 
61                     fieldOrder="['key', 'core_type', 'description', 'passive']"
62                     query="{key: '*'}" 
63                     fmClass='ath'
64                     defaultCellWidth='20'
65                     showPaginator='true'
66                     editOnEnter='true'>
67             </table>
68         </div>
69     </div>
70
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>
74             <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>
77             </div>
78         </div>
79         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
80             <table  jsId="trGrid" 
81                     dojoType="openils.widget.AutoGrid" 
82                     query="{module: '*'}" 
83                     fmClass='atreact'
84                     showPaginator='true'
85                     editOnEnter='true'>
86                 <thead>
87                     <tr>
88                         <th field='module' width='200px;'/>
89                         <th field='description' width='auto'/>
90                     </tr>
91                 </thead>
92             </table>
93         </div>
94     </div>
95
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>
99             <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>
102             </div>
103         </div>
104         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
105             <table  jsId="tvGrid" 
106                     dojoType="openils.widget.AutoGrid" 
107                     query="{module: '*'}" 
108                     fmClass='atval'
109                     showPaginator='true'
110                     editOnEnter='true'>
111                 <thead>
112                     <tr>
113                         <th field='module' width='200px'/>
114                         <th field='description' width='auto'/>
115                     </tr>
116                 </thead>
117             </table>
118         </div>
119     </div>
120
121 </div>
122
123 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>
124
125 [% END %]
126