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

    File:           ins_srtdeel.asp

    Description:    fac_management aanroep van model_ins_srtdeel

    Context:

    Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_ins_srtdeel.inc" -->

<%
var srtdeel_key = getQParamInt("id", -1);
var this_model = new model_ins_srtdeel();

var this_params = {
    "search": {
        "autosearch": true,
        "filters": [
            "objectdiscipline",
            "objectgroup",
            "name"
        ],
        "transit": [
            "objectdiscipline",
            "objectgroup"
        ]
    },
    "list": {
        "columns": [
            "id",
            "name",
            "objectdiscipline",
            "objectgroup"
        ]
    },
    "edit":{
        "modal": true,
        "requires": {
            "js": [
                "../mgt/ins_srtdeel.js"
            ]
        }
    },
    "layout": {
        "block": [
            {
                "blockid": "insIns",
                "label": L("lcl_inssrt_general_info"),
                "ishtmlsafe": true,
                "hidden": false,
                "buttons": [],
                "icon": "fa-tag",
                    "fields": [
                    "objectdiscipline",
                    "objectgroup",
                    "code",
                    "name",
                    "sequence",
                    "unit",
                    "expirationdate",
                    "commoditynumber",
                    "supplier",
                    "mjb_grensscore1"
                ]
            },
            {
                "blockid": "insBind",
                "label": L("lcl_ins_srtdeel_options"),
                "ishtmlsafe": true,
                "hidden": false,
                "buttons": [],
                "icon": "fa-link",
                "fields": [
                    "options",
                    "lendable"
                ]
            },
            {
                "blockid": "insSensor",
                "label": L("lcl_ins_sensorinfo"),
                "ishtmlsafe": true,
                "hidden": false,
                "buttons": [],
                "icon": "fa-sensor",
                "fields": [
                    "sensortype",
                    "sensorthreshold",
                    "stdmelding"
                ]
            }
        ]
    }
};

scaffolding(this_model, this_params);
%>
<% ASPPAGE_END(); %>
