summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90747e5)
raw | patch | inline | side by side (parent: 90747e5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Oct 2010 09:25:27 +0000 (09:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Oct 2010 09:25:27 +0000 (09:25 +0000) |
-Made edit and remove actions available.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20137 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20137 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml b/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml
index 99bc644f86ee34df72a492b9465ce50e357cbc38..dce3d5281c85a9fb0d212e505183a132513ec251 100644 (file)
<actiontriggers snapshot="false" copypaste="false">
<action>
- <name>editEntry</name>
+ <name>edit</name>
<type>entry</type>
<image>images/lists/edit.png</image>
<label>Edit item</label>
diff --git a/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc b/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc
index 97504a2e0045b0699c5ba0fcac414638615eb7bc..b495878077670b6fc01c6d7e571aad06426fcab4 100644 (file)
private $objectTypeStr = "";
- function __construct($config, $ui)
+ function __construct($config, $ui, $parent)
{
// Set storage points - We do not have any - We just create a fake list which lists all items
$this->storagePoints = array("");
$this->containerSelector = new ItemSelector(array(),'/root','/root');
$this->itemSelector = new ItemSelector(array(),'','');
+
+ $this->parent = &$parent;
}
function save_object()
function rebuildListing()
{
+
+ // Handle actions (POSTs and GETs)
+ $str = $this->handleActions($this->detectPostActions());
+ if($str) return($this->getHeader().$str);
+
+
// Build filter
if (session::global_is_set(get_class($this)."_filter")){
$filter= session::global_get(get_class($this)."_filter");
$headpage->setFilter($filter);
parent::__construct($this->config, $this->ui, "services", $headpage);
+
+ // Register default actions
+ $this->registerAction("new", "newEntry");
+ $this->registerAction("edit", "editEntry");
+ $this->registerAction("apply", "applyChanges");
+ $this->registerAction("save", "saveChanges");
+ $this->registerAction("cancel", "cancelEdit");
+ $this->registerAction("cancelDelete", "cancelEdit");
+ $this->registerAction("remove", "removeEntryRequested");
+ $this->registerAction("removeConfirmed", "removeEntryConfirmed");
+
+ $this->registerAction("config-filter","editFilter");
+ $this->registerAction("saveFilter","saveFilter");
+ $this->registerAction("cancelFilter","cancelFilter");
+
+ }
+
+ function removeEntryRequested($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
+ {
+ $this->parent->removeEntry($target);
+ }
+
+ function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
+ {
+ $this->parent->editEntry($target);
}
}
diff --git a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc
index 23b877d27c19ba446d20fee2ece7a2a817bacf19..f038f01b399189f217070530afeff19b0ce6d364 100644 (file)
function __construct($config, $dn)
{
$this->config = &$config;
- $this->listing = new ConfigManagementListing($this->config, get_userinfo());
+ $this->listing = new ConfigManagementListing($this->config, get_userinfo(), $this);
// Request an update of the data model
$this->updateDataModel();
$types['Component']['objectClass'] = 'Component';
$types['Component']['label'] = _('Component');
- $types['Component']['image'] = 'images/lists/edit.png';
+ $types['Component']['image'] = 'plugins/users/images/select_user.png';
$types['Component']['category'] = 'Device';
$types['Component']['class'] = 'Device';
return($types);
}
+
+ function editEntry($id)
+ {
+ print_a($id);
+ }
+
+
+ function removeEntry($id)
+ {
+ print_a($id);
+ }
+
+
public static function plInfo()
{
return (array(