<%@language = "javascript" %>

<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../mgt/mgt_tools.inc" -->
<!-- #include file="../api2/model_ins_srtkenmerk.inc" -->

<%
var  this_model = new model_ins_srtkenmerk();

this_model.hook_pre_edit = function (obj, fld)
{
    var kenmerktype = (obj.property_type ? obj.property_type.id : "");
    fld.property_type.LOV = buildKenmerktypeLOV(kenmerktype);
%>
<script type="text/javascript">
  var module = "INS";
  var property_type = "<%=kenmerktype%>";
</script>
<%
}

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "property_type",
                "name"
            ]
        },
        "list": {
            "columns": [
                "id",
                "name",
                "property_type"
            ]
        },
        "edit": {
            "requires": {
                js: ["./mgt_srtkenmerk.js"]
            }
        },
        "print": {}
    });
%>
