Skip to content

Commit 96d5514

Browse files
author
mcramer
committed
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
1 parent b349c0b commit 96d5514

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ function showForm() {
11701170
$app->uses('tform_tpl_generator');
11711171
$app->tform_tpl_generator->buildHTML($this->formDef,$tab['name']);
11721172
}
1173-
1173+
$app->tpl->setVar('readonly_tab', (isset($tab['readonly']) && $tab['readonly'] == true));
11741174
$app->tpl->setInclude('content_tpl',$tab["template"]);
11751175
$tab["active"] = 1;
11761176
$_SESSION["s"]["form"]["tab"] = $tab['name'];

interface/web/sites/templates/web_domain_edit.htm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
167167
});
168168
}
169169
adjustForm();
170+
reloadFastcgiPHPVersions();
170171

171172
jQuery('#client_group_id').change(function(){
172173
clientGroupId = $(this).val();
@@ -229,5 +230,9 @@ <h2><tmpl_var name="list_head_txt"></h2>
229230
$('#fastcgi_php_version').html(options);
230231
});
231232
}
233+
234+
<tmpl_if name="readonly_tab">
235+
jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').attr('disabled', 'disabled');
236+
</tmpl_if>
232237

233-
</script>
238+
</script>

0 commit comments

Comments
 (0)