From 1be8f936ed3d3156258c3374f6d24923dfe517cc Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Sep 2010 07:04:08 +0000 Subject: [PATCH] Removed old style navigation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19823 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/Config/class_DeviceConfig.inc | 44 ++++--------------- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc index 5105f4f44..f080e1f32 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc @@ -122,41 +122,21 @@ class DeviceConfig extends plugin 'name' => 'temp1', 'file' => 'kekse.tpl') ); + $this->setCurrentItem('temp1'); + $this->addItem('PuppetTemplate','tep1', + array( + 'name' => 'tep1', + 'file' => 'kekse.tpl') + ); $this->setCurrentItem('root'); } - /*! \brief Renders a navigation to allow to switch between the - * active mopdules. - * This method recursivly collects all module entries. - * @return HTML content which represents the navigation + /*! \brief Prepares an item list which can then be used in + * sortableListings to display the items of this configuration. + * @return Array Containing 'data' and 'lData' for a sortableListing. */ - function renderNavigator($array = NULL) - { - $array = ($array == NULL)? $this->currentItemValues['root']: $array; - $str = ""; - return($str); - } - function getItemList($array=NULL,&$res = NULL, $depth = 0) { // Prepare values. @@ -252,12 +232,6 @@ class DeviceConfig extends plugin $this->navigationList->update(); $smarty->assign('navigationList',$this->navigationList->render()); - // Assign the navigation bar. - $smarty->assign('navigator', $this->renderNavigator()); - - // Assign possible sub-container objects. - $smarty->assign('subModule', $this->currentItemDescriptor['container']); - // Assign current item info $smarty->assign('containerName', $this->currentItemDescriptor['name']); $smarty->assign('containerDescription', $this->currentItemDescriptor['description']); -- 2.30.2