Tabs in Custom Edit Subdomain Template

This commit is contained in:
earnolmartin 2024-01-30 19:31:37 -07:00
parent b20b4996f0
commit 66a9f62eda

View file

@ -2217,7 +2217,9 @@ organizationalUnitName = $unit_name";
array('clearTemplate', 'submit', 'default' => 'Revert to Default'),
array('op', 'hidden', 'default' => __FUNCTION__)
);
$this->output .= '<p>' . $subdomain["subdomain"] . "." . $subdomain["domainname"] . ' Using Default Template: ' . ($usingDefault ? '<span class="success">YES</span>' : '<span class="error">NO</span>') . '</p>' . inputform5($inputparams);
$this->output .= '<p>' . $subdomain["subdomain"] . "." . $subdomain["domainname"] . ' Using Default Template: ' . ($usingDefault ? '<span class="success">YES</span>' : '<span class="error">NO</span>') . '</p><div class="editTemplateArea">' . inputform5($inputparams) . '</div>';
} else {
if ($clearTemplate) {
$success = $success && $this->executeQuery("update " . $this->conf['subdomainstable']['tablename'] . " set $templatefield='' where domainname='" . $subdomain["domainname"] . "' AND subdomain ='" . $subdomain["subdomain"] . "' AND id ='" . $id . "'");