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

    File:           aut_client_perslid.asp

    Description:

    Context:

    Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_aut_client_perslid.inc" -->
<%
var params = {};
if (getQParamInt("person", -1) == user_key)
    params.self = true;

var this_model = new model_aut_client_perslid(params);

var scf_params = {
    "search": {
        "autosearch": true,
        "filters": [
            "name",
            "action"
        ]
    },
    "list": {
        "columns": [
            "autclient",
            "registrationdate",
            "app_version",
            // hier komt app_build indien PRSSYS
            // "scope",
            // "refreshdate",
            "login",
            "device_name"
        ],
        //"actions": [{ action: "scf_testnotification", caption: L("lcl_test_app_notification") }],
        "buttons": [
            { icon: "fa-fclt-edit", title: L("lcl_test_app_notification"), action: "scf_testnotification()" }
        ],

        "requires": {
            js: ["./aut_client_perslid.js"]
        }
    },
    "edit": {
        "modal": true
    },
    "layout": {
        "miscellaneous": {
            "icon": "fa-user-shield"
        }
    }
};

if (user.has("WEB_PRSSYS")) // Want dit is een technische waarde
    scf_params.list.columns.splice(3, 0, "app_build");

scaffolding(this_model, scf_params);

%>
<% ASPPAGE_END(); %>
