Code

Updated class selector
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jan 2010 06:31:20 +0000 (06:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jan 2010 06:31:20 +0000 (06:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15142 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/SelectDeviceType.tpl
gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc

index 90ecc566858e71eb488c48e64e4c928104d752af..a5cd26976d06b0408446924c518739909d0d63d2 100644 (file)
@@ -48,6 +48,6 @@
 </table>
 <p class="seperator">&nbsp;</p>
 <div style="align: right;" align="right"><p>
-       <input type="submit" name="SystemTypeChoosen" value="{t}Continue{/t}">
+       <input type="submit" name="systemTypeChosen" value="{t}Continue{/t}">
        <input type="submit" name="SystemTypeAborted" value="{msgPool type=cancelButton}">
 </p></div>
index 09e41147c8c76767cd44794b4b7e5b07eeef9e7e..8399d1d4efb999b1f90d249ce8333a0bf7705acf 100644 (file)
@@ -11,7 +11,7 @@ class SelectDeviceType extends plugin
   var $SystemTypes       = array();
 
   var $ObjectGroup    = "none";
-  var $SystemType        = "workstation";
+  var $SystemType        = "gotoWorkstation";
 
   var $dn;
 
@@ -36,9 +36,9 @@ class SelectDeviceType extends plugin
     asort($tmp, SORT_LOCALE_STRING);
     $this->ObjectGroups= $tmp;
 
-    $this->SystemTypes =array("workstation"=>_("Workstation"), "terminal"=>_("Terminal"), "server"=>_("Server"));
+    $this->SystemTypes =array("gotoWorkstation"=>_("Workstation"), "gotoTerminal"=>_("Terminal"), "goServer"=>_("Server"));
     if(class_available("opsi")){
-    $this->SystemTypes["opsi_client"]= _("Windows workstation");
+      $this->SystemTypes["FAKE_OC_OpsiHost"]= _("Windows workstation");
     }
   }
 
@@ -61,7 +61,7 @@ class SelectDeviceType extends plugin
     $smarty= get_smarty();
     $display= "";
 
-    $map = array("workstation" => "W","terminal" => "T","server" => "S", "opsi_client" => "O");
+    $map = array("gotoWorkstation" => "W","gotoTerminal" => "T","goServer" => "S", "FAKE_OC_OpsiHost" => "O");
     $smarty->assign("dns_cnt" , count($this->dns));
     $smarty->assign("ogroups", $tmp[$map[$this->SystemType]]);
     $smarty->assign("SystemTypes"     ,$this->SystemTypes);