Fix PDF icon display issue in declaration list
- Changed from fa-file-pdf-o to fa-file-pdf (more common icon) - Added inline CSS styling for better visibility - Added 'PDF' text as fallback if icon doesn't display - Used red color (#dc3545) for PDF icon to make it stand out - Added font-weight: bold for better visibility - Should now show visible PDF download links in declaration list
This commit is contained in:
parent
b305c3d90b
commit
edfab45d9e
@ -156,11 +156,11 @@ if (empty($declarations)) {
|
||||
// Create a download link
|
||||
$relative_path = str_replace(DOL_DATA_ROOT, '', $pdf_path);
|
||||
$download_url = DOL_URL_ROOT . '/documents' . $relative_path;
|
||||
print '<a href="' . $download_url . '" target="_blank" title="' . $langs->trans("DownloadPDF") . '">';
|
||||
print '<i class="fa fa-file-pdf-o text-success"></i>';
|
||||
print '<a href="' . $download_url . '" target="_blank" title="' . $langs->trans("DownloadPDF") . '" style="color: #28a745; text-decoration: none; font-weight: bold;">';
|
||||
print '<i class="fa fa-file-pdf" style="font-size: 16px; color: #dc3545;"></i> PDF';
|
||||
print '</a>';
|
||||
} else {
|
||||
print '<i class="fa fa-file-pdf-o text-success" title="' . $langs->trans("ValidatedPDFAvailable") . '"></i>';
|
||||
print '<i class="fa fa-file-pdf" style="font-size: 16px; color: #28a745;" title="' . $langs->trans("ValidatedPDFAvailable") . '"></i>';
|
||||
}
|
||||
} else {
|
||||
print '<i class="fa fa-file-o text-muted" title="' . $langs->trans("NoDocument") . '"></i>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user