Code

Added baseACL && baseSelect Dialog icon
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 May 2006 07:53:23 +0000 (07:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 May 2006 07:53:23 +0000 (07:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3483 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_componentGeneric.inc
plugins/admin/systems/class_phoneGeneric.inc
plugins/admin/systems/class_printGeneric.inc
plugins/admin/systems/class_servGeneric.inc
plugins/admin/systems/component.tpl
plugins/admin/systems/phone.tpl
plugins/admin/systems/printer.tpl
plugins/admin/systems/server.tpl
plugins/admin/systems/terminal.tpl
plugins/admin/systems/workstation.tpl

index ff0aa7d81d8ea2ddaf0f84dec9b2d6ac07354d21..7d1e3fe86572a3603b9c44076cf66c70a631bfc3 100644 (file)
@@ -86,6 +86,7 @@ class componentGeneric extends plugin
       $smarty->assign("$attr", $this->$attr);
     }
     $smarty->assign("base_select", $this->base);
+    $smarty->assign("baseACL", chkacl($this->acl,"base"));
 
     /* Show main page */
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
index 9e602ba28c8f28e32715e8e3fb4dcea599401307..24566d9f2ed296f5eb2ff12a1084b616e493bd68 100644 (file)
@@ -220,6 +220,7 @@ class phoneGeneric extends plugin
       $smarty->assign($attr."ACL", chkacl($this->acl, $attr));
     }
     $smarty->assign("base_select", $this->base);
+    $smarty->assign("baseACL", chkacl($this->acl,"base"));
    
     $smarty->assign("goFonDefaultIPs",array("dynamic"=>_("dynamic"),"network"=>_("Networksettings")));
  
index 678c6d8347b76c3ce167fb35c214b7e6f92675bd..b5fc453416b91f881ee89b2c8960bb481ed5a122 100644 (file)
@@ -349,6 +349,8 @@ class printgeneric extends plugin
       $smarty->assign("$attr", $this->$attr);
     }
 
+    $smarty->assign("baseACL", chkacl($this->acl,"base"));
+
     if(isset($_POST['AddUser'])){
       $this->dialog = new selectUserToPrinterDialog($this->config, get_userinfo(),"AddUser");
     }
index 7679c72e2d9683167f0bae3117d0ae0006d55a45..a28ed75b7143a9f1e2cfab8db4d832f859bdf5e0 100644 (file)
@@ -136,6 +136,8 @@ class servgeneric extends plugin
       $smarty->assign($attr."ACL", chkacl($this->acl, $attr));
       $smarty->assign("$attr", $this->$attr);
     }
+    $smarty->assign("baseACL", chkacl($this->acl, "base"));
+
     $smarty->assign("staticAddress", "");
     $smarty->assign("base_select", $this->base);
 
index 14f80c4a7d874bd37cc43b4b6d315c156d46fb46..271d247907e1d52c1180ac8a11e1d310e1ec2503 100644 (file)
         <tr>
          <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
          <td>
-          <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}">
+          <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
            {html_options options=$bases selected=$base_select}
           </select>
-               <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+       {if $baseACL == ""}
+            <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {else}
+            <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+        {/if}
+               </td>
          </tr>
        </table>
   </td>
index 105e87f0d4f62d751601edf88b11e2f131cc0c65..d8172cf63b1e2a56f0c792ee5f6aacd1905d19f7 100644 (file)
         <tr>
          <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
          <td>
-          <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}">
+          <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
            {html_options options=$bases selected=$base_select}
-          </select>    
-               <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+          </select>
+               {if $baseACL == ""}
+            <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {else}
+            <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+        {/if}
+               </td>
          </tr>
        </table>
   </td>
index 994e87cebf84f879a72f95a3e0fc4b679312a666..a7582b45dd2b29e5aad90ce32e5d4fec2e83c700 100644 (file)
                         <tr>
                          <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
                          <td>
-                          <select size="1" name="base" title="{t}Choose subtree to place terminal in{/t}">
+                          <select size="1" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
                                {html_options options=$bases selected=$base_select}
                           </select>
-                               <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+                               {if $baseACL == ""}
+                                       <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+                               {else}
+                                       <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+                               {/if}
+                               </td>
                          </tr>
                        </table>
                </td>
index c9446e096a7cc22d9b866be6c057123204c05b78..b89c73ad9ca95fc3ba7b31daa7690658e3bb9248 100644 (file)
          <td><br><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
          <td>
           <br>
-          <select size="1" name="base" id="base" title="{t}Choose subtree to place terminal in{/t}">
+          <select size="1" name="base" id="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
            {html_options options=$bases selected=$base_select}
           </select>
-               <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+       {if $baseACL == ""}
+            <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {else}
+            <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+        {/if}
+               </td>
          </tr>
        </table>
   </td>
index fc29ba4076a74f5e093a7f96dfd53f9bfa2ed579..152c9dc19ccc922f74e61ea71d0784ddfda0a288 100644 (file)
     <tr>
      <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
      <td>
-      <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}">
+      <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
        {html_options options=$bases selected=$base_select}
       </select>
-               <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {if $baseACL == ""}
+            <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {else}
+            <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+        {/if}
+               </td>
     </tr>
    </table>
   </td>
index a320b0dd2464944ae44b2e5d36fcb7429e13645b..b48817dd7945960698d5a5aa4b9f5bdbf8125d15 100644 (file)
     <tr>
      <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
      <td>
-      <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}">
+      <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
        {html_options options=$bases selected=$base_select}
       </select>
-               <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+           {if $baseACL == ""}
+            <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {else}
+            <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+        {/if}
     </tr>
    </table>
   </td>