summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7ade1d)
raw | patch | inline | side by side (parent: a7ade1d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Sep 2009 12:36:32 +0000 (12:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Sep 2009 12:36:32 +0000 (12:36 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14310 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc | patch | blob | history | |
gosa-plugins/opsi/admin/opsiLicenses/remove.tpl | patch | blob | history |
diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc
index 631b132e10e1c7d564b439e6cdcf7359e97ac6de..564219a7cedfd70f426ae981358a90f792356668 100644 (file)
}
if(count($this->dns)){
+
+ $dns_names = array();
+ foreach($this->dns as $dn){
+ $dns_names[] = LDAP::fix($dn);
+ }
+
$smarty->assign("info", msgPool::deleteInfo($dns_names,_("License")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
$acl = $this->ui->get_permissions($dn, "opsi/licenseGeneric");
if (preg_match('/d/', $acl)){
- /* Delete request is permitted, perform LDAP action */
- $this->dialog= new licensetabs($this->config,$this->config->data['TABS']['LICENSETABS'], $dn);
- $this->dialog->delete();
- $this->dialog= NULL;
+ echo "<br><b>Delete ".$dn."</b>";
+
+# /* Delete request is permitted, perform LDAP action */
+# $this->dialog= new licensetabs($this->config,$this->config->data['TABS']['LICENSETABS'], $dn);
+# $this->dialog->delete();
+# $this->dialog= NULL;
} else {
/* Normally this shouldn't be reached, send some extra
***************/
if($s_action == "new" && !$this->dialog instanceOf tabs){
- $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'], "new");
- $this->dialog->set_acl_base($this->config->current['BASE']);
+
+ echo "<br><b>Delete ".$dn."</b>";
+
+ # $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'], "new");
+ # $this->dialog->set_acl_base($this->config->current['BASE']);
}
/***************
$entry = $this->licenses[$s_entry];
$this->dn = $entry['dn'];
- /* Open the dialog */
- $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'],
- $entry['dn'], "opsi");
- $this->dialog->set_acl_base($this->config->current['BASE']);
- set_object_info($this->dn);
+ echo "<br><b>Edit ".$dn."</b>";
+
+# /* Open the dialog */
+# $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'],
+# $entry['dn'], "opsi");
+# $this->dialog->set_acl_base($this->config->current['BASE']);
+# set_object_info($this->dn);
}
}
diff --git a/gosa-plugins/opsi/admin/opsiLicenses/remove.tpl b/gosa-plugins/opsi/admin/opsiLicenses/remove.tpl
index 76cf2886048496cded2d85e038a4f30b5b3f5e24..8ac3a6b271d5e7cb591a0c7b5095560d723aaeb1 100644 (file)
</p>
<p class="plugbottom">
- <input type=submit name="delete_multiple_roles_confirm" value="{msgPool type=delButton}">
+ <input type=submit name="delete_multiple_licenses_confirm" value="{msgPool type=delButton}">
- <input type=submit name="delete_multiple_roles_cancel" value="{msgPool type=cancelButton}">
+ <input type=submit name="delete_multiple_licenses_cancel" value="{msgPool type=cancelButton}">
</p>