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

    File:           faq_kenmerk.asp

    Description:    fac_management aanroep van model_faq_kenmerk

    Context:

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

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 = "FAQ";
  var property_type = "<%=kenmerktype%>";
</script>
<%
}

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