From: hickert Date: Fri, 26 Aug 2005 08:41:25 +0000 (+0000) Subject: Disable fields with javascript, implemented in environmenttab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=66942a082b28072bcfdded20f930e9fbf119523b;p=gosa.git Disable fields with javascript, implemented in environmenttab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1223 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 44f2ae039..74ae70170 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -220,7 +220,14 @@ class environment extends plugin } } - + + if($this->acl != "#none#"){ + $smarty->assign("useProfileACL",""); + }else{ + $smarty->assign("gotoProfileFlag_CACL"," disabled "); + $smarty->assign("gotoProfileServer"," disabled "); + } + /* HANDLE Profile Settings here * Assign available Quota and resolution settings * Get all available profile server @@ -475,7 +482,12 @@ class environment extends plugin $this->dialog->save_object(); return ($this->dialog->execute()); } - + if($this->acl != "#none#"){ + $smarty->assign("useProfileACL",""); + }else{ + $smarty->assign("gotoProfileFlagsACL"," disabled "); + $smarty->assign("gotoProfileServerACL"," disabled "); + } /* Als smarty vars are set. Get smarty template and generate output */ $display.= $smarty->fetch(get_template_path('environment.tpl', TRUE,dirname(__FILE__))); diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index e182f88d1..ce678dc12 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -10,7 +10,8 @@
- + {t}Use profile managment{/t} @@ -26,7 +27,7 @@ {t}Profil server{/t} - {html_options values=$gotoProfileServers output=$gotoProfileServers selected=$gotoProfileServer} @@ -37,7 +38,7 @@ {t}Use local caching{/t} - +