Skip to content
Snippets Groups Projects
Select Git revision
  • b77cd8cb349a43d214f56c22b878734da354d490
  • master default
  • next_version
  • laurent-change.log
  • Documentation_homogeneisation
  • HEAD
  • 2021.02.02
  • 2021.02.01
  • 2021.02.00
  • 2021.01.00
  • 2020.02.02
  • 2020.02.01
  • 2020.02.00
  • 2020.01.05
  • 2020.01.04
  • 2020.01.03
  • 2020.01.02
  • 2020.01.01
  • 2020.01.00
  • 2019.03.00
  • 2019.02.07
  • 2019.02.06
  • 2019.02.05
  • 2019.02.04
  • 2019.02.03
  • 2019.02.02
26 results

users_vitis_users.json

Blame
  • users_vitis_users.json 35.37 KiB
    {
        "datasources": {
            "datasource_billinggroup_id": {
                "type": "web_service",
                "dataType": "webService",
                "name": "datasource_billinggroup",
                "description": "",
                "ressource_id": "vitis/billinggroups",
                "webservice": {
                    "name": "vitis"
                },
                "ressource": {
                    "name": "Billinggroups"
                }
            },
            "datasource_timezone_id": {
                "type": "web_service",
                "dataType": "webService",
                "name": "datasource_timezone",
                "description": "",
                "ressource_id": "vitis/timezones",
                "webservice": {
                    "name": "vitis"
                },
                "ressource": {
                    "name": "Timezones"
                }
            },
            "datasource_formatdate_id": {
                "type": "web_service",
                "dataType": "webService",
                "name": "datasource_formatdate",
                "description": "",
                "ressource_id": "vitis/formatdates",
                "webservice": {
                    "name": "vitis"
                },
                "ressource": {
                    "name": "FormatDates"
                }
            }
        },
        "search":{
            "name":"framework_v_user_search_form",
            "title":"",
            "input_size":"xxs",
            "nb_cols":12,
            "rows":[
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"login",
                            "label":"FORM_LOGIN_USERS_USER",
                            "required":false,
                            "nb_cols":3
                        },
                        {
                            "type":"select",
                            "name":"domain_id",
                            "label":"FORM_DOMAIN_USERS_USER",
                            "nb_cols":3,
                            "web_service":{
                                "ressource_id":"vitis/domains",
                                "id_key":"domain_id",
                                "label_key":"domain",
                                "parameters":{
                                        "order_by":"domain"
                                }
                            }
                        },
                        {
                            "type":"text",
                            "name":"name",
                            "label":"FORM_NAME_USERS_USER",
                            "required":false,
                            "nb_cols":3
                        },
                        {
                            "type":"text",
                            "name":"email",
                            "label":"FORM_EMAIL_USERS_USER",
                            "required":false,
                            "nb_cols":3
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"ip_constraint",
                            "label":"FORM_IP_USERS_USER",
                            "required":false,
                            "nb_cols":3
                        },
                        {
                            "type":"text",
                            "name":"company",
                            "label":"FORM_AGENCY_USERS_USER",
                            "required":false,
                            "nb_cols":3
                        },
                        {
                            "type":"text",
                            "name":"department",
                            "label":"FORM_DEPARTMENT_USERS_USER",
                            "required":false,
                            "nb_cols":3
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"button",
                            "class":"btn-ungroup btn-group-xs",
                            "nb_cols":12,
                            "buttons":[
                                {
                                    "type":"button",
                                    "name":"search",
                                    "label":"FORM_SEARCH_BUTTON",
                                    "class":"btn-primary",
                                    "event":"setGridFilter()"
                                },
                                {
                                    "type":"reset",
                                    "name":"reset",
                                    "label":"FORM_RESET_BUTTON",
                                    "class":"btn-primary",
                                    "event":"resetGridFilter()"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "update":{
            "name":"framework_v_user_update_form",
            "title":"FORM_TITLE_USERS_USER",
            "input_size":"xs",
            "beforeEvent":"preventUserPasswordChanged(false)",
            "event":"sendSimpleForm()",
            "afterEvent":"disconnectUserPasswordChanged()",
            "nb_cols":8,
            "rows":[
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"user_id",
                            "label":"FORM_ID_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"login",
                            "label":"FORM_LOGIN_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"last_connection",
                            "label":"FORM_LAST_CONNECTION_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"name",
                            "label":"FORM_NAME_USERS_USER",
                            "required":true,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"email",
                            "name":"email",
                            "label":"FORM_EMAIL_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },{
                    "fields": [
                        {
                            "type": "radio",
                            "name": "acceptnotification",
                            "label": "FORM_ACCEPTNOTIFICATION_USERS_USER",
                            "nb_cols": 6,
                            "options": {
                                "choices": [
                                    {
                                        "label": "Oui",
                                        "value": true
                                    },
                                    {
                                        "label": "Non",
                                        "value": false
                                    }
                                ]
                            },
                            "visible": "oProperties.sms_notifications == true ? true : false",
                            "default_value": false
                        },{
                            "type": "text",
                            "name": "phone",
                            "label": "FORM_PHONE_USERS_USER",
                            "required": false,
                            "visible": "oProperties.sms_notifications == true ? true : false",
                            "nb_cols": 6
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"company",
                            "label":"FORM_AGENCY_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"department",
                            "label":"FORM_DEPARTMENT_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"active_directory_groups",
                            "label":"FORM_ACTIVE_DIRECTORY_USER_GROUPS_USERS_USER",
                            "visible": false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"double_select",
                            "name":"groups",
                            "name_from":"group",
                            "name_to":"groups",
                            "label":"FORM_LOCAL_GROUPS_USERS_USER",
                            "label_from":"FORM_GROUPS_AVAILABLE_USERS_USER",
                            "label_to":"FORM_GROUPS_USER_USERS_USER",
                            "web_service":{
                                "ressource_id":"vitis/groups",
                                "id_key":"group_id",
                                "label_key":"name",
                                "parameters":{
                                        "order_by":"name"
                                }
                            },
                            "size":9,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"all_groups",
                            "label":"FORM_ALL_USER_GROUPS_USERS_USER",
                            "visible": false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"double_select",
                            "name":"privileges",
                            "name_from":"privilege",
                            "name_to":"privileges",
                            "label":"FORM_PRIVILEGES_USERS_USER",
                            "label_from":"FORM_PRIVILEGES_AVAILABLE_USERS_USER",
                            "label_to":"FORM_PRIVILEGES_USER_USERS_USER",
                            "web_service":{
                                "ressource_id":"vitis/privileges",
                                "id_key":"rolname",
                                "label_key":"rolname",
                                "callback": "hideExcludedUserPrivileges('privileges')",
                                "parameters":{
                                        "order_by":"rolname"
                                }
                            },
                            "switch_event":"hideExcludedUserPrivileges('privileges')",
                            "size":9,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields": [
                        {
                            "type": "select",
                            "name": "billinggroup_id",
                            "label": "FORM_BILLINGGROUP_ID_USERS_USER",
                            "required": false,
                            "nb_cols": 4,
                            "datasource": {
                                "datasource_id": "datasource_billinggroup_id",
                                "sort_order": "ASC",
                                "distinct": "true",
                                "label_key": "billinggroup",
                                "order_by": "billinggroup",
                                "id_key": "billinggroup_id",
                                "attributs": "billinggroup_id|billinggroup",
                                "parameters":{
                                    "order_by":"billinggroup"
                                }
                            }
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"ip_constraint",
                            "label":"FORM_IP_USERS_USER",
                            "required":false,
                            "tooltip": {
                                    "title":"",
                                    "content":"FORM_IP_TOOLTIP_USERS_USER",
                                    "container": "body",
                                    "html": true
                            },
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"textarea",
                            "name":"restriction",
                            "label":"FORM_RESTRICTION_USERS_USER",
                            "tooltip": {
                                    "title":"",
                                    "content":"FORM_RESTRICTION_TOOLTIP_USERS_USER",
                                    "container": "body",
                                    "html": true
                            },
                            "size":8,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields": [
                        {
                            "type": "select",
                            "name": "timezone_id",
                            "label": "FORM_TIMEZONE_ID_USERS_USER",
                            "required": true,
                            "nb_cols": 4,
                            "datasource": {
                                "datasource_id": "datasource_timezone_id",
                                "sort_order": "ASC",
                                "distinct": "true",
                                "label_key": "label",
                                "order_by": "name",
                                "id_key": "name",
                                "attributs": "name|label",
                                "parameters":{
                                    "order_by":"name"
                                }
                            }
                        },
                        {
                            "type": "select",
                            "name": "formatdate_id",
                            "label": "FORM_FORMATDATE_ID_USERS_USER",
                            "required": true,
                            "nb_cols": 4,
                            "datasource": {
                                "datasource_id": "datasource_formatdate_id",
                                "sort_order": "ASC",
                                "distinct": "true",
                                "label_key": "label",
                                "order_by": "label",
                                "id_key": "formatdate_id",
                                "attributs": "formatdate_id|label",
                                "parameters":{
                                    "order_by":"label"
                                }
                            }
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"title",
                            "name":"new_password_title",
                            "label":"FORM_NEW_PASSWORD_USERS_USER",
                            "name":"title_user_password",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"password",
                            "name":"password",
                            "label":"FORM_USER_PASSWORD_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"password",
                            "name":"password_confirm",
                            "label":"FORM_USER_CONFIRM_PASSWORD_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"hidden",
                            "name":"login",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"button",
                            "class":"btn-ungroup btn-group-sm",
                            "nb_cols":12,
                            "buttons":[
                                {
                                    "type":"submit",
                                    "name":"form_submit",
                                    "label":"FORM_UPDATE",
                                    "class":"btn-primary"
                                },
                                {
                                    "type":"button",
                                    "name":"return_list",
                                    "label":"FORM_RETURN_LIST",
                                    "class":"btn-primary",
                                    "event":"setMode(\"search\")"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "insert":{
            "name":"framework_v_user_insert_form",
            "title":"FORM_TITLE_USERS_USER",
            "input_size":"xs",
            "beforeEvent":"preventUserPasswordChanged(false)",
            "event":"sendSimpleForm()",
            "afterEvent":"editSectionForm()",
            "nb_cols":8,
            "rows":[
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"login",
                            "label":"FORM_LOGIN_USERS_USER",
                            "required":true,
                            "pattern":"^[^@]+$",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"name",
                            "label":"FORM_NAME_USERS_USER",
                            "required":true,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"email",
                            "name":"email",
                            "label":"FORM_EMAIL_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"company",
                            "label":"FORM_AGENCY_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"department",
                            "label":"FORM_DEPARTMENT_USERS_USER",
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },{
                    "fields": [
                        {
                            "type": "radio",
                            "name": "acceptnotification",
                            "label": "FORM_ACCEPTNOTIFICATION_USERS_USER",
                            "nb_cols": 6,
                            "options": {
                                "choices": [
                                    {
                                        "label": "Oui",
                                        "value": true
                                    },
                                    {
                                        "label": "Non",
                                        "value": false
                                    }
                                ]
                            },
                            "visible": "oProperties.sms_notifications == true ? true : false"
                        },{
                            "type": "text",
                            "name": "phone",
                            "label": "FORM_PHONE_USERS_USER",
                            "required": false,
                            "nb_cols": 6,
                            "visible": "oProperties.sms_notifications == true ? true : false"
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"double_select",
                            "name":"groups",
                            "name_from":"group",
                            "name_to":"groups",
                            "label":"FORM_LOCAL_GROUPS_USERS_USER",
                            "label_from":"FORM_GROUPS_AVAILABLE_USERS_USER",
                            "label_to":"FORM_GROUPS_USER_USERS_USER",
                            "web_service":{
                                "ressource_id":"vitis/groups",
                                "id_key":"group_id",
                                "label_key":"name",
                                "parameters":{
                                        "order_by":"name"
                                }
                            },
                            "size":9,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"double_select",
                            "name":"privileges",
                            "name_from":"privilege",
                            "name_to":"privileges",
                            "label":"FORM_PRIVILEGES_USERS_USER",
                            "label_from":"FORM_PRIVILEGES_AVAILABLE_USERS_USER",
                            "label_to":"FORM_PRIVILEGES_USER_USERS_USER",
                            "web_service":{
                                "ressource_id":"vitis/privileges",
                                "id_key":"rolname",
                                "label_key":"rolname",
                                "parameters":{
                                        "order_by":"rolname"
                                }
                            },
                            "size":9,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields": [
                        {
                            "type": "select",
                            "name": "billinggroup_id",
                            "label": "FORM_BILLINGGROUP_ID_USERS_USER",
                            "required": false,
                            "nb_cols": 4,
                            "datasource": {
                                "datasource_id": "datasource_billinggroup_id",
                                "sort_order": "ASC",
                                "distinct": "true",
                                "label_key": "billinggroup",
                                "order_by": "billinggroup",
                                "id_key": "billinggroup_id",
                                "attributs": "billinggroup_id|billinggroup",
                                "parameters":{
                                    "order_by":"billinggroup"
                                }
                            },
                            "default_value": -1
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"text",
                            "name":"ip_constraint",
                            "label":"FORM_IP_USERS_USER",
                            "tooltip": {
                                    "title":"",
                                    "content":"FORM_IP_TOOLTIP_USERS_USER",
                                    "container": "body",
                                    "html": true
                            },
                            "required":false,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"textarea",
                            "name":"restriction",
                            "label":"FORM_RESTRICTION_USERS_USER",
                            "tooltip": {
                                    "title":"",
                                    "content":"FORM_RESTRICTION_TOOLTIP_USERS_USER",
                                    "container": "body",
                                    "html": true
                            },
                            "size":8,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields": [
                        {
                            "type": "select",
                            "name": "timezone_id",
                            "label": "FORM_TIMEZONE_ID_USERS_USER",
                            "required": true,
                            "nb_cols": 4,
                            "default_value": "Europe/Paris",
                            "datasource": {
                                "datasource_id": "datasource_timezone_id",
                                "sort_order": "ASC",
                                "distinct": "true",
                                "label_key": "label",
                                "order_by": "name",
                                "id_key": "name",
                                "attributs": "name|label",
                                "parameters":{
                                    "order_by":"name"
                                }
                            }
                        },
                        {
                            "type": "select",
                            "name": "formatdate_id",
                            "label": "FORM_FORMATDATE_ID_USERS_USER",
                            "required": true,
                            "nb_cols": 4,
                            "default_value": "YYYY-MM-DDT",
                            "datasource": {
                                "datasource_id": "datasource_formatdate_id",
                                "sort_order": "ASC",
                                "distinct": "true",
                                "label_key": "label",
                                "order_by": "label",
                                "id_key": "formatdate_id",
                                "attributs": "formatdate_id|label",
                                "parameters":{
                                    "order_by":"label"
                                }
                            }
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"password",
                            "name":"password",
                            "label":"FORM_USER_PASSWORD_USERS_USER",
                            "required":true,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"password",
                            "name":"password_confirm",
                            "label":"FORM_USER_CONFIRM_PASSWORD_USERS_USER",
                            "required":true,
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"button",
                            "class":"btn-ungroup btn-group-sm",
                            "nb_cols":12,
                            "buttons":[
                                {
                                    "type":"submit",
                                    "name":"form_submit",
                                    "label":"FORM_CREATE",
                                    "class":"btn-primary"
                                },
                                {
                                    "type":"button",
                                    "name":"return_list",
                                    "label":"FORM_RETURN_LIST",
                                    "class":"btn-primary",
                                    "event":"setMode(\"search\")"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "display":{
            "name":"framework_v_user_display_form",
            "title":"FORM_TITLE_USERS_USER",
            "input_size":"xs",
            "nb_cols":8,
            "rows":[
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"user_id",
                            "label":"FORM_ID_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"login",
                            "label":"FORM_LOGIN_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"last_connection",
                            "label":"FORM_LAST_CONNECTION_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"domain",
                            "label":"FORM_DOMAIN_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"name",
                            "label":"FORM_NAME_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"email",
                            "label":"FORM_EMAIL_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },{
                    "fields": [
                        {
                            "type": "radio",
                            "name": "acceptnotification",
                            "label": "FORM_ACCEPTNOTIFICATION_USERS_USER",
                            "nb_cols": 6,
                            "options": {
                                "choices": [
                                    {
                                        "label": "Oui",
                                        "value": true
                                    },
                                    {
                                        "label": "Non",
                                        "value": false
                                    }
                                ]
                            },
                            "visible": "oProperties.sms_notifications == true ? true : false",
                            "disabled":true
                        },{
                            "type": "label",
                            "name": "phone",
                            "label": "FORM_PHONE_USERS_USER",
                            "visible": "oProperties.sms_notifications == true ? true : false",
                            "nb_cols": 6
                        }
                    ]
                },
                {
                    "fields": [
                        {
                            "type": "label",
                            "name": "company",
                            "label": "FORM_AGENCY_USER_USER",
                            "required": false,
                            "nb_cols": 12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"company",
                            "label":"FORM_AGENCY_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"department",
                            "label":"FORM_DEPARTMENT_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"groups_label",
                            "label":"FORM_GROUPS_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"privileges_label",
                            "label":"FORM_PRIVILEGES_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"billinggroup",
                            "label":"FORM_BILLINGGROUP_ID_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"ip_constraint",
                            "label":"FORM_IP_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"label",
                            "name":"restriction",
                            "label":"FORM_RESTRICTION_USERS_USER",
                            "nb_cols":12
                        }
                    ]
                },
                {
                    "fields": [
                        {
                            "type": "label",
                            "name": "timezone_id",
                            "label": "FORM_TIMEZONE_ID_USER_USER",
                            "nb_cols": 4
                        },
                        {
                            "type": "label",
                            "name": "label",
                            "label": "FORM_FORMATDATE_ID_USER_USER",
                            "nb_cols": 4
                        }
                    ]
                },
                {
                    "fields":[
                        {
                            "type":"button",
                            "class":"btn-ungroup btn-group-sm",
                            "nb_cols":12,
                            "buttons":[
                                {
                                    "type":"button",
                                    "name":"return_list",
                                    "label":"FORM_RETURN_LIST",
                                    "class":"btn-primary",
                                    "event":"setMode(\"search\")"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    }