Update nutups and js file into generated mix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 12:01:10
|
||||
# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33
|
||||
#
|
||||
#
|
||||
# Routines to be edited by the developer to provide content and validation for parameters
|
||||
@@ -50,6 +50,8 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
||||
{$ret .= 'Validation for Nutmode failed';}
|
||||
if (! TRUE) #validate $c->param('SlaveUPS_Name')
|
||||
{$ret .= 'Validation for SlaveUPS_Name failed';}
|
||||
if (! TRUE) #validate $c->param('MasterUPS_Name')
|
||||
{$ret .= 'Validation for MasterUPS_Name failed';}
|
||||
if (! TRUE) #validate $c->param('UPS_Model')
|
||||
{$ret .= 'Validation for UPS_Model failed';}
|
||||
if (! TRUE) #validate $c->param('UPS_Device')
|
||||
@@ -88,6 +90,7 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
||||
'status'=>'status contents',
|
||||
'Nutmode'=>'Nutmode contents',
|
||||
'SlaveUPS_Name'=>'SlaveUPS_Name contents',
|
||||
'MasterUPS_Name'=>'MasterUPS_Name contents',
|
||||
'UPS_Model'=>'UPS_Model contents',
|
||||
'UPS_Device'=>'UPS_Device contents',
|
||||
'UPS_gen_Type'=>'UPS_gen_Type contents',
|
||||
@@ -153,6 +156,8 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
||||
{$ret .= 'Perform/save failed for Nutmode';}
|
||||
if (! TRUE) #copy or perform with value: SlaveUPS_Name e.g. $db->set_prop($dbkey,'SlaveUPS_Name',$c->param('SlaveUPS_Name'),type=>'service'))
|
||||
{$ret .= 'Perform/save failed for SlaveUPS_Name';}
|
||||
if (! TRUE) #copy or perform with value: MasterUPS_Name e.g. $db->set_prop($dbkey,'MasterUPS_Name',$c->param('MasterUPS_Name'),type=>'service'))
|
||||
{$ret .= 'Perform/save failed for MasterUPS_Name';}
|
||||
if (! TRUE) #copy or perform with value: UPS_Model e.g. $db->set_prop($dbkey,'UPS_Model',$c->param('UPS_Model'),type=>'service'))
|
||||
{$ret .= 'Perform/save failed for UPS_Model';}
|
||||
if (! TRUE) #copy or perform with value: UPS_Device e.g. $db->set_prop($dbkey,'UPS_Device',$c->param('UPS_Device'),type=>'service'))
|
||||
@@ -174,4 +179,9 @@ sub create_link{
|
||||
my $link = "$route?trt=$panel&Selected=$index";
|
||||
return $link;
|
||||
}
|
||||
|
||||
sub get_model_options{
|
||||
return [];
|
||||
}
|
||||
|
||||
1;
|
Reference in New Issue
Block a user