1cdd497b08dd0c062a95e3285ab500b8bacb5564
[working/Evergreen.git] / Open-ILS / src / templates / conify / global / config / rule_circ_duration.tt2
1 [% WRAPPER base.tt2 %]
2 [% ctx.page_title = l('Circ Duration Rules') %]
3 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
4     <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
5         <div>[% l('Circ Duration Rules') %]</div>
6         <div>
7             <button dojoType='dijit.form.Button' onClick='ruleCircDurationGrid.showCreateDialog()'>[% l('New Duration Rule') %]</button>
8             <button dojoType='dijit.form.Button' onClick='ruleCircDurationGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
9         </div>
10     </div>
11     <table  jsId="ruleCircDurationGrid"
12             dojoType="openils.widget.AutoGrid"
13             fieldOrder="['name', 'max_renewals', 'shrt', 'normal', 'extended']"
14             suppressFields="['id']"
15             query="{id: '*'}"
16             fmClass='crcd'
17             editOnEnter='true'/>
18 </div>
19
20 <script type="text/javascript">
21     dojo.require('openils.Util');
22     dojo.require('openils.widget.AutoGrid');
23     openils.Util.addOnLoad( function() { ruleCircDurationGrid.loadAll(); } );
24 </script>
25 [% END %]
26
27