</link> is not valid HTML
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / permission / grp_penalty_threshold.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/permission/grp_penalty_threshold.js'> </script>    
3
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
5     <div>Penalty Threshold</div>
6     <div>
7         <button dojoType='dijit.form.Button' onClick='gptGrid.showCreateDialog()'>New Penalty Threshold</button>
8         <button dojoType='dijit.form.Button' onClick='gptGrid.deleteSelected()'>Delete Selected</button>
9     </div>
10 </div>
11
12 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
13     <span>Context Org Unit</span>
14     <select dojoType="openils.widget.OrgUnitFilteringSelect" 
15             jsId='contextOrgSelector' 
16             searchAttr='shortname' 
17             labelAttr='shortname'> 
18     </select>
19 </div>
20
21 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
22     <table  jsId="gptGrid" 
23             autoHeight='true'
24             dojoType="openils.widget.AutoGrid" 
25             fieldOrder="['id', 'grp', 'org_unit', 'penalty', 'threshold']"
26             defaultCellWidth='15'
27             query="{id: '*'}" 
28             fmClass='pgpt' 
29             editOnEnter='true'>
30     </table>    
31 </div>
32     
33 <script type='javascript/text'>
34     var org_id = openils.User.user.ws_ou();
35     var list = fieldmapper.aou.findOrgUnit(org_id).orgNodeTrail().map( 
36         function (i) { return i.id() } );
37 </script>
38
39 [% END %]
40