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

    File:           cad_label.asp

    Description:    fac_management aanroep van model_cad_label

    Context:

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

this_model.hook_pre_edit = function (obj, fld)
{
    var labeltype = obj.cad_label_type;
    var situatie = (labeltype & 4 ? "scenario" : "actueel");

%>
<script type="text/javascript">
  var module = "CAD";
</script>
<%
}

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "view_name",
                "type_place",
                "type_situation"
            ]
        },
        "list": {
            "columns": [
                "id",
                "name",
                "view_name",
                "type_place",
                "type_situation"
            ]
        }
    });
%>