Code

disable formatbox, if record is unchecked
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 07:27:32 +0000 (07:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 07:27:32 +0000 (07:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1162 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/conference/class_phoneConferenceGeneric.inc
plugins/gofon/conference/generic.tpl

index 25e158d5b4d9ed7be926fbe6187fee23f2f74b3a..5fd4c0f5da28f77951d28d24a1c6d84615786a0e 100644 (file)
@@ -126,6 +126,9 @@ class conference extends plugin
     $smarty->assign("goFonPINACL"," disabled ");
     $smarty->assign("goFonPIN","");
   }
+  if($this->goFonConferenceOption_r != "r"){
+    $smarty->assign("goFonConferenceOptionFormatACL"," disabled ");
+  }
 
        return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
   }
index 47d044978cdce84c66246918b934a5478e992af5..f467ed2b3d12c64685b0bfde0fe06b59a64ec5f4 100644 (file)
        </tr>
     <tr>
        <td colspan=2>
-               <input type="checkbox" name="goFonConferenceOption_r" value="r" {$goFonConferenceOption_rCHK} {$goFonConferenceOption_rACL}> 
+               <input type="checkbox" onclick="changeState('goFonConferenceOptionFormat');" name="goFonConferenceOption_r" value="r" {$goFonConferenceOption_rCHK} {$goFonConferenceOption_rACL}> 
        {t}Record Conference{/t}
        </td>
        </tr>
        &nbsp;  {t}Format{/t}
        </td>
        <td>
-       <select id="goFonConferenceOptionFormat" size="1" name="goFonConferenceOptionFormat" title="{t}Choose subtree to place department in{/t}"> 
+       <select id="goFonConferenceOptionFormat" size="1" name="goFonConferenceOptionFormat" {$goFonConferenceOptionFormatACL} title="{t}Choose subtree to place department in{/t}"> 
        {html_options options=$goFonConferenceOptionFormats selected=$goFonConferenceOptionFormat}
        </select>
        </td>