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

    File:           fac_email_setting.asp

    Description:

    Context:

    Notes:          Eerste opzet, zie FSN#36226
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_fac_email_setting.inc" -->
<%

if (S("m2m_enabled") == "0" && !user.has("WEB_FAsCTAB")) 
{
    // If m2m is not yet configured, only users with WEB_FACTAB can access this page
    shared.simpel_page(L("lcl_m2m_not_configured"));
}

var this_model = new model_fac_email_setting();

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "name",
                "stdmelding",
                "action"
            ]
        },
        "list": {
            "columns": [
                "name",
                "seqnr",
                "from",
                "reqtext",
                "reqattachext",
                "action",
                "stdmelding",
                "person",
                "id"
            ]
        },
        "edit": {
            "modal": false
        },
        "layout": {
            "block": [
                {
                    "blockid": "fesAlgemeen",
                    "label":L("fac_email_setting"),
                    "icon": "fa-envelopes-bulk",
                    "fields": [
                        "seqnr",
                        "name", 
                        "frommode",
                        "from",
                        "reqtext",
                        "reqattachext",
                        "action",
                        "stdmelding",
                        "expire",
                        "remark",
                        "person",
                        "loglevel"
                    ]
                },
                {
                    "blockid": "fesBijlage",
                    "label": L("lcl_appendixes"),
                    "icon": "fa-paperclip",
                    "fields": [
                        "attachmentspath",
                        "attachext",
                        "attachmaxkb"
                    ]
                }
            ]
        }
    });
%>
<% ASPPAGE_END(); %>
