From 15d26cd70906d2d01abe78f8445ed9ae89bebbb0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 20 Apr 2011 10:08:56 +0000 Subject: [PATCH] Updated distribution parameters git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20753 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_newConfigManagement.inc | 10 ++++ .../newConfigManagement/goto/Config/root.tpl | 51 ++++++++++++++----- 2 files changed, 47 insertions(+), 14 deletions(-) diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 910cc8a1e..b16916f93 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -50,6 +50,12 @@ class newConfigManagement extends plugin 'type' => 'string', 'display' => _('Mirror Url')); $dOpt4 = array('description' => _('Method'), 'default' => 'puppet', 'value' => 'puppet', 'required' => false, 'type' => 'combobox', 'display' => _('Installation method'), 'values'=>array('puppet'=>_('Puppet'))); + $dOpt5 = array('description' => _('Architecture'), 'default' => '', 'value' => '', 'required' => false, + 'type' => 'list', 'display' => _('Architecture')); + $dOpt6 = array('description' => _('Component'), 'default' => '', 'value' => '', 'required' => false, + 'type' => 'list', 'display' => _('Component')); + $dOpt7 = array('description' => _('Mirror sources'), 'default' => '', 'value' => '', 'required' => false, + 'type' => 'checkbox', 'display' => _('Mirror sources')); // Define release parameters $rOpt1 = array('description' => _('Name'), 'default' => '', 'value' => '', 'required' => true, @@ -63,6 +69,10 @@ class newConfigManagement extends plugin $items['Distribution']['options']['installation_type'] = $dOpt2; $items['Distribution']['options']['installation_method'] = $dOpt4; + $items['Distribution']['options']['architectures'] = $dOpt5; + $items['Distribution']['options']['components'] = $dOpt6; + $items['Distribution']['options']['mirror_sources'] = $dOpt7; + $items['Release']['container'] = array('Release', '__CFG_ITEMS__'); $items['Release']['name'] = 'Release'; $items['Release']['description'] = _('Release'); diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/goto/Config/root.tpl b/gosa-plugins/goto-ng/admin/newConfigManagement/goto/Config/root.tpl index 399e8095b..0e0db6f4b 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/goto/Config/root.tpl +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/goto/Config/root.tpl @@ -1,20 +1,43 @@ {if $type == 'Distribution'} + - - - - - - - - - - - - - - + +
{$nameName}{$name}
{$installation_typeName}{$installation_type}
{$installation_methodName}{$installation_method}
{$originName}{$origin} + + + + + + + + + + + + + + + + + +
{$nameName}{$name}
{$installation_typeName}{$installation_type}
{$installation_methodName}{$installation_method}
{$originName}{$origin}
+
+ + + + + + + + + + + + + +
{$architecturesName}{$architectures}
{$componentsName}{$components}
{$mirror_sourcesName}{$mirror_sources}
+
{else if $type == 'Release'} -- 2.30.2