It would be nice if we can add field description to labels of dropdown fields. For instance, that allows to use an acronym as label (for instance : FQDN) and adding the full signification of the acronym inside the tooltip (for the same example : "Full Qualified Domain Name").
I suggest this patch :

Index: inc/commondropdown.class.php
===================================================================
--- inc/commondropdown.class.php    (revision 15340)
+++ inc/commondropdown.class.php    (working copy)
@@ -147,7 +147,12 @@
       echo "</textarea></td></tr>\n";

       foreach ($fields as $field) {
- echo "<tr class='tab_bg_1'><td>".$field['label']."&nbsp;:</td><td>";
+    echo "<tr class='tab_bg_1'><td>".$field['label'];
+    if (isset($field['comment'])) {
+      echo "&nbsp;";
+      showToolTip($field['comment']);
+    }
+    echo "&nbsp;:</td><td>";
          switch ($field['type']) {
             case 'UserDropdown' :
                User::dropdown(array('name'   => $field['name'],

--
--------------------------------------------------------------------
Damien TOURAINE - Ingénieur de Recherche CNRS, LIMSI-CNRS
Groupe de RV&A "VENISE", (http://www.limsi.fr/venise/)
Bat. 508, Universite Paris-Sud 91403 Orsay cedex - +33 1 69 85 81 64
--------------------------------------------------------------------


_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to