For the "default" field, we keep usa of standard on and off button because it is not a feature we activate or not but a choice of one line among others. I will change this later to replace with a checkbox.

This commit is contained in:
Laurent Destailleur 2011-08-31 18:47:29 +00:00
parent 70f3a3bfaa
commit 995936183e
2 changed files with 6 additions and 7 deletions

View File

@ -86,7 +86,7 @@ print "<table class=\"noborder\" width=\"100%\">\n";
print "<tr class=\"liste_titre\">\n";
print ' <td>'.$langs->trans("Description").'</td>';
print ' <td align="center">'.$langs->trans("Status").'</td>';
//print ' <td align="center" width="80">'.$langs->trans("Infos").'</td>';
print ' <td align="center" width="60">'.$langs->trans("Infos").'</td>';
print "</tr>\n";
clearstatcache();
@ -107,20 +107,20 @@ if (sizeof($workflowcodes) > 0)
if (! empty($conf->global->$code))
{
print '<td align="center"><a href="'.$_SERVER['PHP_SELF'].'?action=del'.$code.'">';
print img_picto($langs->trans("Activated"),'switch_on');
print img_picto($langs->trans("Activated"),'on');
print '</a></td>';
}
else
{
print '<td align="center"><a href="'.$_SERVER['PHP_SELF'].'?action=set'.$code.'">';
print img_picto($langs->trans("Disabled"),'switch_off');
print img_picto($langs->trans("Disabled"),'off');
print '</a></td>';
}
//print '<td align="center">';
print '<td align="center">';
//$s=$modCodeTiers->getToolTip($langs,$soc,-1);
//print $form->textwithpicto('',$s,1);
//print '</td>';
print '</td>';
print '</tr>';
}

View File

@ -194,10 +194,9 @@ class Form
/**
* Show a text with a picto and a tooltip on picto
*
* @param text Text to show
* @param htmltooltip Content of tooltip
* @param direction 1=Icon is after text, -1=Icon is before text, 0=no icon
* @param direction 1=Icon is after text, -1=Icon is before text
* @param type Type of picto (info, help, warning, superadmin...)
* @param extracss Add a CSS style to td tags
* @param noencodehtmltext Do not encode into html entity the htmltext