FIX look and feel v17 (always a message instead of empty lists)

This commit is contained in:
Laurent Destailleur 2023-01-06 15:46:17 +01:00
parent 5ecaacf36e
commit b707c79d6d
2 changed files with 14 additions and 4 deletions

View File

@ -280,9 +280,6 @@ print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
print '<div class="div-table-responsive-no-min">'."\n";
print '<table class="tagtable nobottomiftotal liste">';
//print '<tr class="liste_titre_filter">';
//print '</tr>';
print '<tr class="liste_titre">';
print_liste_field_titre($arrayfields['thirdparty']['label'], $_SERVER["PHP_SELF"], "thirdparty_name", "", $param, "", $sortfield, $sortorder);
print_liste_field_titre($arrayfields['contact']['label'], $_SERVER["PHP_SELF"], "contact_name", "", $param, "", $sortfield, $sortorder);
@ -316,7 +313,17 @@ foreach ($list as $entry) {
print "</tr>";
}
if (empty($list)) {
$colspan = 5 + ($permission ? 1 : 0);
print '<tr><td colspan="'.$colspan.'"><span class="opacitymedium">';
if (is_object($object) && !empty($object->thirdparty)) {
print $form->textwithpicto($langs->trans("NoSpecificContactAddress"), $langs->trans("NoSpecificContactAddressBis"));
} else {
print $langs->trans("NoSpecificContactAddress");
}
print '</span>';
print '</td></tr>';
}
print "</table>";
print '</div>';

View File

@ -1211,3 +1211,6 @@ CreatedByPublicPortal=Created from Public portal
UserAgent=User Agent
InternalUser=Internal user
ExternalUser=External user
NoSpecificContactAddress=No specific contact or address
NoSpecificContactAddressBis=This tab is dedicated to force specific contacts or addresses for the current object. Use it only if you want to define one or several specific contacts or addresses for the object when the information on the thirdparty is not enough or not accurate.