</link> is not valid HTML
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / action_trigger / event_definition_data.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/conify/global/action_trigger/event_definition.js'></script>
3 <script type="text/javascript">
4     eventDefId = [% ctx.page_args.0 %];
5     openils.Util.addOnLoad(loadEventDefData)
6 </script>
7
8 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
9     <h2 id='at-event-def-name'/>
10 </div>
11
12 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='eventDefTabs'>
13
14     <div dojoType="dijit.layout.ContentPane" title='Event Environment' id='tab-atenv'>
15         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
16             <div>Trigger Event Environment</div>
17             <div>   
18                 <button dojoType='dijit.form.Button' onClick='teeGrid.showCreateDialog()'>New</button>
19                 <button dojoType='dijit.form.Button' onClick='teeGrid.deleteSelected()'>Delete Selected</button>
20             </div>
21         </div>
22         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
23             <table  jsId="teeGrid" 
24                     dojoType="openils.widget.AutoGrid" 
25                     fieldOrder="['id', 'event_def', 'path', 'collector', 'label']"
26                     query="{id: '*'}" 
27                     fmClass='atenv'
28                     defaultCellWidth='20'
29                     editOnEnter='true'>
30             </table>
31         </div>
32     </div>
33
34
35     <div dojoType="dijit.layout.ContentPane" title='Event Parameters' id='tab-atevparam'>
36         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
37             <div>Trigger Event Parameters</div>
38             <div>
39                 <button dojoType='dijit.form.Button' onClick='tepGrid.showCreateDialog()'>New</button>
40                 <button dojoType='dijit.form.Button' onClick='tepGrid.deleteSelected()'>Delete Selected</button>
41             </div>
42         </div>
43         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
44             <table  jsId="tepGrid" 
45                     dojoType="openils.widget.AutoGrid" 
46                     fieldOrder="['id', 'event_def', 'param', 'value']"
47                     query="{id: '*'}" 
48                     fmClass='atevparam'
49                     defaultCellWidth='20'
50                     editOnEnter='true'>
51             </table>
52         </div>
53     </div>
54
55     <div dojoType="dijit.layout.ContentPane" title='Test' id='tab-test'>
56         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
57             <div>Event Definition Tests</div>
58             <div></div>
59         </div>
60         <br/>
61         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px'>
62             <div style='border:1px solid #aaa;' id='at-test-none'>
63                 No tests for this type of event definition hook
64             </div>
65             <div style='border:1px solid #aaa;' id='at-test-circ' class='hidden'>
66                 <h2>Test Circulation</h2>
67                 <table class='oils-generic-table'>
68                     <tr>
69                         <td>Barcode of Circulating Copy</td>
70                         <td><div dojoType='dijit.form.TextBox' jsId='circTestBarcode'/></td>
71                     </tr>
72                     <tr>
73                         <td colspan='2'><button dojoType='dijit.form.Button' onclick='evtTestCirc'>Go</button></td>
74                     </tr>
75                 </table>
76             </div>
77
78             <div id='test-event-output' style='width:90%;margin:20px;border:1px solid #aaa;' class='hidden'>
79             </div>
80             <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog' indeterminate='true'></div>
81         </div>
82     </div>
83
84 </div>
85
86 [% END %]
87
88