This commit is contained in:
Laurent Destailleur 2020-08-07 20:44:49 +02:00
parent aa699bacc6
commit 6f7b65d9f2
3 changed files with 11 additions and 22 deletions

View File

@ -1090,13 +1090,15 @@ if ($resql)
$s = ''; $s = '';
if ($obj->fk_product_type == 0) if ($obj->fk_product_type == 0)
{ {
$s .= '<a class="product-type-back" title="'.$langs->trans("Product").'">'; //$s .= '<a class="product-type-back" title="'.$langs->trans("Product").'">';
$s .= dol_substr($langs->trans("Product"), 0, 1); $s .= img_picto($langs->trans("Product"), 'product', 'class="paddingleftonly paddingrightonly colorgrey"');
$s .= '</a>'; //$s .= dol_substr($langs->trans("Product"), 0, 1);
//$s .= '</a>';
} else { } else {
$s .= '<span class="service-type-back" title="'.$langs->trans("Service").'">'; //$s .= '<span class="service-type-back" title="'.$langs->trans("Service").'">';
$s .= dol_substr($langs->trans("Service"), 0, 1); $s .= img_picto($langs->trans("Service"), 'service', 'class="paddingleftonly paddingrightonly colorgrey"');
$s .= '</a>'; //$s .= dol_substr($langs->trans("Service"), 0, 1);
//$s .= '</a>';
} }
print $s; print $s;
print '</td>'; print '</td>';

View File

@ -385,6 +385,9 @@ input.pageplusone {
.colorwhite { .colorwhite {
color: #fff; color: #fff;
} }
.colorgrey {
color: #888 !important;
}
.colorblack { .colorblack {
color: #000; color: #000;
} }

View File

@ -263,22 +263,6 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO =
border-radius: 3px; border-radius: 3px;
} }
.product-type-back {
background-color: #a6c974 !important;
color: #FFF !important;
padding: 2px;
margin: 2px;
border-bottom-left-radius: 5px;
border-top-right-radius: 5px;
}
.service-type-back {
background-color: #979c01 !important;
color: #FFF !important;
padding: 2px;
margin: 2px;
border-bottom-right-radius: 5px;
border-top-left-radius: 5px;
}
.bg-infobox-project{ .bg-infobox-project{