<%@language = "javascript" %>

<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../mgt/mgt_tools.inc" -->
<!-- #include file="../api2/model_res_discipline.inc" -->

<%
    var disc_key = getQParamInt("id", getQParamInt("ins_discipline", -1)); // TODO: Dit moet beter
    var model = new model_res_discipline(disc_key);

    var scf_params =
        {
            "search": {
                "autosearch": true,
                "filters": [
                    "ins_discipline_min_level",
                    "costtype",
                    "name"
                    ]
            },
            "list": {
                "columns": [
                    "id",
                    "ins_discipline_min_level",
                    "name",
                    "costtype",
                    "sequence"
                ]
            },
            "wrap": {
                    "frames": [{ url: "fac_functie.asp?mode=list&ins_discipline={0}",
                                 autfunction: "WEB_PRSSYS"
                               }]
                }
        }

    scaffolding(model, scf_params);

%>
