Code

Made query backend selectable.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 14:52:28 +0000 (14:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 14:52:28 +0000 (14:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16495 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/ihtml/themes/modern/userFilterEditor.tpl
gosa-core/include/class_userFilterEditor.inc

index 99dd4f20309a0259724b9f26d1e3c72ef6ffa4fc..4f0322d86d4a61690090bc8ae7d5a5895ac461f1 100644 (file)
@@ -27,7 +27,7 @@
             <label for='parent'>{t}Parent filter{/t}</label>
           </td>
           <td>
-            <select name='parent'>
+            <select name='parent' size='1'>
               {html_options values=$fixedFilters output=$fixedFilters selected=$parent}
             </select>
           </td>   
@@ -51,7 +51,7 @@
         {html_options options=$selectedCategories}
       </select>
       <br>
-      <select id='availableCategory' name='availableCategory'
+      <select id='availableCategory' name='availableCategory' size='1'
         onChange="$('manualCategory').value=$('availableCategory').options[$('availableCategory').selectedIndex].value"> 
         <option value=''>&nbsp;</option>
         {html_options values=$availableCategories output=$availableCategories}
 <hr>
 
 {foreach from=$queries item=item key=key}
-  <b>{t}Query{/t} #{$key}</b><input type='text' name='backend_{$key}' value='{$item.backend}'>
+  <b>{t}Query{/t} #{$key}</b>
+  <select name='backend_{$key}' size='1'>
+    {html_options output=$backends values=$backends selected=$item.backend}
+  </select>
   <button type='submit' name='removeQuery_{$key}'>{msgPool type='delButton'}</button> 
   <textarea name='filter_{$key}' id='filter_{$key}' cols="0" 
       style='width:100%; height: 120px;'>{$item.filter}</textarea>
index f51e3499b3923c758cd710abfbed760e11e540aa..e2ebf9d2a7517239d02b12634d4fe301eff0c0e7 100644 (file)
@@ -21,7 +21,8 @@ class userFilterEditor extends plugin
   // The list of all categories mangaged by the current filter object.
   // Used in the grop-down box.
   public $orig_name = "";
-  
+
+  public $backends = array('LDAP', 'SYSTEMS', 'FAI', 'GroupLDAP','ACL');  
 
 
   /*! \brief    Instantiate the filter editing dialog. 
@@ -131,6 +132,7 @@ class userFilterEditor extends plugin
 
     $smarty->assign("fixedFilters", array_keys($filter->searches));
     $smarty->assign('parent', $this->parent);
+    $smarty->assign('backends', $this->backends);
     $smarty->assign('name', htmlentities($this->name,ENT_COMPAT,'UTF-8'));
     $smarty->assign('queries', $queries);
     $smarty->assign('share', $this->share);