{
    "i18n": true,
    "type": "tabs",
    "tabsStyle": {
        "width": "calc(100% - 100px)"
    },
    "items": {
        "_options": {
            "type": "panel",
            "label": "Options",
            "items": {
                "header_Devices": {
                    "type": "header",
                    "text": "Cluster Nodes",
                    "newLine": true,
                    "size": 2,
                    "style": {
                        "marginTop": 20
                    }
                },
                "requestInterval": {
                    "type": "number",
                    "min": 5,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4,
                    "label": "Request Interval"
                },
                "text_DevicesInfo": {
                    "type": "staticText",
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12,
                    "label": "Add new devices by clicking the plus (+) symbol...",
                    "newLine": true,
                    "style": {
                        "fontSize": 16
                    }
                },
                "tableDevices": {
                    "type": "table",
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12,
                    "items": [
                        {
                            "type": "checkbox",
                            "attr": "enabled",
                            "width": "30px",
                            "title": "Active",
                            "default": true
                        },
                        {
                            "type": "checkbox",
                            "attr": "clusterNode",
                            "width": "50px",
                            "title": "Cluster Node",
                            "tooltip": "tooltip_clusterNode",
                            "default": false
                        },
                        {
                            "type": "text",
                            "title": "IP Address",
                            "attr": "realmIp",
                            "maxLength": 15,
                            "trim": true,
                            "width": "20%",
                            "validator": "data.realmIp != null && data.realmIp != undefined && data.realmIp.length > 5",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "type": "number",
                            "title": "Port",
                            "attr": "realmPort",
                            "min": 1,
                            "max": 65535,
                            "default": 8006,
                            "width": "10%"
                        },
                        {
                            "type": "text",
                            "title": "Realm User",
                            "attr": "realmUser",
                            "maxLength": 50,
                            "trim": false,
                            "width": "25%",
                            "filter": true,
                            "sort": true,
                            "validator": "data.realmUser.length > 1",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "type": "select",
                            "title": "authType",
                            "attr": "authType",
                            "default": "password",
                            "width": "10%",
                            "options": [
                                {
                                    "label": "Password",
                                    "value": "password"
                                },
                                {
                                    "label": "API Token",
                                    "value": "token"
                                }
                            ]
                        },
                        {
                            "type": "password",
                            "title": "RealmPassword",
                            "attr": "realmPassword",
                            "width": "12%",
                            "hidden": "data.authType === 'token'",
                            "validator": "data.authType === 'token' || data.realmPassword.length > 0",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "type": "text",
                            "title": "tokenId",
                            "attr": "realmTokenId",
                            "width": "12%",
                            "hidden": "data.authType !== 'token'",
                            "validator": "data.authType !== 'token' || (data.realmTokenId && data.realmTokenId.length > 0)",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "type": "password",
                            "title": "tokenSecret",
                            "attr": "realmTokenSecret",
                            "width": "13%",
                            "hidden": "data.authType !== 'token'",
                            "validator": "data.authType !== 'token' || (data.realmTokenSecret && data.realmTokenSecret.length > 0)",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "type": "select",
                            "title": "Realm",
                            "attr": "realm",
                            "default": "pam",
                            "width": "10%",
                            "options": [
                                {
                                    "label": "Linux PAM standard authentication",
                                    "value": "pam"
                                },
                                {
                                    "label": "Proxmox VE authentication server",
                                    "value": "pve"
                                }
                            ]
                        }
                    ]
                },
                "_additionalInformationHeader": {
                    "newLine": true,
                    "type": "header",
                    "text": "Additional information",
                    "size": 3,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "requestDiskInformation": {
                    "type": "checkbox",
                    "label": "Request disk information",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "requestCephInformation": {
                    "type": "checkbox",
                    "label": "Request Ceph information",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "requestHAInformation": {
                    "type": "checkbox",
                    "label": "Request HA information",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "newTreeStructure": {
                    "type": "checkbox",
                    "label": "new tree structure",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "requestStorageInformation": {
                    "type": "checkbox",
                    "label": "Storage information",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "requestStorageInformationBackup": {
                    "hidden": "!data.requestStorageInformation",
                    "type": "checkbox",
                    "label": "Backup on Storage information",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                }
            }
        },
        "tab_notifications": {
            "type": "panel",
            "label": "settings",
            "items": {
                "cleanup_header": {
                    "type": "header",
                    "text": "cleanup",
                    "size": 4,
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12
                },
                "cleanup_button": {
                    "type": "sendTo",
                    "command": "cleanup",
                    "jsonData": "{}",
                    "label": "cleanup",
                    "variant": "contained",
                    "color": "primary",
                    "icon": "delete",
                    "newLine": true,
                    "xs": 12,
                    "sm": 6,
                    "md": 4,
                    "lg": 3,
                    "xl": 3,
                    "confirm": {
                        "condition": "true",
                        "text": "cleanup_confirm_text",
                        "title": "cleanup_confirm_title",
                        "ok": "cleanup_confirm_ok",
                        "cancel": "cleanup_confirm_cancel"
                    }
                }
            }
        }
    }
}