Commit 96d5514d authored by mcramer's avatar mcramer

Fix: PHP Versions are not displayed until php-mode is changed and then changed back again to fcgi

Added: Form fields are disabled if a client is not allowed to edit a domains main settings
parent b349c0bd
......@@ -1170,7 +1170,7 @@ class tform {
$app->uses('tform_tpl_generator');
$app->tform_tpl_generator->buildHTML($this->formDef,$tab['name']);
}
$app->tpl->setVar('readonly_tab', (isset($tab['readonly']) && $tab['readonly'] == true));
$app->tpl->setInclude('content_tpl',$tab["template"]);
$tab["active"] = 1;
$_SESSION["s"]["form"]["tab"] = $tab['name'];
......
......@@ -167,6 +167,7 @@
});
}
adjustForm();
reloadFastcgiPHPVersions();
jQuery('#client_group_id').change(function(){
clientGroupId = $(this).val();
......@@ -229,5 +230,9 @@
$('#fastcgi_php_version').html(options);
});
}
<tmpl_if name="readonly_tab">
jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').attr('disabled', 'disabled');
</tmpl_if>
</script>
</script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment