<%@language = "javascript" %>

<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_alg_srtterreinsector.inc" -->

<%
var srtterrein_key = getQParamInt("id", -1);
var this_model = new model_alg_srtterreinsector();

scaffolding(this_model,
    {
        "search": {
            "autosearch": true
        },
        "list": {
            "columns": [
                "id",
                "name",
                "price1",
                "rentable",
                "code",
                "processingtime"
            ]
        },
        "edit":{
            "requires": {
                "js": [
                    "../mgt/alg_srtalg.js"
                ]
            }
        },
        "layout": {
            "block": [
                {
                    "blockid": "algSrtTer",
                    "label": L("alg_srtterreinsector"),
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "icon": "fa-tag",
                        "fields": [
                        "name",
                        "code",
                        "rentable"
                    ]
                },
                {
                    "blockid": "algSrtTerrTarif",
                    "label": L("lcl_alg_alg_tarieven"),
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "icon": "fa-money-bill",
                    "fields": [
                        "price1",
                        "price2",
                        "price3",
                        "price4",
                        "price5"
                    ]
                },
                {
                    "blockid": "algSrtTerSla",
                    "label": L("lcl_mld_run_time"),
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "icon": "fa-stopwatch",
                    "fields": [
                        "processingtime",
                        "criticaltime",
                        "highprioritytime",
                        "lowprioritytime"
                    ]
                }
            ]
        },
        "wrap": {
            "frames": [
                {
                    url: "mld_stdmsrtterreinsector.asp?mode=list&terrainfunction={0}",
                    title: L("lcl_mld_overrule_stdmelding"),
                    autfunction: "WEB_MLDMGT"
                }
            ]
        }
    });
%>
<% ASPPAGE_END(); %>
