<%@language = "javascript" %>

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

<%
var res_deelmodel = new model_res_deel()
res_deelmodel.hook_pre_edit = function (obj, fld)
{
%>
    <script type="text/javascript">
        var s_vis_parking_key = <%=S("vis_parking_key")%>;
    </script>
<%
}

    if (mode == "list")
        res_deelmodel.REST_POST = false;

    scaffolding(res_deelmodel,
        {
            "search": {
                        autosearch: true
                      },
            "edit": {
                      requires: { js: ["../mgt/res_deel.js"]}
                    }
        });
%>
