From 96d5514d9b7b5ffe27b5682ffb5436840652629e Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Fri, 17 Aug 2012 11:47:58 -0400
Subject: [PATCH] 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

---
 interface/web/sites/templates/web_domain_edit.htm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/interface/web/sites/templates/web_domain_edit.htm b/interface/web/sites/templates/web_domain_edit.htm
index 96319c9..b25f047 100644
--- a/interface/web/sites/templates/web_domain_edit.htm
+++ b/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>
\ No newline at end of file

--
Gitblit v1.9.1