From 974e18d6e0c7e9e84fb524878a98782a1c992b65 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 29 Sep 2010 14:21:47 +0000 Subject: [PATCH] Made some fields selectable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19854 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/Device/InstallRecipe.tpl | 25 +++++++++++++++---- .../goto/Device/class_InstallRecipe.inc | 20 ++++++++++++--- 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl b/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl index 868d27971..d49065332 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl +++ b/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl @@ -9,19 +9,28 @@ - + - + - + @@ -56,13 +65,19 @@ - + - + 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 9d98c3601..ce618239b 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc @@ -3,15 +3,25 @@ class InstallRecipe extends plugin { public $kickstartTemplateDN = ""; + public $kickstartTemplateDNList = array( + 'dc=intranet,dc=gonicus,dc=de' => 'Intranet-Tpl', + 'ou=systems,dc=intranet,dc=gonicus,dc=de' => 'System-Tpl'); + + public $kickstartMirrorDN = ""; + public $kickstartMirrorDNList = array( + 'dc=intranet,dc=gonicus,dc=de' => 'Intranet', + 'ou=systems,dc=intranet,dc=gonicus,dc=de' => 'System'); + public $kickstartKernelPackage = ""; + public $kickstartKernelPackageList = array('kernel1','kk1'); public $kickstartKeyboardlayout = ""; + public $kickstartKeyboardlayoutList = array("104","105"); public $kickstartSystemLocale = ""; + public $kickstartSystemLocaleList = array('de','en_EN.UTF-8'); public $kickstartTimezone = ""; public $kickstartTimeUTC = ""; public $kickstartNTPServer = array(); - public $kickstartMirrorDN = ""; public $kickstartRootEnabled = ""; public $kickstartRootPasswordHash = ""; - public $kickstartKernelPackage = ""; public $kickstartPartitionTable = ""; public $objectclasses = array('installRecipe'); @@ -78,7 +88,6 @@ class InstallRecipe extends plugin function execute() { - if($this->setKickstartRootPasswordHash){ $this->dialog = TRUE; @@ -94,6 +103,11 @@ class InstallRecipe extends plugin plugin::execute(); $smarty = get_smarty(); $smarty->assign('timezones', $this->timezones); + $smarty->assign('kickstartKeyboardlayoutList', $this->kickstartKeyboardlayoutList); + $smarty->assign('kickstartKernelPackageList', $this->kickstartKernelPackageList); + $smarty->assign('kickstartTemplateDNList', $this->kickstartTemplateDNList); + $smarty->assign('kickstartMirrorDNList', $this->kickstartMirrorDNList); + $smarty->assign('kickstartSystemLocaleList', $this->kickstartSystemLocaleList); $smarty->assign('kickstartNTPServerList', $this->kickstartNTPServerList->render()); foreach($this->attributes as $attr){ $smarty->assign($attr, $this->$attr); -- 2.30.2