summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a196e57)
raw | patch | inline | side by side (parent: a196e57)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Mar 2010 14:52:28 +0000 (14:52 +0000) | ||
committer | hickert <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 | patch | blob | history | |
gosa-core/include/class_userFilterEditor.inc | patch | blob | history |
diff --git a/gosa-core/ihtml/themes/modern/userFilterEditor.tpl b/gosa-core/ihtml/themes/modern/userFilterEditor.tpl
index 99dd4f20309a0259724b9f26d1e3c72ef6ffa4fc..4f0322d86d4a61690090bc8ae7d5a5895ac461f1 100644 (file)
<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>
{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=''> </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>
diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc
index f51e3499b3923c758cd710abfbed760e11e540aa..e2ebf9d2a7517239d02b12634d4fe301eff0c0e7 100644 (file)
// 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.
$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);