<% /*
    $Revision$
    $Id$

    File:           model_fac_widget.inc

    Description:

    Context:

    Notes:
*/
%>
<%
function model_fac_widget()
{
    this.table = "fac_widget";
    this.primary = "fac_widget_key";
    this.records_name = "fac_widgets";
    this.record_name = "fac_widget";
    this.autfunction = "WEB_PRSSYS";
    this.record_title = L("fac_widget");
    this.records_title = L("fac_widget_m") ;


    this.fields = {
        "id": {
            "dbs": "fac_widget_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "fac_s_fac_widget_key",
            "defaultvalue": null
        },
        "group": {
            "dbs": "fac_widget_groep",
            "label": L("fac_widget_groep"),
            "typ": "varchar",
            "required": true,
            "filter": "like"
        },
        "link_url": {
            "dbs": "fac_widget_url",
            "label": L("fac_widget_url"),
            "typ": "varchar",
            "required": true
        },
        "widget_title": {
            "dbs": "fac_widget_title",
            "label": L("fac_widget_title"),
            "translate": true,
            "typ": "varchar",
            "filter": "like",
            "friendlyname": true
        },
        "sequence": {
            "dbs": "fac_widget_volgnr",
            "label": L("fac_widget_volgnr"),
            "typ": "number"
        },
        "refreshtime": {
            "dbs": "fac_widget_refreshtime",
            "label": L("fac_widget_refreshtime"),
            "typ": "number"
        },
        "widget_id": {
            "dbs": "fac_widget_id",
            "label": L("fac_widget_id"),
            "typ": "varchar"
        },
        "widget_heigth": {
            "dbs": "fac_widget_height",
            "label": L("fac_widget_height"),
            "typ": "number"
        },
        "widget_width": {
            "dbs": "fac_widget_width",
            "label": L("fac_widget_width"),
            "typ": "number"
        },
        "created": {
            "dbs": "fac_widget_aanmaak",
            "label": L("fac_widget_aanmaak"),
            "typ": "date",
            "hidden_fld": true
        },
        "authorization": {
            "dbs": "fac_functie_key",
            "label": L("lcl_fac_menuautorisatie"),
            "typ": "key",
            "foreign": "fac_functie",
            "filter": "exact",
            "defaultvalue": null
        }
    }


    this.REST_GET    = generic_REST_GET(this);
    this.REST_POST   = generic_REST_POST(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_DELETE = generic_REST_DELETE(this, {});
}
%>