This commit is contained in:
MOVe
2022-07-23 01:38:31 +03:00
parent 12fd543ba9
commit 86cfe04c79

View File

@@ -27,7 +27,7 @@ $jname_desc=$this->translate('will be created new jail with helper inside');
$jail_sett=$this->translate('Jail Settings');
$jail_name=$this->translate('Jail name');
$ip_address=$this->translate('IP address');
$html=<<<EOT
$html=<<<EOT
<form class="win" method="post" id="newJailSettings" onsubmit="return false;">
<div class="form-fields">
<h1>{$jail_sett} <small>({$jname_desc})</small></h1>
@@ -41,14 +41,14 @@ $html=<<<EOT
</p>
</div>
</form>
EOT;
EOT;
$res_html=(new Forms('',$hash,$db_path))->generate();
$html.='<h1>Helper: '.$hash.'</h1>'.$res_html;
//$html=json_encode(array('html'=>$html,'func'=>'fillTab'));
// olevole: why return here?
// Undefined property: ClonOS::$html in /usr/local/www/clonos/public/pages/instance_jail/helpers.php on line 49
//$html=json_encode(array('html'=>$html,'func'=>'fillTab'));
// olevole: why return here?
// Undefined property: ClonOS::$html in /usr/local/www/clonos/public/pages/instance_jail/helpers.php on line 49
//return array('html'=>$this->html);
//echo json_encode(array('html'=>$html,'func'=>'fillTab'));
echo json_encode(array('html'=>$html,'func'=>'fillTab'));