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

    File            fac_reportx.asp
    Description:    Voor *beheer* van rapporten
    Parameters:
    Note:
*/
%>

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

<%
    var reportsx = new model_reportsx();

    var show_buttons = [{ title: L("lcl_usrrap_show"), action: "show_report", icon: "doc_text_image.png" }];
    if (S("fac_usrrap_mode") == 1)
        show_buttons.push({ title: L("lcl_usrrap_clone"), action: "clone_report", icon: "copy.png" });
    else
        reportsx.includes = []; // Geen kolom details laten zien

    scaffolding(reportsx,
        {
            "search": {
                        autosearch: true
                      },
            "show":   {
                        requires: { js: ["./fac_reportx.js"] },
                        buttons: show_buttons
                      },
            "edit":   {
                        requires: { js: ["./fac_reportx.js"] }
                      }
        });
%>
