Code

Added description for terminals
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Feb 2008 12:19:55 +0000 (12:19 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Feb 2008 12:19:55 +0000 (12:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8952 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
gosa-plugins/goto/admin/systems/goto/terminal.tpl

index 51616dffa3bf5c4f17bc08cd85f446293e5c3517..e51022472e1bc7faeb84b99f7cf485be9f2c01e6 100644 (file)
@@ -28,9 +28,11 @@ class termgeneric extends plugin
   var $ghSoundAdapter= "-";
   var $gotoLastUser= "-";
   var $netConfigDNS;
+  
   /* Needed values and lists */
   var $base= "";
   var $cn= "";
+  var $description= "";
   var $orig_dn= "";
 
   var $inheritTimeServer = true;
@@ -43,7 +45,7 @@ class termgeneric extends plugin
   var $attributes= array("gotoMode", "gotoTerminalPath", 
       "gotoSwapServer", "gotoSyslogServer", "gotoNtpServer",
       "gotoFloppyEnable", "gotoCdromEnable", "cn", "gotoSndModule",
-      "ghCpuType", "ghMemSize","ghUsbSupport",
+      "ghCpuType", "ghMemSize","ghUsbSupport", "description",
       "ghGfxAdapter", "ghSoundAdapter", "gotoLastUser");
   var $objectclasses= array("top", "gotoTerminal", "GOhard");
 
@@ -233,6 +235,7 @@ class termgeneric extends plugin
     }
 
     $smarty->assign("cn", $this->cn);
+    $smarty->assign("description", $this->description);
     $smarty->assign("staticAddress", "");
 
     $smarty->assign("bases", $this->get_allowed_bases());
@@ -589,6 +592,7 @@ class termgeneric extends plugin
             "gotoNtpServer"       => _("Ntp server settings"),
             "base"                => _("Base"),
             "cn"                  => _("Name"),
+            "description"         => _("Description"),
             "gotoRootPasswd"      => _("Root password"),
             "FAIstate"            => _("Action flag"))
           ));
index 4107c747b813155e3e256cbc710025fb83f774b1..0e264ab6c0b47965c1dbd2323110121405dcaeb9 100644 (file)
@@ -287,6 +287,7 @@ class workgeneric extends plugin
     }
 
     $smarty->assign("cn", $this->cn);
+    $smarty->assign("description", $this->description);
     $smarty->assign("l", $this->l);
     $smarty->assign("bases", $this->get_allowed_bases());
     $smarty->assign("staticAddress", "");
index dc088f867a36d5aaaf6eba4d25474b4a45a83174..06749efd61c62e70b4a681cabea9b7e3dc2adb57 100644 (file)
      </td>
      {/if}
     </tr>
+    <tr>
+     <td><LABEL for="description">{t}Description{/t}</LABEL></td>
+     <td>
+{render acl=$descriptionACL}
+      <input name="description" id="description" size=18 maxlength=60 value="{$description}">
+{/render}
+     </td>
+    </tr>
     <tr>
      <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
      <td>