]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/acq/po/history.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
[working/Evergreen.git] / Open-ILS / src / templates / acq / po / history.tt2
1 [% WRAPPER "base.tt2" %]
2 [% ctx.page_title = "PO History" %]
3 <h1>Purchase Order History</h1>
4 <br/>
5 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
6     <table  jsId="pohGrid"
7             autoHeight='true'
8             dojoType="openils.widget.AutoGrid"
9             defaultCellWidth="'auto'"
10             fieldOrder="['audit_time', 'name', 'state', 'ordering_agency', 'provider', 'create_time', 'edit_time', 'order_date', 'creator', 'editor', 'owner']"
11             query="{audit_id: '*'}"
12             suppressFields='["id", "audit_id", "audit_action"]'
13             fmClass='acqpoh'
14             editOnEnter='true'
15             editReadOnly='true'
16             showPaginator='true'>
17     </table>
18 </div>
19
20 <script type="text/javascript">
21     dojo.require('openils.Util');
22     dojo.require('openils.widget.AutoGrid');
23     var poId = "[% ctx.page_args.0 %]";
24     openils.Util.addOnLoad(
25         function() {
26             pohGrid.loadAll({order_by : {acqpoh :  'audit_time DESC'}}, {id : poId});
27         }
28     );
29 </script>
30 [% END %]