Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
ed61508b3f
@ -250,9 +250,10 @@ if (! empty($categ[$categidx]))
|
||||
|
||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
||||
{
|
||||
$form = new Form($db);
|
||||
$categidx='expdev';
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=".$categidx;
|
||||
$head[$h][1] = $langs->trans("ModuleFamilyExperimental");
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=".$categidx;
|
||||
$head[$h][1] = $form->textwithpicto($langs->trans("ModuleFamilyExperimental"), $langs->trans('DoNotUseInProduction'), 1, 'warning', '', 0, 3);
|
||||
$head[$h][2] = 'expdev';
|
||||
$h++;
|
||||
}
|
||||
|
||||
@ -370,28 +370,11 @@ class Form
|
||||
else $paramfortooltiptd =($extracss?' class="'.$extracss.'"':''); // Attribut to put on td text tag
|
||||
|
||||
$s="";
|
||||
if (empty($notabs)) $s.='<table class="nobordernopadding" summary=""><tr>';
|
||||
if ($direction > 0)
|
||||
{
|
||||
if ($text != '')
|
||||
{
|
||||
$s.='<td'.$paramfortooltiptd.'>'.$text;
|
||||
if ($direction) $s.=' ';
|
||||
$s.='</td>';
|
||||
}
|
||||
if ($direction) $s.='<td'.$paramfortooltipimg.' valign="top" width="14">'.$img.'</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($direction) $s.='<td'.$paramfortooltipimg.' valign="top" width="14">'.$img.'</td>';
|
||||
if ($text != '')
|
||||
{
|
||||
$s.='<'.$tag.$paramfortooltiptd.'>';
|
||||
if ($direction) $s.=' ';
|
||||
$s.=$text.'</'.$tag.'>';
|
||||
}
|
||||
}
|
||||
if (empty($notabs)) $s.='</tr></table>';
|
||||
if (empty($notabs)) $s.='<table class="nobordernopadding" summary=""><tr>';
|
||||
if ($direction < 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14">'.$img.' </'.$tag.'>';
|
||||
if ($text != '') $s.='<'.$tag.$paramfortooltiptd.'>'.$text.'</'.$tag.'>';
|
||||
if ($direction > 0) $s.='<'.$tag.$paramfortooltipimg.' valign="top" width="14"> '.$img.'</'.$tag.'>';
|
||||
if (empty($notabs)) $s.='</tr></table>';
|
||||
|
||||
return $s;
|
||||
}
|
||||
@ -405,9 +388,10 @@ class Form
|
||||
* @param string $type Type of picto (info, help, warning, superadmin...)
|
||||
* @param string $extracss Add a CSS style to td tags
|
||||
* @param int $noencodehtmltext Do not encode into html entity the htmltext
|
||||
* @param int $notabs 0=Include table and tr tags, 1=Do not include table and tr tags, 2=use div, 3=use span
|
||||
* @return string HTML code of text, picto, tooltip
|
||||
*/
|
||||
function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0)
|
||||
function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0, $notabs = 0)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@ -439,7 +423,7 @@ class Form
|
||||
elseif ($type == 'admin') $img = img_picto($alt, 'star');
|
||||
elseif ($type == 'warning') $img = img_warning($alt);
|
||||
|
||||
return $this->textwithtooltip($text, $htmltext, 2, $direction, $img, $extracss, 0, '', $noencodehtmltext);
|
||||
return $this->textwithtooltip($text, $htmltext, 2, $direction, $img, $extracss, $notabs, '', $noencodehtmltext);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -262,6 +262,7 @@ ModuleFamilyFinancial=Financial Modules (Accounting/Treasury)
|
||||
ModuleFamilyECM=Electronic Content Management (ECM)
|
||||
MenuHandlers=Menu handlers
|
||||
MenuAdmin=Menu editor
|
||||
DoNotUseInProduction=Do not use in production
|
||||
ThisIsProcessToFollow=This is setup to process:
|
||||
StepNb=Step %s
|
||||
FindPackageFromWebSite=Find a package that provides feature you want (for example on official web site %s).
|
||||
|
||||
@ -257,11 +257,12 @@ ModuleFamilyHr= Ressources humaines
|
||||
ModuleFamilyProjects= Projets/Travail collaboratif
|
||||
ModuleFamilyOther= Autre
|
||||
ModuleFamilyTechnic= Outils multi-modules
|
||||
ModuleFamilyExperimental= Modules expérimentaux (ne pas utiliser en production)
|
||||
ModuleFamilyExperimental= Modules expérimentaux
|
||||
ModuleFamilyFinancial= Modules financiers (Compta/trésorerie)
|
||||
ModuleFamilyECM= Gestion Électronique de Documents (GED)
|
||||
MenuHandlers= Gestionnaires menu
|
||||
MenuAdmin= Edition menu
|
||||
DoNotUseInProduction=Ne pas utiliser en production
|
||||
ThisIsProcessToFollow= Voici la procédure à suivre:
|
||||
StepNb= Etape %s
|
||||
FindPackageFromWebSite=Recherche le package qui répond à votre besoin (par exemple sur le site web %s).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user