diff --git a/htdocs/admin/tools/listevents.php b/htdocs/admin/tools/listevents.php index a4d470bfe3f..5056c87d665 100644 --- a/htdocs/admin/tools/listevents.php +++ b/htdocs/admin/tools/listevents.php @@ -494,9 +494,9 @@ if ($result) { $userstatic->email = $obj->email; if (isModEnabled('multicompany') && $userstatic->admin && !$userstatic->entity) { - print img_picto($langs->trans("SuperAdministratorDesc"), 'redstar', 'class="valignmiddle paddingright"'); + print img_picto($langs->trans("SuperAdministratorDesc"), 'superadmin', 'class="valignmiddle paddingright"'); } elseif ($userstatic->admin) { - print img_picto($langs->trans("AdministratorDesc"), 'star', 'class="valignmiddle paddingright"'); + print img_picto($langs->trans("AdministratorDesc"), 'admin', 'class="valignmiddle paddingright"'); } //print $userstatic->getLoginUrl(-1); diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index fe838f26194..8a6341ff4b1 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -5684,6 +5684,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco 'accounting_account' => 'infobox-bank_account', 'accountline' => 'infobox-bank_account', 'accountancy' => 'infobox-bank_account', + 'admin'=> 'opacitymedium', 'asset' => 'infobox-bank_account', 'bank_account' => 'infobox-bank_account', 'bill' => 'infobox-commande', @@ -5922,6 +5923,7 @@ function getImgPictoConv($mode = 'fa') 'add' => 'plus-circle', 'address' => 'address-book', 'ai' => 'magic', + 'admin' => 'star', 'asset' => 'money-check-alt', 'autofill' => 'fill', 'back' => 'arrow-left', @@ -5999,6 +6001,7 @@ function getImgPictoConv($mode = 'fa') 'group' => 'users', 'movement' => 'people-carry', 'sign-out' => 'sign-out-alt', + 'superadmin' => 'star', 'switch_off' => 'toggle-off', 'switch_off_grey' => 'toggle-off', 'switch_off_warning' => 'toggle-off', diff --git a/htdocs/hrm/skill_tab.php b/htdocs/hrm/skill_tab.php index db729c5e4e8..948d00baa55 100644 --- a/htdocs/hrm/skill_tab.php +++ b/htdocs/hrm/skill_tab.php @@ -467,9 +467,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $addadmin = ''; if (property_exists($object, 'admin')) { if (isModEnabled('multicompany') && !empty($object->admin) && empty($object->entity)) { - $addadmin .= img_picto($langs->trans("SuperAdministratorDesc"), "redstar", 'class="paddingleft valignmiddle"'); + $addadmin .= img_picto($langs->trans("SuperAdministratorDesc"), "superadmin", 'class="paddingleft valignmiddle"'); } elseif (!empty($object->admin)) { - $addadmin .= img_picto($langs->trans("AdministratorDesc"), "star", 'class="paddingleft valignmiddle"'); + $addadmin .= img_picto($langs->trans("AdministratorDesc"), "admin", 'class="paddingleft valignmiddle"'); } } print showValueWithClipboardCPButton(!empty($object->login) ? $object->login : '').$addadmin; diff --git a/htdocs/install/check.php b/htdocs/install/check.php index f52dff86e7a..c544e391e7f 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -448,8 +448,8 @@ if (!file_exists($conffile)) { // Show title if (getDolGlobalString('MAIN_VERSION_LAST_UPGRADE') || getDolGlobalString('MAIN_VERSION_LAST_INSTALL')) { - print $langs->trans("VersionLastUpgrade").' '.getDolGlobalString('MAIN_VERSION_LAST_UPGRADE', getDolGlobalString('MAIN_VERSION_LAST_INSTALL')).'   -   '; - print $langs->trans("VersionProgram").' '.DOL_VERSION.''; + print $langs->trans("VersionLastUpgrade").' '.getDolGlobalString('MAIN_VERSION_LAST_UPGRADE', getDolGlobalString('MAIN_VERSION_LAST_INSTALL')).'   -   '; + print $langs->trans("VersionProgram").' '.DOL_VERSION.''; //print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired")); print '
'; print '
'; @@ -472,18 +472,20 @@ if (!file_exists($conffile)) { // Show line of first install choice $choice = ''."\n"; - $choice .= ''.$langs->trans("FreshInstall").''; + $choice .= ''.$langs->trans("FreshInstall").''; $choice .= ''; $choice .= ''; $choice .= $langs->trans("FreshInstallDesc"); if (empty($dolibarr_main_db_host)) { // This means install process was not run $choice .= '
'; //print $langs->trans("InstallChoiceRecommanded",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_UPGRADE); - $choice .= '
'.$langs->trans("InstallChoiceSuggested").'
'; + $choice .= '
'.$langs->trans("InstallChoiceSuggested").'
'; + $choice .= ''; } $choice .= ''; - $choice .= ''; + $choice .= ''; if ($allowinstall) { $choice .= ''.$langs->trans("Start").''; } else { @@ -535,8 +537,6 @@ if (!file_exists($conffile)) { $count = 0; foreach ($migrationscript as $migarray) { - $choice = ''; - $count++; $recommended_choice = false; $version = DOL_VERSION; @@ -568,16 +568,18 @@ if (!file_exists($conffile)) { } } + $choice = ''; + $choice .= "\n".''."\n"; $choice .= ''; - $choice .= ''.$langs->trans("Upgrade").'
'.$newversionfrom.$newversionfrombis.' -> '.$newversionto.'
'; + $choice .= ''.$langs->trans("Upgrade").'
'.$newversionfrom.$newversionfrombis.' -> '.$newversionto.''; $choice .= ''; $choice .= $langs->trans("UpgradeDesc"); if ($recommended_choice) { $choice .= '
'; //print $langs->trans("InstallChoiceRecommanded",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_UPGRADE); - $choice .= '
'; + $choice .= '

'; $choice .= '
'.$langs->trans("InstallChoiceSuggested").'
'; if ($count < count($migarray)) { // There are other choices after print $langs->trans("MigrateIsDoneStepByStep", DOL_VERSION); @@ -586,7 +588,7 @@ if (!file_exists($conffile)) { } $choice .= ''; - $choice .= ''; + $choice .= ''; if ($allowupgrade) { $disabled = false; if ($foundrecommandedchoice == 2) { @@ -598,7 +600,15 @@ if (!file_exists($conffile)) { if ($disabled) { $choice .= ''.$langs->trans("NotYetAvailable").''; } else { - $choice .= ''.$langs->trans("Start").''; + $choice .= 'trans("InstallChoiceSuggested")).'"'; + } else { + $choice .= ' title="'.dol_string_nohtmltag($langs->trans("MigrationAlreadyDone")).'"'; + } + $choice .= '>'; + $choice .= $langs->trans("Start"); + $choice .= ''; } } else { $choice .= $langs->trans("NotAvailable"); @@ -606,7 +616,7 @@ if (!file_exists($conffile)) { $choice .= ''; $choice .= ''."\n"; - if ($allowupgrade) { + if ($allowupgrade && $recommended_choice) { $available_choices[$count] = $choice; } else { $notavailable_choices[$count] = $choice; @@ -636,7 +646,7 @@ if (!file_exists($conffile)) { print '