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

    File:           mld_stdmelding_srtinst.asp

    Description:
    Context:

    Notes:          Eerste opzet, under construction
*/
%>

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

<%
if (mode != "save" && mode != "delete" && mode != "api2")
{ %>
  <script>
    var mode = "<%=mode%>";
  </script>
<%
}

    var mld_stdmelding_key = getQParamInt("issuetype", -1)
    var model = new model_mld_stdmelding_srtinst({});

    var scf_params =
        {
            "search": {
                "autosearch": true,
                "filters": [
                    "disciplinetype",
                    "discipline",
                    "issuetype"
                ],
                "requires": {
                    "js": ["../mgt/mld_stdmelding.js"]
                }
            },
            "list": {
                "columns": [
                    "id",
                    //"issuetype",
                    "objectdiscipline",
                    "objectgroup",
                    "objecttype"
                  ],
                "orderby": [
                    "objectdiscipline",
                    "objectgroup",
                    "objecttype"
                 ]
            },
            "edit": {
                "modal": true,
                "requires": {
                    "js": [
                        "../mgt/srtinstallatieselector.js"
                    ]
                }
            },
            "layout": {
                "miscellaneous": {
                    "icon" : "fa-chart-network"
                }
            }
        };

    if (mld_stdmelding_key != -1)
        scf_params.transit = {"issuetype": mld_stdmelding_key};

    scaffolding(model, scf_params);
%>
<% ASPPAGE_END(); %>
