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/>
5 <!-- grp, penalty, org_unit, threshold -->
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();
15 <table class='dijitTooltipTable'>
17 <td><label for="name">Group: </label></td>
19 <select dojoType="openils.widget.PermGrpFilteringSelect" name="name" jsId='GPT.grpSelector'/>
23 <td><label for="org_unit">Context Org Unit: </label></td>
25 <select dojoType="openils.widget.OrgUnitFilteringSelect" name="org_unit"
26 jsId='gptOwningOrg' searchAttr='shortname' labelAttr='shortname'/>
30 <td><label for="penalty">Penalty: </label></td>
32 <select dojoType="dijit.form.FilteringSelect" jsId='GPT.penaltySelector' name="penalty"/>
36 <td><label for="threshold">Threshold: </label></td>
37 <td><input dojoType="dijit.form.NumberTextBox" name="threshold"/></td>
40 <td colspan='2' align='center'>
41 <button dojoType='dijit.form.Button' type="submit">Create</button>
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'>
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>