75 lines
2.1 KiB
Plaintext
75 lines
2.1 KiB
Plaintext
<%@language = "javascript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: ins_tab_discipline.inc
|
|
|
|
Description: Dit is het model om de *rechten* van een discipline voor diverse
|
|
functies te beheren.
|
|
Veronderstelt vooralsnog dat groep en functie al bekend zijn
|
|
Context:
|
|
|
|
Notes:
|
|
*/
|
|
%>
|
|
|
|
<!-- #include file="../scf/scaffolding.inc" -->
|
|
<!-- #include file="../mgt/mgt_tools.inc" -->
|
|
<!-- #include file="../api2/model_ins_tab_discipline.inc" -->
|
|
|
|
<%
|
|
var groep_key = getQParamInt("fac_groep", -1);
|
|
var functie_key = getQParamInt("fac_functie", -1);
|
|
var model = new model_ins_tab_discipline(null, { groep_key: groep_key, functie_key: functie_key });
|
|
|
|
function fnrowData(oRs)
|
|
{
|
|
var data = {functie_key: functie_key, groep_key: groep_key};
|
|
return JSON.stringify(data);
|
|
}
|
|
|
|
var scf_params =
|
|
{
|
|
"search": {
|
|
"autosearch": true,
|
|
"filters": [
|
|
"name"
|
|
]
|
|
},
|
|
"list": {
|
|
"columns": [
|
|
"id",
|
|
"name"
|
|
],
|
|
"xxxorderby": [
|
|
"module",
|
|
"name",
|
|
"description"
|
|
],
|
|
"default_action": "edit_rechten",
|
|
"fnRowData": fnrowData,
|
|
"requires": {
|
|
js: ["./ins_tab_discipline.js"]
|
|
}
|
|
},
|
|
"transit": {
|
|
"name": "fac_groep",
|
|
"val": groep_key
|
|
}
|
|
};
|
|
|
|
if (groep_key > 0 && functie_key > 0)
|
|
{
|
|
scf_params.list.columns =
|
|
scf_params.list.columns.concat([
|
|
//"authorization.ins_discipline",
|
|
"authorization.prs_level_read",
|
|
"authorization.prs_level_write",
|
|
"authorization.alg_level_read",
|
|
"authorization.alg_level_write"
|
|
]);
|
|
}
|
|
scaffolding(model, scf_params);
|
|
%>
|