var ouSettingValues = {};
var osEditAutoWidget;
var perm_codes = {};
+var osGroups = {};
function osInit(data) {
authtoken = new openils.CGI().param('ses') || dojo.cookie('ses');
user = new openils.User({authtoken:authtoken});
contextOrg = user.user.ws_ou();
openils.User.authtoken = authtoken;
+
+ var grps = new openils.PermaCrud({authtoken:authtoken}).retrieveAll('csg');
+ dojo.forEach(grps, function(grp) { osGroups[grp.name()] = grp.label(); });
+
var connect = function() {
dojo.connect(contextOrg, 'onChange', osChangeContext);
names.push(key);
} else {
-
var types = new openils.PermaCrud({authtoken:authtoken}).retrieveAll('coust');
dojo.forEach(types,
desc : type.description(),
type : type.datatype(),
fm_class : type.fm_class(),
- update_perm : type.update_perm()
+ update_perm : type.update_perm(),
+ grp : osGroups[type.grp()]
}
}
);
<head>
<title>&staff.server.admin.org_unit_settings.title;</title>
<link type='text/css' rel='stylesheet' href='admin.css'/>
- <script type="text/javascript" src='/IDL2js?aou,aout,pgt,au,coust,aous'></script>
+ <script type="text/javascript" src='/IDL2js?aou,aout,pgt,au,coust,aous,csg'></script>
<script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
<script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/openils_dojo.js"></script>
<script type="text/javascript" src='org_unit_settings.js'></script>
get: osGetEditLink,
formatter : osFormatEditLink
},
+ {name: 'Group', get: osGetGridData, field:'grp'},
{name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
{name: 'Context', get: osGetGridData, field:'context'},
{name: 'Value', get: osGetGridData, field:'value', width:'auto'},
<span id='os-true' class='hidden'>&common.true;</span>
<span id='os-false' class='hidden'>&common.false;</span>
<div dojoType="openils.widget.ProgressDialog" jsId="progressDialog" indeterminate="true"></div>
+ <div class="hidden"></div>
</body>
</html>