Code

Updated grayout settings
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 09:45:52 +0000 (09:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 09:45:52 +0000 (09:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2456 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/environment.tpl

index cf3ddcbd08a93e545e6152b5985a4075d28a8bbd..39457399aae7982cfc759d911e8853c690e65b16 100644 (file)
@@ -344,10 +344,12 @@ class environment extends plugin
     if($this->acl != "#none#"){
       $smarty->assign("useProfileACL","");
       $smarty->assign("gotoProfileFlag_CACL"," ");
+      $smarty->assign("gotoProfileQuotaACL"," ");
     }else{
       $smarty->assign("gotoProfileFlag_CACL"," disabled ");
       $smarty->assign("useProfileACL","disabled");
       $smarty->assign("gotoProfileServer"," disabled ");
+      $smarty->assign("gotoProfileQuotaACL"," disabled ");
     }
 
     /* HANDLE Profile Settings here 
@@ -637,11 +639,13 @@ class environment extends plugin
     }else{
       $smarty->assign("gotoProfileFlag_CACL"," disabled ");
       $smarty->assign("gotoProfileServerACL"," disabled ");
+      $smarty->assign("gotoProfileQuotaACL"," disabled ");
     }
 
     if(!$this->useProfile){
       $smarty->assign("gotoProfileFlag_CACL"," disabled ");
       $smarty->assign("gotoProfileServerACL"," disabled ");
+      $smarty->assign("gotoProfileQuotaACL"," disabled ");
     }
 
     /* Als smarty vars are set. Get smarty template and generate output */
index 824e8ec9a95390309295386d09328f38a2c05d56..5e9777ffbf1db25e02d62a5b568c63dae9b5aa72 100644 (file)
@@ -12,7 +12,7 @@
                                <tr>
                                        <td style="vertical-align:top">
                                                <input class="center" type="checkbox" value="1" {$useProfileCHK} name="useProfile" {$useProfileACL} id="useProfile"
-                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlag_C');">
+                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlag_C');changeState('gotoProfileQuota');">
                                        </td>
                                        <td style="vertical-align:middle;">
                                                <label for="useProfile">{t}Use profile managment{/t}</label>
@@ -42,8 +42,7 @@
                                                                        <br>
                                                                </td>
                                                                <td>
-                                                                       <input type="text" name="gotoProfileQuota" value="{$gotoProfileQuota}" size="6"
-                                                                               {$gotoProfileQuotaACL} id="gotoProfileQuota">{t}MB{/t}
+                                                                       <input type="text" name="gotoProfileQuota" value="{$gotoProfileQuota}" size="6" {$gotoProfileQuotaACL} id="gotoProfileQuota">{t}MB{/t}
                                                                        <br>
                                                                        <br>
                                                                </td>