summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f5932f)
raw | patch | inline | side by side (parent: 7f5932f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Apr 2010 14:14:19 +0000 (14:14 +0000) | ||
committer | hickert <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 | patch | blob | history | |
gosa-core/plugins/generic/references/contents.tpl | patch | blob | history |
diff --git a/gosa-core/plugins/generic/references/class_aclResolver.inc b/gosa-core/plugins/generic/references/class_aclResolver.inc
index f1145560711aef6719ce87aa94ccaf27d5de18fa..65932c3d93b176cbeab1e4e2a18007329498b648 100644 (file)
$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'>".
"\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();
diff --git a/gosa-core/plugins/generic/references/contents.tpl b/gosa-core/plugins/generic/references/contents.tpl
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>