summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a1cd62)
raw | patch | inline | side by side (parent: 1a1cd62)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Sep 2006 04:05:14 +0000 (04:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Sep 2006 04:05:14 +0000 (04:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4715 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationGeneric.inc | patch | blob | history | |
plugins/admin/systems/workstation.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index 0cd3d31912a2d4e32ffbc4c9d7d5c01fa903ac34..8f31136e57af7a2f3df259f720bd41cfb15c223d 100644 (file)
foreach($_POST as $name => $value){
if(preg_match("/^chooseBase/",$name) && $once && $this->acl_is_writeable("base")){
$once = false;
- $this->dialog = new baseSelectDialog($this->config,$this);
+ $this->dialog = new baseSelectDialog($this->config,$this,$this->acl_get_bases());
$this->dialog->setCurrentBase($this->base);
}
}
$smarty->assign("cn", $this->cn);
$smarty->assign("l", $this->l);
- $smarty->assign("bases", $this->config->idepartments);
+ $smarty->assign("bases", $this->acl_get_bases());
$smarty->assign("staticAddress", "");
$tmp = array();
$this->is_modified= TRUE;
}
}
- }else{
-
- print_red(sprintf(_("You are not allowed to move this object to '%s'."),LDAP::fix($_POST['base'])));
- $this->set_acl_base('dummy,'.$this->base);
}
}
$this->netConfigDNS->save_object();
index 317d7e219868e3c17dfc410941cf2a3b1020f364..378c7c1266d66caed7b0781601fcb5e8be03e063 100644 (file)
</tr>
<tr>
<td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
- <td> base . base .
- base . base . base . base .
+ <td>
+{render acl=$baseACL}
+ <select id="base" size="1" name="base" title="{t}Choose subtree to place group in{/t}">
+ {html_options options=$bases selected=$base_select}
+ </select>
+{/render}
+{render acl=$baseACL disable_picture='images/folder_gray.png'}
+ <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+{/render}
</td>
</tr>
</table>