//
// Generated by sm1-html-2-json5 version:0.5 Chameleon version:4.5.4 On Python:3.12.3 at 2024-10-18 14:47:03
//
{
    'PackageName': 'Nutups',
    'prefix': 'nut',
    'MenuHeading': 'System',
    'MenuDescription': 'NutUPS configuration',
    'MenuNavigation': '4000 700',
    'firstPanel': 'STATUS',
    'signalEvent': 'smeserver-nutups-update',
    'html': [
        {
            'Name': 'Status',
            'route': 'STATUS',
			'Group1': 'class=inline-buttons',
			'Link1': {
				'Type': 'Link',
				'href': 'nutupsd?trt=CONFIG',
				'title': 'Configure NutUPS'
			},
			'Endgroup1': '',
			SubHeader1: 'Status of the controlled UPS ',
			'Paragraph1': 'Descriptive paragraph',
			'Input1': {
				'Type': 'Textarea',
				'Name': 'UPSStatus',
				'Label': 'Status (from upsd)',
				'Rows':20,
				'Readonly':'true'
			}
        },
        {
            'Name': 'config',
            'route': 'CONFIG',
            'SubHeader2': 'Manage Nutups-config settings:',
            'Input1': {
                'Type': 'Select',
                'Value': 'Disabled',
                'Name': 'status',
                'Label': 'Nut status',
                'Options': [
                    {
                        'Value': 'disabled',
                        'Text': 'Disabled'
                    },
                    {
                        'Value': 'enabled',
                        'Text': 'Enabled'
                    },
                ]
            },
            'Input2': {
                'Type': 'Select',
                'Value': '',
                'Name': 'Nutmode',
                'Label': 'Nut mode',
                'Options': [
                    {
                        'Value': 'standalone',
                        'Text': 'Standalone'
                    },
                    {
                        'Value': 'netserver',
                        'Text': 'Net Server'
                    },
                    {
                        'Value': 'netclient',
                        'Text': 'Net Client '
                    }

                ]
            },
			Group2: 'class=slaveups',
            SubHeader3: 'if Net Server',
			Input3: {
				Name: 'SlaveUPS_Name',
				Type: 'Text',
				Label: 'SlaveUPS UPSNAME@IP',
				Value: '',
			  },
			Input4: {
				Name: 'SlaveUPS_Password',
				Type: 'Password',
				Label: 'SlaveUPS Password',
				Value: '',
			  },
			Endgroup2: '',

			Group3: 'class=masterups',
            SubHeader4: 'if Net Master',
			Input5: {
				Name: 'MasterUPS_Name',
				Type: 'Text',
				Label: 'MasterUPS UPSNAME@IP',
				Value: '',
			  },
			Input6: {
				Name: 'MasterUPS_Password',
				Type: 'Password',
				Label: 'MasterUPS Password',
				Value: '',
			  },
			Endgroup3: '',
			
			Input7: {
				Name: 'UPS_Model',
				Type: 'Select',
				Label: 'UPS Model',
				Value: '',
				Options: [],
			  },
			Input8: {
				Name: 'UPS_Device',
				Type: 'Text',
				Label: 'UPS Device',
				Value: '',
			  },
			
			Group4:'class=generics',
			SubHeader5: 'if genericups',
			Input9: {
				Name: 'UPS_gen_Type',
				Type: 'Text',
				Label: 'UPS Generic Type',
				Value: '',
			  },
			Input10: {
				Name: 'UPS_gen_Mfr',
				Type: 'Text',
				Label: 'UPS Generic Manufacturer',
				Value: '',
			  },
			Input11: {
				Name: 'UPS_gen_Model',
				Type: 'Text',
				Label: 'UPS Generic Model',
				Value: '',
			  },
			'Input12': {
				'Type': 'Submit',
				'Value': 'Save',
				'Name': 'Next',
				'Label': null
				},
			Endgroup4:''
			},
	]
}