mcramer
2012-08-17 96d5514d9b7b5ffe27b5682ffb5436840652629e
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

2 files modified
9 ■■■■ changed files
interface/lib/classes/tform.inc.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/templates/web_domain_edit.htm 7 ●●●● patch | view | raw | blame | history
interface/lib/classes/tform.inc.php
@@ -1170,7 +1170,7 @@
                     $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'];
interface/web/sites/templates/web_domain_edit.htm
@@ -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>