Code

Updated install recipe class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Sep 2010 09:49:27 +0000 (09:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Sep 2010 09:49:27 +0000 (09:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19768 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 efee6ed4b4f83f1ae909c459a0d3b234c29187cb..9bc45d78fa402fbefe24c3d92ac26c5ce4dbf137 100644 (file)
                 {if !$kickstartRootEnabled} disabled {/if} value="{$kickstartRootPasswordHash}">
         </td>
     </tr>
-    <tr>
-        <td><LABEL for="member">{t}Member{/t}</LABEL></td>
-        <td>
-            {$memberList}
-            <input type='text' name="member" id="member" value="">
-            <button name='addMember' type='submit'>{msgPool type='addButton'}</button>
-        </td>
-    </tr>
     <tr>
         <td><LABEL for="kickstartTemplateDN">{t}Kickstart template{/t}</LABEL></td>
         <td>
index b0c3fb068483f447ee6d6e89fa978442a52613b1..15a95f1ebdfb63c2b90d5c616a73412f694eb12f 100644 (file)
@@ -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;
-        }
     }