From b0264c2540276370fb30fa2ce1d1ce19b1ae855b Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 20 Sep 2010 09:49:27 +0000 Subject: [PATCH] Updated install recipe class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19768 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/Device/InstallRecipe.tpl | 8 ------ .../goto/Device/class_InstallRecipe.inc | 26 +------------------ 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl b/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl index efee6ed4b..9bc45d78f 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl +++ b/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl @@ -15,14 +15,6 @@ {if !$kickstartRootEnabled} disabled {/if} value="{$kickstartRootPasswordHash}"> - - - - {$memberList} - - - - diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc index b0c3fb068..15a95f1eb 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc @@ -2,7 +2,6 @@ class InstallRecipe extends plugin { - public $member = array(); public $kickstartTemplateDN = ""; public $kickstartKeyboardlayout = ""; public $kickstartSystemLocale = ""; @@ -16,7 +15,7 @@ class InstallRecipe extends plugin public $kickstartPartitionTable = ""; public $objectclasses = array('installRecipe'); - public $attributes = array("member","kickstartTemplateDN","kickstartKeyboardlayout","kickstartSystemLocale", + public $attributes = array("kickstartTemplateDN","kickstartKeyboardlayout","kickstartSystemLocale", "kickstartTimezone","kickstartTimeUTC","kickstartNTPServer","kickstartMirrorDN", "kickstartRootEnabled","kickstartRootPasswordHash","kickstartKernelPackage","kickstartPartitionTable"); @@ -45,15 +44,6 @@ class InstallRecipe extends plugin } uksort($list, 'strnatcasecmp'); $this->timezones = $list; - - // Prepare member list - $this->memberList= new sortableListing($this->member); - $this->memberList->setDeleteable(true); - $this->memberList->setColspecs(array('*')); - $this->memberList->setWidth("100%"); - $this->memberList->setHeight("70px"); - - } function execute() @@ -64,12 +54,6 @@ class InstallRecipe extends plugin foreach($this->attributes as $attr){ $smarty->assign($attr, $this->$attr); } - - // Fill and render the member list widget - $this->memberList->setListData($this->member); - $this->memberList->update(); - $this->memberList->setAcl($this->getacl('member')); - $smarty->assign('memberList', $this->memberList->render()); return($smarty->fetch(get_template_path('goto/Device/InstallRecipe.tpl', TRUE))); } @@ -78,14 +62,6 @@ class InstallRecipe extends plugin { plugin::save_object(); $this->kickstartRootEnabled = isset($_POST['kickstartRootEnabled']); - - // Update the member list widget. - $this->memberList->save_object(); - $this->member = $this->memberList->getMaintainedData(); - if(isset($_POST['member']) && isset($_POST['addMember'])){ - $member= get_post('member'); - $this->member[] = $member; - } } -- 2.30.2