Code

Update
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Apr 2010 14:14:19 +0000 (14:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Apr 2010 14:14:19 +0000 (14:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17795 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/references/class_aclResolver.inc
gosa-core/plugins/generic/references/contents.tpl

index f1145560711aef6719ce87aa94ccaf27d5de18fa..65932c3d93b176cbeab1e4e2a18007329498b648 100644 (file)
@@ -122,11 +122,26 @@ class aclResolver
                 $this->renderedList = "";
             }
         }
-        
+       
         if(empty($this->renderedList)){
 
             $this->reload();
 
+            // Autocompleter template 
+            $autocompleter ="
+                <input class='filter_textfield' placeholder='Suchen...' 
+                id='aclTarget' name='aclTarget' type='text' value='' 
+                onChange='document.mainform.submit();'>
+
+                <div id='autocomplete' class='autocomplete'></div>
+                <script type='text/javascript'>
+                new Ajax.Autocompleter(
+                        'aclTarget', 
+                        'autocomplete', 
+                        'autocomplete.php', 
+                        { minChars: 3, frequency: 0.5 });
+            </script>";
+
             // Base template - each entry start with this 
             $tpl = 
                 "\n <tr class='acl-viewer-head %s'>".
@@ -171,8 +186,11 @@ class aclResolver
                 "\n </tr>";
 
 
-            $str = "<br>".sprintf(_("ACL from the viewpoint of user '%s'"), "<b>".$this->validateUid."</b>");
-            $str.= "<table summary='"._("Object permissions")."' class='acl-viewer'>";
+            $user = sprintf(_("ACL from the viewpoint of user '%s'"), "<b>".$this->validateUid."</b>");
+            $str  = "<table summary='"._("Object permissions")."'>";
+            $str .= " <tr><td>".$user."</td><td>".$autocompleter."</td></tr>";
+            $str .= "</table>";
+            $str .= "<table summary='"._("Object permissions")."' class='acl-viewer'>";
             $ldap = $this->config->get_ldap_link();
             $ldap->cd($this->config->current['BASE']);
             $ui = get_userinfo();
index e974fb51b76aa15329f34d4fa8c68ad8f8d6a2c5..6550d8b60ecde2e620add48f9ee8a860dea5ba97 100644 (file)
             {/if}
         </td>
         <td>
-          <input class='filter_textfield' placeholder='{t}Search{/t}...' 
-            id='aclTarget' name='aclTarget' type='text' value='' 
-            onChange='document.mainform.submit();'>
-          <div id='autocomplete' class='autocomplete'></div>
-            <script type='text/javascript'>
-              new Ajax.Autocompleter(
-                    'aclTarget', 
-                    'autocomplete', 
-                    'autocomplete.php', 
-                    { minChars: 3, frequency: 0.5 });
-            </script>
             {$acls}
         </td>
     </tr>