This commit is contained in:
Laurent Destailleur 2020-08-03 16:31:52 +02:00
parent aa696d8343
commit fa26d2acdf
2 changed files with 12 additions and 8 deletions

View File

@ -2226,7 +2226,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
print '
<div class="box-flex-item info-box-module'.(empty($conf->global->$const_name) ? ' info-box-module-disabled' : '').($this->isCoreOrExternalModule() == 'external' ? ' info-box-module-external' : '').'">
<div class="info-box info-box-sm info-box-module">
<div class="info-box-icon">';
<div class="info-box-icon'.(empty($conf->global->$const_name) ? '' : ' info-box-icon-module-enabled'.($versiontrans ? ' info-box-icon-module-warning' : '')).'">';
$alttext = '';
//if (is_array($objMod->need_dolibarr_version)) $alttext.=($alttext?' - ':'').'Dolibarr >= '.join('.',$objMod->need_dolibarr_version);
@ -2246,12 +2246,12 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
}
print '</div>
<div class="info-box-content info-box-text-module">
<div class="info-box-content info-box-text-module'.(empty($conf->global->$const_name) ? '' : ' info-box-module-enabled'.($versiontrans ? ' info-box-content-warning' : '')).'">
<span class="info-box-title">'.$this->getName().'</span>
<span class="info-box-desc twolinesmax opacitymedium" title="'.dol_escape_htmltag($this->getDesc()).'">'.nl2br($this->getDesc()).'</span>';
print '<div class="valignmiddle inline-block info-box-more">';
if ($versiontrans) print img_warning($langs->trans("Version").' '.$this->getVersion(1)).' ';
//if ($versiontrans) print img_warning($langs->trans("Version").' '.$this->getVersion(1)).' ';
print '<a class="valignmiddle inline-block" href="javascript:document_preview(\''.DOL_URL_ROOT.'/admin/modulehelp.php?id='.$this->numero.'\',\'text/html\',\''.dol_escape_js($langs->trans("Module")).'\')">'.img_picto(($this->isCoreOrExternalModule() == 'external' ? $langs->trans("ExternalModule").' - ' : '').$langs->trans("ClickToShowDescription"), $imginfo).'</a>';
print '</div><br>';

View File

@ -166,15 +166,17 @@ if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
padding: 5px 10px;
margin-left: 84px;
}
.info-box-sm .info-box-content{
margin-left: 80px;
}
/*.info-box-setup span {
color: var(--colortexttitlenotab2);
.info-box-sm .info-box-module-enabled {
background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8)
}
.tdsetuppicto span {
color: var(--colortexttitlenotab2);
.info-box-sm .info-box-content-warning {
background: #ffd7a3;
}
/*.info-box-icon.info-box-icon-module-enabled {
background: #e4f0e4 !important;
}*/
.info-box-number {
@ -212,6 +214,8 @@ a.info-box-text{ text-decoration: none;}
/* ICONS INFO BOX */
<?php
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';