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