Code

Updated item listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 15:00:49 +0000 (15:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 15:00:49 +0000 (15:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19856 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc
gosa-plugins/goto/admin/systems/goto/Config/puppet.tpl

index 21dc89627206c6729b6fce19759be5ea1b490440..e5783ccae784378e0c503b7bec0f6a910261d80c 100644 (file)
      <type>sub</type>
      <image>images/lists/element.png[new]</image>
      <label>Create</label>
+    <action>
+      <name>remove</name>
+      <type>entry</type>
+      <image>images/lists/trash.png</image>
+      <label>Blaa</label>
+    </action>
     </action>
 
     <action>
index e2e221217d2c7f8f61bf87134bf6dfeaa52ceaa5..1ae07757559e313439ecae060dd68dca5b3aa281 100644 (file)
@@ -55,9 +55,9 @@ class DeviceConfig extends management
         }
         if(!$root){
             echo 'No root found!';
-        $this->rebuildListing();
-            return;
+            $this->rebuildListing();
             $this->is_account = FALSE;
+            return;
         }
 
         $this->is_account = TRUE;
@@ -89,7 +89,7 @@ class DeviceConfig extends management
         $this->setCurrentItem('temp1');
         $this->addItem('PuppetTemplate','tep1',
                 array(
-                    'name' => 'tep1', 
+                    'name' => 'tep1',
                     'data' => 'kekse.tpl')
                 );
 
index a5d6787a79c421f77c87b9219220df88cb84961a..b35cd385aa15b28d487c97d9a095c4dd6c6782ed 100644 (file)
     </table>
 
 {/if}
+{if $type == 'PuppetTemplate'}
+    <table>
+        <tr>
+            <td>{$nameName}</td>
+            <td>{$name}</td>
+        </tr>
+        <tr>
+            <td>{$dataName}</td>
+            <td>{$data}</td>
+        </tr>
+    </table>
+{/if}