Commit 6e7ec82f authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:sparkles: feat(core) Added a title listing fields that search affects

Now the search field icon will have a title listing which fields are
 searched for when doing a text search.

issue #4567
Showing with 7 additions and 2 deletions
+7 -2
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{$SCOPE} {$SCOPE}
<hr/> <hr/>
<label for="NAME"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/></label>{$NAME} <label for="NAME" title="{$NAMEDESC}"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/></label>{$NAME}
<div> <div>
{$APPLY} {$APPLY}
......
...@@ -375,6 +375,7 @@ class filter ...@@ -375,6 +375,7 @@ class filter
switch ($element['type']) { switch ($element['type']) {
case "textfield": case "textfield":
$htmlCode = $this->getTextfield($element); $htmlCode = $this->getTextfield($element);
$smarty->assign($tag.'DESC', sprintf(_('Searches in %s'), implode(', ', $element['autocomplete']['attribute'])));
break; break;
case "checkbox": case "checkbox":
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
<backend>LDAP</backend> <backend>LDAP</backend>
<filter>(&amp;(|(objectClass=posixGroup)$ROLE$FILTERTEMPLATE(objectClass=groupOfNames))(|(cn=*$NAME*)(description=*$NAME*)))</filter> <filter>(&amp;(|(objectClass=posixGroup)$ROLE$FILTERTEMPLATE(objectClass=groupOfNames))(|(cn=*$NAME*)(description=*$NAME*)))</filter>
<attribute>cn</attribute> <attribute>cn</attribute>
<attribute>description</attribute>
<frequency>0.5</frequency> <frequency>0.5</frequency>
<characters>3</characters> <characters>3</characters>
</autocomplete> </autocomplete>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{$SCOPE} {$SCOPE}
<hr/> <hr/>
<label for="NAME"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/></label>{$NAME} <label for="NAME" title="{$NAMEDESC}"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/></label>{$NAME}
<div> <div>
{$APPLY} {$APPLY}
......
...@@ -29,7 +29,10 @@ ...@@ -29,7 +29,10 @@
<backend>LDAP</backend> <backend>LDAP</backend>
<filter>(&amp;(objectClass=inetOrgPerson)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*)(uid=*$NAME*)(mail=*$NAME*)))</filter> <filter>(&amp;(objectClass=inetOrgPerson)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*)(uid=*$NAME*)(mail=*$NAME*)))</filter>
<attribute>cn</attribute> <attribute>cn</attribute>
<attribute>sn</attribute>
<attribute>givenName</attribute>
<attribute>uid</attribute> <attribute>uid</attribute>
<attribute>mail</attribute>
<frequency>0.5</frequency> <frequency>0.5</frequency>
<characters>3</characters> <characters>3</characters>
</autocomplete> </autocomplete>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment