<%@language = "javascript" %>

<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_bes_kenmerkbestel.inc" -->
<%
var this_model = new model_bes_kenmerkbestel();

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "orderpropertydesc",
                "orderdiscipline",
                "orderpropertytype"
            ],
            "transit": [
                "orderpropertytype",
                "orderdiscipline"
            ]
        },
        "list": {
            "columns": [
                "orderdiscipline",
                "sequence",
                "orderpropertytype",
                "orderpropertydesc",
                "rolecode",
                //"required",
                "code",
                "id"
            ],
            "orderby": [
                "orderdiscipline",
                "sequence",
                "orderpropertydesc"
            ]
        },
        "edit": {
            "requires": {
                js: [
                    "../mgt/bes_kenmerk.js"
                ]
            }
        },
        "layout": {
            "block": [
                {
                    "blockid": "besKenmerkAlgemeen",
                    "label": L("mgt_kenmerk"),
                    "icon": "fa-table-tree",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "id",
                        "orderpropertytype",
                        "orderpropertydesc",
                        "orderdiscipline",
                        "level",//??
                        "rolecode",
                        "group",
                        "sequence",
                        "propertydefault",
                        "hint",
                        "regexp",
                        "code"
                    ]
                },
                {
                    "blockid": "besKenmerkFormat",
                    "label": L("mgt_kenmerk_displayprops"),
                    "icon": "fa-tag",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "required",
                        "authorization",  // wordt nog niet ondersteund in deze module
                        "showexpression",
                        "readonly",
                        "system"
                    ]
                }
            ]
        },
        "print": {}
    });
%><% ASPPAGE_END(); %>
