Code

Updated Device Config
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 May 2011 07:17:44 +0000 (07:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 May 2011 07:17:44 +0000 (07:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20841 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/DeviceConfig.tpl
gosa-plugins/goto/admin/systems/goto/Device/class_DeviceConfig.inc

index 5517d0502fef32ba26ea32f5b289d48a9acdfecf..21e889b220af641be2a2d9d00d58d7c99ff65746 100644 (file)
@@ -1,9 +1,11 @@
 <table width='100%'>
     <tr>
-        <td>
+        <td style='width:50%; vertical-align: top;padding-right:5px;'>
+            <h3>{t}Assignable items{/t}</h3>
             {$assignableElementsList}
         </td>
         <td style='width:50%; vertical-align: top;padding-left:5px;' class='left-border'>
+            <h3>{t}Assigned items{/t}</h3>
             {$usedElementsList}
         </td>
     </tr>
@@ -14,6 +16,7 @@
     </tr>
     <tr>
         <td colspan=2>
+            <h3>{t}Parameters{/t}</h3>
             {$parameterList}
         </td>
     </tr>
index 1edcb6f0488cbd82cbe2f7df01fbab8ca49b9dbf..b064c1cfe103766aa646272925b484702b261caf 100644 (file)
@@ -130,12 +130,11 @@ class DeviceConfig extends plugin
         $data = $lData = array();;
         foreach($this->usedElements as $name){
             $parameter = $this->assignableElements[$name]['parameter'];
-            foreach($parameter as $name => $desc){
-                $data[$name] = NULL;
-                $lData[$name] = array('data' => array($desc));
+            foreach($parameter as $param => $desc){
+                $data[$param] = NULL;
             }
-            $value = (isset($this->parameterValues[$name])) ? $this->parameterValues[$name] : "<i>"._('unset')."</i>";
-            $lData[$name] = array('data' => array($name, $value));
+            $value = (isset($this->parameterValues[$param])) ? $this->parameterValues[$param] : "<i>"._('unset')."</i>";
+            $lData[$param] = array('data' => array($name, $param, $value));
         }
         $this->parameterList->setListData($data, $lData);