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

    File:           mld_typeopdr.asp

    Description:    fac_management aanroep van model_mld_typeopdr

    Context:

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

scaffolding(this_model,
    {
        "search": {
            "autosearch": true
        },
        "list": {
            "columns": [
                "id",
                "name",
                "close",
                "closecall",
                "cancelcall",
                "hours",
                "materiaal",
                "total",
                "invoicematching"
            ]
        },
        "show": {
            "requires": {
                "js": ["./mgt_tools.js"]
            },
            "buttons": [
                {
                    "title": L("lcl_lcl_terminologie"),
                    "action": "edit_terminologie",
                    "icon": "fa-language"
                }
            ]
        },
        "layout": {
            "block": [
            {
                "blockid": "mldTypOpdr1",
                "label": L("mld_typeopdr"),
                "icon": "fa-tag",
                "ishtmlsafe": true,
                "hidden": false,
                "buttons": [],
                "fields": [
                    //"id",
                    "name",
                    "code",
                    "slamode",
                    "visiblefe",
                    "symbolname",
                    "costs",
                    "mandatorycosts",
                    "contract",
                    "visitors",
                    "hours",
                    "materiaal",
                    "total"
                ]
            },
            {
                "blockid": "mldTypOpdr2",
                "label": L("lcl_status_details"),
                "icon": "fa-tachometer-alt-slow",
                "fields": [
                    "approval",
                    "approvalfiat",
                    "accept",
                    "sequential",
                    "close",
                    "closemargin",
                    "progress",
                    "confirmforsend",
                    "closecall",
                    "cancelcall",
                    "external",
                    "invoicematching"
                ]
            },
            {
                "blockid": "mldTypOpdr3",
                "label": L("mld_typeopdr_isofferte"),
                "icon": "fa-question-circle",
                "fields": [
                    "offerrequest",
                    "offerlimit",
                    "nextissueordertype"
                ]
            }
          ]

        }

    });
%><% ASPPAGE_END(); %>
