Hi,
patch applied.
Regards
Julien
Le 10/08/2011 12:33, Damien Touraine a écrit :
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']." :</td><td>";
+ echo "<tr class='tab_bg_1'><td>".$field['label'];
+ if (isset($field['comment'])) {
+ echo " ";
+ showToolTip($field['comment']);
+ }
+ echo " :</td><td>";
switch ($field['type']) {
case 'UserDropdown' :
User::dropdown(array('name' => $field['name'],
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev