Code

Updated installable device handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 14:43:09 +0000 (14:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 14:43:09 +0000 (14:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19855 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl
gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index d49065332de4f73145e55f71f48dc0f720dbd4f6..82d79562394fc8e7f3339d4a39a6aa655b73b864 100644 (file)
@@ -1,5 +1,26 @@
 
 <h3>{t}Installation type{/t}</h3>
+<table>
+    <tr>
+        <td><LABEL for="__missingBoostrap">{t}Bootstrap method{/t}</LABEL></td>
+        <td>
+            <select name="__missingBoostrap" size=1>
+                {html_options options=$__missingBoostrapList 
+                selected=$__missingBoostrap}
+            </select>
+        </td>
+    </tr>
+    <tr>
+        <td><LABEL for="__missingConfigManagement">{t}Config management{/t}</LABEL></td>
+        <td>
+            <select name="__missingConfigManagement" size=1>
+                {html_options options=$__missingConfigManagementList 
+                selected=$__missingConfigManagement}
+            </select>
+        </td>
+    </tr>
+</table>
+<hr>
 <table style='width:100%;'>
     <tr>
         <td style='width:50%; vertical-align: top;'>
index ce618239be6411afd135d683f04b44954e075b07..e130e0fdfbbd40ef9ddf9784ecfd5604171f89e7 100644 (file)
@@ -2,6 +2,13 @@
 
 class InstallRecipe extends plugin
 {
+
+    public $__missingBoostrap = 'debian';
+    public $__missingBoostrapList = array('weißnicht' => 'Irgendwas','debian' => 'debian');
+
+    public $__missingConfigManagement = 'puppet';
+    public $__missingConfigManagementList = array('fai' => 'FAI','puppet' => 'Puppet');
+
     public $kickstartTemplateDN = "";
     public $kickstartTemplateDNList = array(
         'dc=intranet,dc=gonicus,dc=de' => 'Intranet-Tpl',
@@ -109,6 +116,11 @@ class InstallRecipe extends plugin
         $smarty->assign('kickstartMirrorDNList', $this->kickstartMirrorDNList);
         $smarty->assign('kickstartSystemLocaleList', $this->kickstartSystemLocaleList);
         $smarty->assign('kickstartNTPServerList', $this->kickstartNTPServerList->render());
+
+        $smarty->assign('__missingBoostrap', $this->__missingBoostrap);
+        $smarty->assign('__missingBoostrapList', $this->__missingBoostrapList);
+        $smarty->assign('__missingConfigManagement', $this->__missingConfigManagement);
+        $smarty->assign('__missingConfigManagementList', $this->__missingConfigManagementList);
         foreach($this->attributes as $attr){
             $smarty->assign($attr, $this->$attr);
         }