Fix css of buttome of recommended choice

This commit is contained in:
Laurent Destailleur 2020-03-29 23:14:51 +02:00
parent 221776d07d
commit 5b5f4a900c

View File

@ -415,19 +415,23 @@ else
$available_choices = array();
$notavailable_choices = array();
// Show line of first install choice
$choice = '<tr class="trlineforchoice">'."\n";
if (empty($dolibarr_main_db_host)) // This means install process was not run
{
$foundrecommandedchoice = 1; // To show only once
}
// Show line of first install choice
$choice = '<tr class="trlineforchoice'.($foundrecommandedchoice ? ' choiceselected' : '').'">'."\n";
$choice .= '<td class="nowrap center"><b>'.$langs->trans("FreshInstall").'</b>';
$choice .= '</td>';
$choice .= '<td class="listofchoicesdesc">';
$choice .= $langs->trans("FreshInstallDesc");
if (empty($dolibarr_main_db_host)) // This means install process was not run
{
$choice .= '<br>';
$choice .= '<br>';
//print $langs->trans("InstallChoiceRecommanded",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_UPGRADE);
$choice .= '<div class="center"><div class="ok">'.$langs->trans("InstallChoiceSuggested").'</div></div>';
// <img src="../theme/eldy/img/tick.png" alt="Ok"> ';
$foundrecommandedchoice = 1; // To show only once
}
$choice .= '</td>';