Code

Updated the Device template
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Jul 2011 12:04:35 +0000 (12:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Jul 2011 12:04:35 +0000 (12:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20943 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 645ff8fe2c08ac9e8eac45331b8bfb0fc946a3fd..2256d3c7a5249caa6f3b01de643976a6510ee765 100644 (file)
@@ -1,5 +1,3 @@
-
-
 <table width="100%">
     <tr>
         <td style='width:50%;'>
                     </td>
                 </tr>
             </table>
-
-            <hr>
-            <h3>{t}Registration{/t}</h3>
-            <table>
-                <tr>
-                    <td><LABEL for='deviceType'>{t}Type{/t}</LABEL>
-                    </td>
-                    <td>
-                        {render acl=$deviceTypeACL}
-                            <input type="text" name="deviceType" value="{$deviceType}" id="deviceType" value="{$deviceType}">
-                        {/render}
-                    </td>
-                </tr>
-                <tr>
-                    <td><LABEL for='deviceUUID'>{t}Device UUID{/t}</LABEL></td>
-                    <td> 
-                        {render acl=$deviceUUIDACL}
-                            <input type="text" name="deviceUUID" value="{$deviceUUID}" id="deviceUUID" value="{$deviceUUID}">
-                        {/render}
-                        {render acl=$deviceUUIDACL}
-                            {image path="images/lists/reload.png" action="reloadUUID"}
-                        {/render}
-                    </td>
-                </tr>
-                <tr>
-                    <td><LABEL for='deviceStatus'>{t}Status{/t}</LABEL>
-                    </td>
-                    <td>
-                        {render acl=$deviceStatusACL}
-                            <input type="text" name="deviceStatus" value="{$deviceStatus}" id="deviceStatus" value="{$deviceStatus}">
-                        {/render}
-                    </td>
-                </tr>
-            </table>
         </td>
-        <td class='left-border' style='padding-left:5px;' rowspan=2>
-
+        <td class='left-border' style='padding-left:5px;'>
             <h3>{t}Orgaizational data{/t}</h3>
             <table>
                 <tr>
                  </td>
                 </tr>
 -->
+            </table>
+        </td>
+    </tr>
+    <tr>
+        <td colspan="2">
+            <hr>
+        </td>
+    </tr>
+    <tr>    
+        <td style='width:50%;'>
+            <h3>{t}Registration{/t}</h3>
+            <table>
+                <tr>
+                    <td><LABEL for='deviceUUID'>{t}Device UUID{/t}</LABEL></td>
+                    <td> 
+                        {render acl=$deviceUUIDACL}
+                            <input type="text" name="deviceUUID" value="{$deviceUUID}" id="deviceUUID" value="{$deviceUUID}">
+                        {/render}
+                        {render acl=$deviceUUIDACL}
+                            {image path="images/lists/reload.png" action="reloadUUID"}
+                        {/render}
+                    </td>
+                </tr>
+                <tr>
+                    <td><LABEL for='deviceType'>{t}Type{/t}</LABEL>
+                    </td>
+                    <td>
+                        {render acl=$deviceTypeACL}
+                            <input type="text" name="deviceType" value="{$deviceType}" id="deviceType" value="{$deviceType}">
+                        {/render}
+                    </td>
+                </tr>
+            </table>
+        </td>
+        <td class='left-border' style='padding-left:5px; padding-top:10px;'>
+            <table>
+                <tr>
+                    <td><LABEL for='deviceStatus'>{t}Status{/t}</LABEL>
+                    </td>
+                    <td>
+                        {render acl=$deviceStatusACL}
+                            <input type="text" name="deviceStatus" value="{$deviceStatus}" id="deviceStatus" value="{$deviceStatus}">
+                        {/render}
+                    </td>
+                </tr>
                 <tr>
                     <td><LABEL for='manager'>{t}Manager{/t}</LABEL>
                     </td>
index 242d8a487fb0cae37a15a9a987a93ec143003612..43cb84e4fccdf39a1b90ae6d72dc2111618bf3d4 100644 (file)
@@ -290,7 +290,7 @@ class DeviceConfig extends plugin
         $rpc = $this->config->getRpcHandle();
         $installConfigManagement = $this->parent->by_object['InstallRecipe']->installConfigManagement;
         $rpc->systemSetConfigParameters($this->deviceUUID, array('method' => $installConfigManagement, 
-                    'var' => $save, 'item' => $this->usedElements));
+                    'var' => $save, 'item' => array_values($this->usedElements)));
         if(!$rpc->success()){
             msg_dialog::display(_("Error"), msgPool::rpcError($rpc->get_error()), ERROR_DIALOG);
             return(NULL);