<%@language = "javascript" %>
<% /*
    $Revision$
    $Id$

    File:           ins_srtkenmerk.asp

    Description:    fac_management aanroep van model_ins_srtkenmerk

    Context:

    Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../mgt/mgt_srtkenmerk.inc" -->
<!-- #include file="../api2/model_ins_srtkenmerk.inc" -->
<%
var this_model = new model_ins_srtkenmerk();

var id_arr = getQParamIntArray("sel_id", []);
var hasMulti = canAttributetypeToggle("INS", id_arr);
this_model.fields.attributetype.multiedit = (hasMulti.multi);
if (hasMulti.canToggle)
{
    this_model.fields.attributetype.LOV = buildKenmerktypeLOV(hasMulti.canToggle);
}

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "attributetype",
                "name"
            ],
            "transit": [
                "attributetype"
            ]
        },
        "list": {
            "columns": [
                "id",
                "name",
                "attributetype",
                "code"
            ]
        },
        "edit": {
            "requires": {
                js: ["./mgt_srtkenmerk.js"]
            }
        },
        "print": {},
        "layout": {
            "miscellaneous": {
                "label": L("ins_srtkenmerk"),
                "icon" : "fa-asterisk"
            }
        }
    });
%>
<% ASPPAGE_END(); %>
