]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/permission/grp_penalty_threshold.tt2
plugged in penalty name display to grid
[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 <h1>Group Penalty Thresholds</h1><br/>
4
5 <!-- grp, penalty, org_unit, threshold -->
6
7 <div dojoType="dijit.form.DropDownButton">
8     <span>New Group Penalty Threshold</span>
9     <div dojoType="dijit.TooltipDialog" execute="GPT.create(arguments[0]);">
10         <script type='dojo/connect' event='onOpen'>
11             new openils.User().buildPermOrgSelector('CREATE_GROUP_PENALTY_THRESHOLD', gptOwningOrg);
12             GPT.drawCspSelector();
13             GPT.grpSelector.drawGroups();
14         </script>
15         <table class='dijitTooltipTable'>
16             <tr>
17                 <td><label for="name">Group: </label></td>
18                 <td>
19                     <select dojoType="openils.widget.PermGrpFilteringSelect" name="name" jsId='GPT.grpSelector'/>
20                 </td>
21             </tr>
22             <tr>
23                 <td><label for="org_unit">Context Org Unit: </label></td>
24                 <td>
25                     <select dojoType="openils.widget.OrgUnitFilteringSelect" name="org_unit"
26                         jsId='gptOwningOrg' searchAttr='shortname' labelAttr='shortname'/>
27                 </td>
28             </tr>
29             <tr>
30                 <td><label for="penalty">Penalty: </label></td>
31                 <td>
32                     <select dojoType="dijit.form.FilteringSelect" jsId='GPT.penaltySelector' name="penalty"/>
33                 </td>
34             </tr>
35             <tr>
36                 <td><label for="threshold">Threshold: </label></td>
37                 <td><input dojoType="dijit.form.NumberTextBox" name="threshold"/></td>
38             </tr>
39             <tr>
40                 <td colspan='2' align='center'>
41                     <button dojoType='dijit.form.Button' type="submit">Create</button>
42                 </td>
43             </tr>
44         </table>
45     </div>
46 </div> 
47
48 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
49     <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
50         <table jsId="gptGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
51             <thead>
52                 <tr>
53                     <th field="id">ID</th>
54                     <th field="grp" width='auto' get='GPT.getGroupName'>Group</th>
55                     <th field="org_unit" width='auto' get='GPT.getOrgInfo'>Context Org Unit</th>
56                     <th field="penalty" width='auto' get='GPT.getPenaltyInfo'>Penalty</th>
57                     <th field="threshold" width='auto'>threshold</th>
58                 </tr>
59             </thead>
60         </table>    
61     </div>
62 </div>
63
64 [% END %]
65
66