Code

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

gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
gosa-plugins/goto/admin/systems/goto/workstation.tpl

index 321da4a4fb8b3c3c41c08dc9dcaca3e5ce9ef7e2..4107c747b813155e3e256cbc710025fb83f774b1 100644 (file)
@@ -16,6 +16,7 @@ class workgeneric extends plugin
   var $gotoSndModule= "";
   var $gotoFloppyEnable= "";
   var $gotoCdromEnable= "";
+  var $description= "";
   var $ghCpuType= "-";
   var $ghMemSize= "-";
   var $ghUsbSupport= "-";
@@ -47,7 +48,7 @@ class workgeneric extends plugin
   var $ignore_account= TRUE;
   var $attributes= array("gotoMode", "gotoSyslogServer", "gotoNtpServer",
       "gotoFloppyEnable", "gotoCdromEnable", "cn", "gotoSndModule",
-      "ghCpuType", "ghMemSize", "ghUsbSupport",
+      "ghCpuType", "ghMemSize", "ghUsbSupport", "description",
       "ghGfxAdapter", "ghSoundAdapter", "gotoLastUser", "l","FAIscript");
   var $objectclasses= array("top", "gotoWorkstation", "GOhard");
 
@@ -638,6 +639,7 @@ class workgeneric extends plugin
                                                           "objectClass"  => "gotoWorkstation")),
           "plProvidedAcls"=> array(
             "cn"                  => _("Workstation name"),
+            "description"         => _("Description") ,
             "l"                   => _("Location") ,
             "base"                => _("Base") ,
             "gotoMode"            => _("Goto mode"), 
index ba8489947ed877f0854782d536e2a750019ffdf0..357c5ed22f109bbbb5387d0e6804fe67b462a161 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="cn">{t}Location{/t}</LABEL></td>
      <td>